aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatt Graeber <mattgraeber@gmail.com>2013-10-23 01:44:06 -0700
committerMatt Graeber <mattgraeber@gmail.com>2013-10-23 01:44:06 -0700
commit404d2480ba4db4cd26bd608bef26ef9b35866e26 (patch)
tree8795ecddfc7f4f8b7fd3b181c743ef38473859e0
parent737fd832e0b080cbb49d77808cd81bfc1634bd1d (diff)
parent54971370cfb150e69a0faa064071a4ac0a3283a4 (diff)
downloadPowerSploit-404d2480ba4db4cd26bd608bef26ef9b35866e26.tar.gz
PowerSploit-404d2480ba4db4cd26bd608bef26ef9b35866e26.zip
Merge pull request #17 from webstersprodigy/portscan-hostlist-fix
Fix for hostfiles option in powershell 2
-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
}