File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
lib/msf/core/exploit/http Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -334,7 +334,7 @@ def send_request_raw(opts={}, timeout = 20)
334
334
# Passes `opts` through directly to {Rex::Proto::Http::Client#request_cgi}.
335
335
#
336
336
# @return (see Rex::Proto::Http::Client#send_recv))
337
- def send_request_cgi ( opts = { } , timeout = 20 )
337
+ def send_request_cgi ( opts = { } , timeout = 20 , disconnect = true )
338
338
if datastore [ 'HttpClientTimeout' ] && datastore [ 'HttpClientTimeout' ] > 0
339
339
actual_timeout = datastore [ 'HttpClientTimeout' ]
340
340
else
@@ -362,7 +362,7 @@ def send_request_cgi(opts={}, timeout = 20)
362
362
print_line ( '#' * 20 )
363
363
print_line ( res . to_terminal_output )
364
364
end
365
- disconnect ( c )
365
+ disconnect ( c ) if disconnect
366
366
res
367
367
rescue ::Errno ::EPIPE , ::Timeout ::Error => e
368
368
print_line ( e . message ) if datastore [ 'HttpTrace' ]
You can’t perform that action at this time.
0 commit comments