Skip to content

Commit 74cdd91

Browse files
committed
Auxiliary::Web::HTTP#run: don't allow connection or callback errors to abort the whole operation
1 parent e1885ca commit 74cdd91

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

lib/msf/core/auxiliary/web/http.rb

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,12 @@ def run
123123
# Spawn threads for each host
124124
while tl.size <= (opts[:max_threads] || 5) && !@queue.empty? && (req = @queue.pop)
125125
tl << framework.threads.spawn( "#{self.class.name} - #{req})", false, req ) do |request|
126-
request.handle_response request( request.url, request.opts )
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
127132
end
128133
end
129134

0 commit comments

Comments
 (0)