Skip to content

Commit dafa984

Browse files
committed
Auxiliary::Web::Fuzzable#submit: bugfixed to call http.request instead of http.request_async
1 parent f6c27a4 commit dafa984

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

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

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,9 +43,9 @@ def fuzz_async( cfuzzer = nil, &callback )
4343
end
4444

4545
def submit( opts = {} )
46-
fuzzer.increment_request_counter
46+
fuzzer.increment_request_counter if fuzzer
4747

48-
resp = http.request_async( *request( opts ) )
48+
resp = http.request( *request( opts ) )
4949
handle_response( resp )
5050
resp
5151
end
@@ -90,6 +90,8 @@ def fuzz_wrapper( cfuzzer = nil, &block )
9090
end
9191

9292
def handle_response( resp )
93+
return if !fuzzer || !resp
94+
9395
str = " #{fuzzer.shortname}: #{resp.code} - #{method.to_s.upcase}" +
9496
" #{action} #{params}"
9597

0 commit comments

Comments
 (0)