diff options
author | Kevin Robertson <robertsonk@gmail.com> | 2017-04-04 23:10:18 -0400 |
---|---|---|
committer | Kevin Robertson <robertsonk@gmail.com> | 2017-04-04 23:10:18 -0400 |
commit | 0c7403d6be71de6ac007a523ab485408919ebb5b (patch) | |
tree | 8a8be909d2f18d840df1cfdba9f26391ecd56c4f /Scripts | |
parent | 0e3560fc146882271e3e00bfa9c630fcae9f927f (diff) | |
download | Inveigh-0c7403d6be71de6ac007a523ab485408919ebb5b.tar.gz Inveigh-0c7403d6be71de6ac007a523ab485408919ebb5b.zip |
Last fixes
Diffstat (limited to 'Scripts')
-rw-r--r-- | Scripts/Inveigh.ps1 | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/Scripts/Inveigh.ps1 b/Scripts/Inveigh.ps1 index c18f499..a8e6492 100644 --- a/Scripts/Inveigh.ps1 +++ b/Scripts/Inveigh.ps1 @@ -1093,6 +1093,16 @@ if($HTTP -eq 'Y' -or $HTTPS -eq 'Y') $inveigh.status_queue.Add("WPAD Response = Enabled") > $null $inveigh.status_queue.Add("WPAD = $WPADIP`:$WPADPort") > $null + if($WPADDirectHosts) + { + ForEach($WPAD_direct_host in $WPADDirectHosts) + { + $WPAD_direct_hosts_function += 'if (dnsDomainIs(host, "' + $WPAD_direct_host + '")) return "DIRECT";' + } + + $WPADResponse = "function FindProxyForURL(url,host){" + $WPAD_direct_hosts_function + "return `"PROXY " + $WPADIP + ":" + $WPADPort + "`";}" + $inveigh.status_queue.Add("WPAD Direct Hosts = " + ($WPADDirectHosts -join ",")) > $null + } else { $WPADResponse = "function FindProxyForURL(url,host){$WPAD_direct_hosts_function return `"PROXY $WPADIP`:$WPADPort; DIRECT`";}" |