actually create new file ;-;

MS-2855/keylogger-mettle-extension
Austin 2017-11-21 15:00:06 -05:00 committed by GitHub
parent 39a4d193a1
commit fcea6fd8d4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 4 deletions

View File

@ -134,10 +134,10 @@ class MetasploitModule < Msf::Exploit::Remote
payload = (payload + ("\x00" * (197 - payload.length))).unpack('H*').first
payload = header + payload + footer
rtf = File.new(datastore['FILENAME'], 'w')
rtf.write(payload)
rtf.close
rtf
::File.open(datastore['FILENAME'], 'wb') do |fd|
fd.write(payload)
fd.close
end
end