Prevent duplicate signatures by using http_fingerprint() without args
parent
f349f85a70
commit
f80b9d50f0
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue