File tree Expand file tree Collapse file tree 1 file changed +2
-4
lines changed
modules/auxiliary/scanner/http Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -140,8 +140,7 @@ def run_host(ip)
140
140
if testmesg . empty? or usecode
141
141
if ( not res or ( ( res . code . to_i == ecode ) or ( emesg and res . body . index ( emesg ) ) ) )
142
142
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 '' } " )
145
144
end
146
145
else
147
146
if res . code . to_i == 400 and ecode != 400
@@ -173,8 +172,7 @@ def run_host(ip)
173
172
)
174
173
else
175
174
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 '' } " )
178
176
end
179
177
end
180
178
end
You can’t perform that action at this time.
0 commit comments