Skip to content

Commit 785f633

Browse files
committed
Fix undefined method error
[FixRM rapid7#8334] [FixRM rapid7#8333]
1 parent 0561928 commit 785f633

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

modules/auxiliary/scanner/http/nginx_source_disclosure.rb

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,10 @@ def run_host(ip)
7272
'uri' => "#{uri}#{get_source}",
7373
}, 25)
7474

75-
if res
75+
if res.nil?
76+
print_error("Connection timed out")
77+
return
78+
else
7679
version = res.headers['Server']
7780
http_fingerprint({ :response => res })
7881
end

0 commit comments

Comments
 (0)