removed require in erb file
parent
6a3a4de289
commit
55bf6e5dd4
|
@ -1,5 +1,4 @@
|
|||
require 'erb'
|
||||
require 'modules/exploits/windows/fileformat/foxit_reader_uaf'
|
||||
|
||||
template = %q{
|
||||
%PDF
|
||||
|
|
|
@ -87,6 +87,7 @@ class MetasploitModule < Msf::Exploit::Remote
|
|||
begin
|
||||
path = File.join(Msf::Config.install_root, 'data', 'exploits', 'CVE-2018-9948')
|
||||
pdfDoc = ERB.new(File.read("#{path}/template_pdf.erb")).result(binding())
|
||||
pdfDoc
|
||||
rescue
|
||||
fail_with(Failure::NotFound, 'The PDF template was not found')
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue