File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
modules/exploits/android/local Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -11,7 +11,6 @@ class MetasploitModule < Msf::Exploit::Local
11
11
12
12
include Msf ::Post ::File
13
13
include Msf ::Post ::Common
14
- include Msf ::Exploit ::FileDropper
15
14
16
15
def initialize ( info = { } )
17
16
super ( update_info ( info , {
@@ -68,7 +67,6 @@ def exploit
68
67
69
68
workingdir = session . fs . dir . getwd
70
69
remote_file = "#{ workingdir } /#{ Rex ::Text ::rand_text_alpha_lower ( 5 ) } "
71
- register_file_for_cleanup ( remote_file )
72
70
write_file ( remote_file , exploit_data )
73
71
74
72
print_status ( "Loading exploit library #{ remote_file } " )
@@ -84,6 +82,8 @@ def exploit
84
82
)
85
83
session . response_timeout = old_timeout
86
84
print_status ( "Loaded library #{ remote_file } " )
85
+ session . fs . file . rm ( remote_file )
86
+ print_status ( "Library #{ remote_file } was deleted" )
87
87
end
88
88
89
89
end
You can’t perform that action at this time.
0 commit comments