Add better interface for specifying custom #eol.

bug/bundler_fix
joev 2014-05-31 16:14:52 -05:00
parent 09e965d54e
commit 9f5dfab9ea
2 changed files with 5 additions and 1 deletions

View File

@ -206,6 +206,10 @@ module Exploit::PDF
@eol || "\x0d\x0a"
end
def eol=(new_eol)
@eol = new_eol
end
def endobj
"endobj" << eol
end

View File

@ -72,7 +72,7 @@ class Metasploit3 < Msf::Exploit::Remote
end
def pdf(js)
@eol = "\x0d"
self.eol = "\x0d"
@xref = {}
@pdf = header('1.6')