::File.binread

GSoC/Meterpreter_Web_Console
Brendan Coles 2018-11-27 18:58:05 +00:00
parent 45ca248568
commit 398987e94a
1 changed files with 1 additions and 5 deletions

View File

@ -120,11 +120,7 @@ class MetasploitModule < Msf::Exploit::Local
end
def exploit_data(file)
path = ::File.join Msf::Config.data_directory, 'exploits', 'cve-2018-18955', file
fd = ::File.open path, 'rb'
data = fd.read fd.stat.size
fd.close
data
::File.binread ::File.join(Msf::Config.data_directory, 'exploits', 'cve-2018-18955', file)
end
def live_compile?