aboutsummaryrefslogtreecommitdiff
path: root/Recon
diff options
context:
space:
mode:
authorwebstersprodigy <richard.lundeen@gmail.com>2013-10-22 21:04:24 -0700
committerclymb3r <bialek.joseph@gmail.com>2013-11-03 22:48:50 -0800
commitc4cd73a9cf40a4b1ba11654e78814b372033241f (patch)
tree8795ecddfc7f4f8b7fd3b181c743ef38473859e0 /Recon
parenta40e79da934ead46cdc648d8bd3a23b8a7e5ee02 (diff)
downloadPowerSploit-c4cd73a9cf40a4b1ba11654e78814b372033241f.tar.gz
PowerSploit-c4cd73a9cf40a4b1ba11654e78814b372033241f.zip
Fix for hostfiles option in powershell 2
Diffstat (limited to 'Recon')
-rw-r--r--Recon/Invoke-Portscan.ps14
1 files changed, 2 insertions, 2 deletions
diff --git a/Recon/Invoke-Portscan.ps1 b/Recon/Invoke-Portscan.ps1
index 46a5337..ab03734 100644
--- a/Recon/Invoke-Portscan.ps1
+++ b/Recon/Invoke-Portscan.ps1
@@ -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
}