Skip to content

Commit face944

Browse files
committed
Land rapid7#7943, Specify sname as http/https to keep with standards throughout the code
2 parents 44d229a + 94a234e commit face944

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

modules/auxiliary/scanner/http/http_version.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ def run_host(ip)
3636
res = send_request_raw({ 'uri' => '/', 'method' => 'GET' })
3737
fp = http_fingerprint(:response => res)
3838
print_status("#{ip}:#{rport} #{fp}") if fp
39-
report_service(:host => rhost, :port => rport, :sname => "www", :info => fp)
39+
report_service(:host => rhost, :port => rport, :sname => (ssl ? 'https' : 'http'), :info => fp)
4040
rescue ::Timeout::Error, ::Errno::EPIPE
4141
ensure
4242
disconnect

0 commit comments

Comments
 (0)