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

This commit is contained in:
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
nopts['pool'] ||= 75
# Prefer the config file's wait_timeout setting too
nopts['wait_timeout'] ||= 300
begin
self.migrated = false

View File

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