Add better interface for specifying custom #eol.
parent
09e965d54e
commit
9f5dfab9ea
|
@ -206,6 +206,10 @@ module Exploit::PDF
|
|||
@eol || "\x0d\x0a"
|
||||
end
|
||||
|
||||
def eol=(new_eol)
|
||||
@eol = new_eol
|
||||
end
|
||||
|
||||
def endobj
|
||||
"endobj" << eol
|
||||
end
|
||||
|
|
|
@ -72,7 +72,7 @@ class Metasploit3 < Msf::Exploit::Remote
|
|||
end
|
||||
|
||||
def pdf(js)
|
||||
@eol = "\x0d"
|
||||
self.eol = "\x0d"
|
||||
@xref = {}
|
||||
@pdf = header('1.6')
|
||||
|
||||
|
|
Loading…
Reference in New Issue