Skip to content

Commit 156aac1

Browse files
committed
Use timeout options
1 parent bf9ca1f commit 156aac1

File tree

2 files changed

+8
-7
lines changed

2 files changed

+8
-7
lines changed

modules/auxiliary/scanner/http/f5_bigip_virtual_server.rb

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -43,12 +43,13 @@ def initialize(info = {})
4343
def bigip_http?(ip, port, ssl)
4444
begin
4545
res = send_request_raw(
46-
'method' => 'GET',
47-
'uri' => '/',
48-
'rport' => port,
49-
'SSL' => ssl,
50-
'timeout' => datastore['TIMEOUT']
51-
)
46+
{
47+
'method' => 'GET',
48+
'uri' => '/',
49+
'rport' => port,
50+
'ssl' => ssl,
51+
},
52+
datastore['TIMEOUT'])
5253
return false unless res
5354
server = res.headers['Server']
5455
return true if server =~ /BIG\-IP/ || server =~ /BigIP/

modules/auxiliary/scanner/http/f5_mgmt_scanner.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ def initialize(info = {})
3939

4040
def port_open?
4141
begin
42-
res = send_request_raw('method' => 'GET', 'uri' => '/', 'timeout' => datastore['TIMEOUT'])
42+
res = send_request_raw({'method' => 'GET', 'uri' => '/'}, datastore['TIMEOUT'])
4343
return true if res
4444
rescue ::Rex::ConnectionRefused
4545
vprint_status("#{peer} - Connection refused")

0 commit comments

Comments
 (0)