diff options
author | webstersprodigy <richard.lundeen@gmail.com> | 2013-10-22 21:04:24 -0700 |
---|---|---|
committer | webstersprodigy <richard.lundeen@gmail.com> | 2013-10-22 21:04:24 -0700 |
commit | 54971370cfb150e69a0faa064071a4ac0a3283a4 (patch) | |
tree | 8795ecddfc7f4f8b7fd3b181c743ef38473859e0 /Recon/Invoke-Portscan.ps1 | |
parent | 737fd832e0b080cbb49d77808cd81bfc1634bd1d (diff) | |
download | PowerSploit-54971370cfb150e69a0faa064071a4ac0a3283a4.tar.gz PowerSploit-54971370cfb150e69a0faa064071a4ac0a3283a4.zip |
Fix for hostfiles option in powershell 2
Diffstat (limited to 'Recon/Invoke-Portscan.ps1')
-rw-r--r-- | Recon/Invoke-Portscan.ps1 | 4 |
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 } |