diff options
author | Kevin Robertson <robertsonk@gmail.com> | 2016-09-11 23:13:30 -0400 |
---|---|---|
committer | Kevin Robertson <robertsonk@gmail.com> | 2016-09-11 23:13:30 -0400 |
commit | 387cfea5b08fbbb168ba8f8e3b54f5acf58c86b4 (patch) | |
tree | 52a25075751a06c7272dbe92c8c09883ebf97ef1 | |
parent | e5c449cc813df847fbb71599ee90db62d66ddf61 (diff) | |
download | Inveigh-387cfea5b08fbbb168ba8f8e3b54f5acf58c86b4.tar.gz Inveigh-387cfea5b08fbbb168ba8f8e3b54f5acf58c86b4.zip |
Small update
-rw-r--r-- | Scripts/Inveigh-Unprivileged.ps1 | 15 |
1 files changed, 10 insertions, 5 deletions
diff --git a/Scripts/Inveigh-Unprivileged.ps1 b/Scripts/Inveigh-Unprivileged.ps1 index ea278eb..1b07313 100644 --- a/Scripts/Inveigh-Unprivileged.ps1 +++ b/Scripts/Inveigh-Unprivileged.ps1 @@ -227,7 +227,7 @@ param [parameter(Mandatory=$false)][String]$HTTPBasicRealm = "IIS", [parameter(Mandatory=$false)][String]$HTTPResponse = "", [parameter(Mandatory=$false)][String]$WPADResponse = "", - [parameter(Mandatory=$false)][String]$NBNSBruteForceHost = "WPAD", + [parameter(Mandatory=$false)][String]$NBNSBruteForceHost = "WPAD", [parameter(ValueFromRemainingArguments=$true)]$invalid_parameter ) @@ -236,9 +236,10 @@ if ($invalid_parameter) throw "$($invalid_parameter) is not a valid parameter." } -if($NBNS -eq 'Y' -or $LLMNR -eq 'Y' -and $NBNSBruteForce -eq 'Y') +if($NBNSBruteForce -eq 'Y') { - throw "You cannot use NBNSBruteForce with NBNS or LLMNR enabled" + $NBNS = 'N' + $LLMNR = 'N' } if($NBNSBruteForce -eq 'Y' -and !$NBNSBruteForceTarget) @@ -474,8 +475,12 @@ else if($HTTP -eq 'Y') { - - $HTTP_port_check = netstat -anp TCP | findstr 0.0.0.0:$HTTPPort + $HTTP_port_check += netstat -anp TCP | findstr 0.0.0.0:$HTTPPort + + if($HTTPIP) + { + $HTTP_port_check += netstat -anp TCP | findstr $HTTPIP`:$HTTPPort + } if($HTTP_port_check) { |