Skip to content

Commit 40f54df

Browse files
authored
Feedback updates
1 parent 172ffdf commit 40f54df

File tree

1 file changed

+2
-10
lines changed

1 file changed

+2
-10
lines changed

modules/exploits/multi/http/oracle_weblogic_wsat_deserialization_rce.rb

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -146,15 +146,7 @@ def on_request_uri(cli, request)
146146
# exploits/windows/novell/netiq_pum_eval.rb
147147
#
148148
def check
149-
datastore['URIPATH'] = datastore['URIPATH'] || random_uri
150-
datastore['URIPATH'] = '/' + datastore['URIPATH'] if datastore['URIPATH'] !~ /^\//
151-
152-
start_service({'Uri' => {
153-
'Proc' => Proc.new { |cli, req|
154-
on_request_uri(cli, req)
155-
},
156-
'Path' => datastore['URIPATH']
157-
}})
149+
start_service
158150

159151
print_status('Sending the check payload...')
160152
res = send_request_cgi({
@@ -167,7 +159,7 @@ def check
167159
print_status("Waiting #{datastore['HTTP_DELAY']} seconds to see if the target requests our URI...")
168160

169161
waited = 0
170-
while (not @received_request)
162+
until @received_request
171163
sleep 1
172164
waited += 1
173165
if (waited > datastore['HTTP_DELAY'])

0 commit comments

Comments
 (0)