Bump up the wait_timeout (works with the recent AR patch) and fix a typo in the http_version commit

unstable
HD Moore 2012-04-23 02:44:56 -05:00
parent 59ecc8584d
commit a1f9d2c27a
2 changed files with 6 additions and 9 deletions

View File

@ -182,6 +182,9 @@ class DBManager
# Prefer the config file's pool setting # Prefer the config file's pool setting
nopts['pool'] ||= 75 nopts['pool'] ||= 75
# Prefer the config file's wait_timeout setting too
nopts['wait_timeout'] ||= 300
begin begin
self.migrated = false self.migrated = false

View File

@ -39,17 +39,11 @@ class Metasploit3 < Msf::Auxiliary
# Fingerprint a single host # Fingerprint a single host
def run_host(ip) def run_host(ip)
begin begin
connect(opts) connect
uri = opts[:uri] || '/'
method = opts[:method] || 'GET'
res = send_request_raw( res = send_request_raw({'uri' => '/', 'method' => 'GET' })
{
'uri' => uri,
'method' => method
})
return if not res return if not res
fp = http_fingerprint(:response => res) fp = http_fingerprint(:response => res)
print_status("#{ip}:#{rport} #{fp}") if fp print_status("#{ip}:#{rport} #{fp}") if fp
rescue ::Timeout::Error, ::Errno::EPIPE rescue ::Timeout::Error, ::Errno::EPIPE