Skip to content

Commit be29e44

Browse files
committed
Fix undefined method error
[FixRM rapid7#8328]
1 parent ae8c40c commit be29e44

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

modules/auxiliary/scanner/http/web_vulndb.rb

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -140,8 +140,7 @@ def run_host(ip)
140140
if testmesg.empty? or usecode
141141
if(not res or ((res.code.to_i == ecode) or (emesg and res.body.index(emesg))))
142142
if dm == false
143-
print_status("NOT Found #{wmap_base_url}#{tpath}#{testfvuln} #{res.code.to_i}")
144-
#blah
143+
print_status("NOT Found #{wmap_base_url}#{tpath}#{testfvuln} #{res.code.to_i rescue ''}")
145144
end
146145
else
147146
if res.code.to_i == 400 and ecode != 400
@@ -173,8 +172,7 @@ def run_host(ip)
173172
)
174173
else
175174
if dm == false
176-
print_status("NOT Found #{wmap_base_url}#{tpath}#{testfvuln} #{res.code.to_i}")
177-
#blah
175+
print_status("NOT Found #{wmap_base_url}#{tpath}#{testfvuln} #{res.code.to_i rescue ''}")
178176
end
179177
end
180178
end

0 commit comments

Comments
 (0)