Skip to content

Commit 18b873b

Browse files
committed
Fix the exception issue reported in issue rapid7#7585
Fix the exception by initialize a key variable that caused the exception.
1 parent 66ba2b0 commit 18b873b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

modules/auxiliary/scanner/http/brute_dirs.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ def run_host(ip)
8989

9090
# Look for a string we can signature on as well
9191
if(tcode >= 200 and tcode <= 299)
92-
92+
emesg = nil
9393
File.open(datastore['HTTP404Sigs'], 'rb').each do |str|
9494
if(res.body.index(str))
9595
emesg = str

0 commit comments

Comments
 (0)