removed require in erb file

GSoC/Meterpreter_Web_Console
Shelby Pace 2018-09-05 18:09:29 -05:00
parent 6a3a4de289
commit 55bf6e5dd4
No known key found for this signature in database
GPG Key ID: B2F3A8B476406857
2 changed files with 1 additions and 1 deletions

View File

@ -1,5 +1,4 @@
require 'erb'
require 'modules/exploits/windows/fileformat/foxit_reader_uaf'
template = %q{
%PDF

View File

@ -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