File tree Expand file tree Collapse file tree 1 file changed +2
-7
lines changed
lib/msf/core/auxiliary/web Expand file tree Collapse file tree 1 file changed +2
-7
lines changed Original file line number Diff line number Diff line change @@ -123,12 +123,7 @@ def run
123
123
# Spawn threads for each host
124
124
while tl . size <= ( opts [ :max_threads ] || 5 ) && !@queue . empty? && ( req = @queue . pop )
125
125
tl << framework . threads . spawn ( "#{ self . class . name } - #{ req } )" , false , req ) do |request |
126
- begin
127
- request . handle_response request ( request . url , request . opts )
128
- rescue => e
129
- print_error e . to_s
130
- e . backtrace . each { |l | print_error "-- #{ l } " }
131
- end
126
+ request . handle_response request ( request . url , request . opts )
132
127
end
133
128
end
134
129
@@ -296,7 +291,7 @@ def _request( url, opts = {} )
296
291
Response . from_rex_response c . send_recv ( c . request_cgi ( opts ) , timeout )
297
292
rescue ::Timeout ::Error
298
293
Response . timed_out
299
- rescue ::Errno ::EPIPE , Rex ::ConnectionTimeout
294
+ rescue ::Errno ::EPIPE , :: Errno :: ECONNRESET , Rex ::ConnectionTimeout
300
295
Response . empty
301
296
end
302
297
You can’t perform that action at this time.
0 commit comments