Skip to content

Commit 04e4ff6

Browse files
authored
Use stop_service to avoid cleanup overload
1 parent 40f54df commit 04e4ff6

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

modules/exploits/multi/http/oracle_weblogic_wsat_deserialization_rce.rb

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,11 +162,13 @@ def check
162162
until @received_request
163163
sleep 1
164164
waited += 1
165-
if (waited > datastore['HTTP_DELAY'])
165+
if waited > datastore['HTTP_DELAY']
166+
stop_service
166167
return Exploit::CheckCode::Safe
167168
end
168169
end
169170

171+
stop_service
170172
return Exploit::CheckCode::Vulnerable
171173
end
172174

0 commit comments

Comments
 (0)