File tree Expand file tree Collapse file tree 1 file changed +7
-3
lines changed
modules/auxiliary/scanner/http Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -136,11 +136,15 @@ def run_host(ip)
136
136
'ctype' => 'text/plain'
137
137
} , 20 )
138
138
139
+ if res . nil?
140
+ print_error ( "Connection timed out" )
141
+ return
142
+ end
139
143
140
144
if testmesg . empty? or usecode
141
- if ( not res or ( ( res . code . to_i == ecode ) or ( emesg and res . body . index ( emesg ) ) ) )
145
+ if ( res . code . to_i == ecode ) or ( emesg and res . body . index ( emesg ) )
142
146
if dm == false
143
- print_status ( "NOT Found #{ wmap_base_url } #{ tpath } #{ testfvuln } #{ res . code . to_i rescue '' } " )
147
+ print_status ( "NOT Found #{ wmap_base_url } #{ tpath } #{ testfvuln } #{ res . code . to_i } " )
144
148
end
145
149
else
146
150
if res . code . to_i == 400 and ecode != 400
@@ -172,7 +176,7 @@ def run_host(ip)
172
176
)
173
177
else
174
178
if dm == false
175
- print_status ( "NOT Found #{ wmap_base_url } #{ tpath } #{ testfvuln } #{ res . code . to_i rescue '' } " )
179
+ print_status ( "NOT Found #{ wmap_base_url } #{ tpath } #{ testfvuln } #{ res . code . to_i } " )
176
180
end
177
181
end
178
182
end
You can’t perform that action at this time.
0 commit comments