From 54971370cfb150e69a0faa064071a4ac0a3283a4 Mon Sep 17 00:00:00 2001 From: webstersprodigy Date: Tue, 22 Oct 2013 21:04:24 -0700 Subject: Fix for hostfiles option in powershell 2 --- Recon/Invoke-Portscan.ps1 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Recon') 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 } -- cgit v1.2.3