@@ -53,7 +53,7 @@ def initialize(info = {})
53
53
OptEnum . new ( 'SSLVersion' , [ false , 'Specify the version of SSL that should be used' , 'Auto' , [ 'Auto' , 'SSL2' , 'SSL3' , 'TLS1' ] ] ) ,
54
54
OptBool . new ( 'FingerprintCheck' , [ false , 'Conduct a pre-exploit fingerprint verification' , true ] ) ,
55
55
OptString . new ( 'DOMAIN' , [ true , 'The domain to use for windows authentification' , 'WORKSTATION' ] ) ,
56
- OptInt . new ( 'HttpRequestTimeout ' , [ false , 'HTTP connection and receive timeout' , 20 ] )
56
+ OptInt . new ( 'HttpClientTimeout ' , [ false , 'HTTP connection and receive timeout' , 20 ] )
57
57
] , self . class
58
58
)
59
59
@@ -308,7 +308,7 @@ def cleanup
308
308
# Passes +opts+ through directly to Rex::Proto::Http::Client#request_raw.
309
309
#
310
310
def send_request_raw ( opts = { } , timeout = 20 )
311
- actual_timeout = datastore [ 'HttpRequestTimeout ' ] || opts [ :timeout ] || timeout
311
+ actual_timeout = datastore [ 'HttpClientTimeout ' ] || opts [ :timeout ] || timeout
312
312
begin
313
313
c = connect ( opts )
314
314
r = c . request_raw ( opts )
@@ -325,7 +325,7 @@ def send_request_raw(opts={}, timeout = 20)
325
325
# Passes +opts+ through directly to Rex::Proto::Http::Client#request_cgi.
326
326
#
327
327
def send_request_cgi ( opts = { } , timeout = 20 )
328
- actual_timeout = datastore [ 'HttpRequestTimeout ' ] || opts [ :timeout ] || timeout
328
+ actual_timeout = datastore [ 'HttpClientTimeout ' ] || opts [ :timeout ] || timeout
329
329
begin
330
330
c = connect ( opts )
331
331
r = c . request_cgi ( opts )
@@ -344,7 +344,7 @@ def send_request_cgi(opts={}, timeout = 20)
344
344
# will contain the full URI.
345
345
#
346
346
def send_request_cgi! ( opts = { } , timeout = 20 , redirect_depth = 1 )
347
- actual_timeout = datastore [ 'HttpRequestTimeout ' ] || opts [ :timeout ] || timeout
347
+ actual_timeout = datastore [ 'HttpClientTimeout ' ] || opts [ :timeout ] || timeout
348
348
res = send_request_cgi ( opts , actual_timeout )
349
349
return res unless res && res . redirect? && redirect_depth > 0
350
350
0 commit comments