Skip to content

Commit d4056e7

Browse files
authored
Lower the default timeout for CHECK
1 parent 3617a30 commit d4056e7

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

modules/exploits/multi/http/oracle_weblogic_wsat_deserialization_rce.rb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ def initialize(info = {})
5555
OptString.new('TARGETURI', [true, 'The base path to the WebLogic WSAT endpoint', '/wls-wsat/CoordinatorPortType']),
5656
OptPort.new('RPORT', [true, "The remote port that the WebLogic WSAT endpoint listens on", 7001]),
5757
OptFloat.new('TIMEOUT', [true, "The timeout value of requests to RHOST", 20.0]),
58-
OptInt.new('HTTP_DELAY', [true, 'Time that the HTTP Server will wait for the check payload', 30])
58+
OptInt.new('HTTP_DELAY', [true, 'Time that the HTTP Server will wait for the check payload', 10])
5959
])
6060
end
6161

@@ -182,8 +182,8 @@ def check
182182

183183
waited = 0
184184
while (not @received_request)
185-
select(nil, nil, nil, 1)
186-
waited += 1
185+
sleep 1
186+
waited += 1
187187
if (waited > datastore['HTTP_DELAY'])
188188
return Exploit::CheckCode::Safe
189189
end

0 commit comments

Comments
 (0)