Specify arch & platform for generate_payload_exe
If not specified, generic payloads will fail.bug/bundler_fix
parent
0e21265ecc
commit
9697ce5033
|
@ -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}")
|
||||
|
|
Loading…
Reference in New Issue