::File.binread
parent
45ca248568
commit
398987e94a
|
@ -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?
|
||||
|
|
Loading…
Reference in New Issue