1
mirror of https://github.com/rapid7/metasploit-framework synced 2024-10-29 18:07:27 +01:00

Re-enable proxies for HTTP-based login scanners

This commit is contained in:
James Lee 2014-10-15 17:00:44 -05:00
parent 3a9c2f95c9
commit 41a57b7ba5
No known key found for this signature in database
GPG Key ID: 2D6094C7CEA0A321
8 changed files with 9 additions and 9 deletions

View File

@ -17,7 +17,7 @@ module Metasploit
# (see Base#attempt_login)
def attempt_login(credential)
http_client = Rex::Proto::Http::Client.new(
host, port, {}, ssl, ssl_version
host, port, {}, ssl, ssl_version, proxies
)
http_client = config_client(http_client)

View File

@ -61,7 +61,7 @@ module Metasploit
# @param (see Rex::Proto::Http::Resquest#request_raw)
# @return [Rex::Proto::Http::Response] The HTTP response
def send_request(opts)
cli = Rex::Proto::Http::Client.new(host, port, {}, ssl, ssl_version)
cli = Rex::Proto::Http::Client.new(host, port, {}, ssl, ssl_version, proxies)
cli.connect
req = cli.request_raw(opts)
res = cli.send_recv(req)

View File

@ -47,7 +47,7 @@ module Metasploit
# (see Base#check_setup)
def check_setup
http_client = Rex::Proto::Http::Client.new(
host, port, {}, ssl, ssl_version
host, port, {}, ssl, ssl_version, proxies
)
request = http_client.request_cgi(
'uri' => uri,
@ -96,7 +96,7 @@ module Metasploit
http_client = Rex::Proto::Http::Client.new(
host, port, {}, ssl, ssl_version,
nil, credential.public, credential.private
proxies, credential.public, credential.private
)
http_client = config_client(http_client)

View File

@ -10,7 +10,7 @@ module Metasploit
# (see Base#attempt_login)
def attempt_login(credential)
http_client = Rex::Proto::Http::Client.new(
host, port, {}, ssl, ssl_version
host, port, {}, ssl, ssl_version, proxies
)
http_client = config_client(http_client)

View File

@ -33,7 +33,7 @@ module Metasploit
result_opts[:service_name] = 'http'
end
begin
cli = Rex::Proto::Http::Client.new(host, port, {}, ssl, ssl_version)
cli = Rex::Proto::Http::Client.new(host, port, {}, ssl, ssl_version, proxies)
cli.connect
req = cli.request_cgi({
'method'=>'POST',

View File

@ -33,7 +33,7 @@ module Metasploit
res = nil
begin
cli = Rex::Proto::Http::Client.new(host, port, {}, ssl, ssl_version)
cli = Rex::Proto::Http::Client.new(host, port, {}, ssl, ssl_version, proxies)
cli.connect
req = cli.request_cgi(req_opts)
res = cli.send_recv(req)

View File

@ -10,7 +10,7 @@ module Metasploit
# (see Base#attempt_login)
def attempt_login(credential)
http_client = Rex::Proto::Http::Client.new(
host, port, {}, ssl, ssl_version
host, port, {}, ssl, ssl_version, proxies
)
result_opts = {

View File

@ -79,7 +79,7 @@ class Metasploit3 < Msf::Auxiliary
host: ip,
port: rport,
uri: datastore['URI'],
proxies: datastore["PROXIES"],
proxies: proxies,
cred_details: cred_collection,
stop_on_success: datastore['STOP_ON_SUCCESS'],
connection_timeout: 5,