mirror of
https://github.com/PowerShellMafia/PowerSploit
synced 2026-06-08 12:13:33 +00:00
Merge pull request #17 from webstersprodigy/portscan-hostlist-fix
Fix for hostfiles option in powershell 2
This commit is contained in:
@@ -647,14 +647,14 @@ http://webstersprodigy.net
|
||||
|
||||
[Environment]::CurrentDirectory=(Get-Location -PSProvider FileSystem).ProviderPath
|
||||
|
||||
if ($Hosts)
|
||||
if ($PsCmdlet.ParameterSetName -eq "cmdHosts")
|
||||
{
|
||||
foreach($h in $Hosts)
|
||||
{
|
||||
Parse-Hosts($h) | Out-Null
|
||||
}
|
||||
}
|
||||
elseif ($HostFile)
|
||||
else
|
||||
{
|
||||
Parse-ILHosts($HostFile) | Out-Null
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user