Skip to content

Commit 217d89f

Browse files
committed
Fix undefined method error
[FixRM rapid7#8341]
1 parent 3a271e7 commit 217d89f

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

modules/auxiliary/scanner/http/barracuda_directory_traversal.rb

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,12 @@ def run_host(ip)
6363
'uri' => uri + payload,
6464
}, 25)
6565

66-
if (res and res.code == 200 and res.body)
66+
if res.nil?
67+
print_error("Connection timed out")
68+
return
69+
end
70+
71+
if (res.code == 200 and res.body)
6772
if res.body.match(/\<html\>(.*)\<\/html\>/im)
6873
html = $1
6974

0 commit comments

Comments
 (0)