Prevent duplicate signatures by using http_fingerprint() without args

bug/bundler_fix
HD Moore 2014-03-23 09:59:34 -07:00
parent f349f85a70
commit f80b9d50f0
1 changed files with 1 additions and 6 deletions

View File

@ -32,12 +32,7 @@ class Metasploit3 < Msf::Auxiliary
# Fingerprint a single host # Fingerprint a single host
def run_host(ip) def run_host(ip)
begin begin
connect fp = http_fingerprint
res = send_request_raw({'uri' => '/', 'method' => 'GET' })
return if not 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
end end