We use a small pdf generator from Didier Stevens
To generate the exploit:
- Generate a js payload using generate-js.py
$ python generate-js.py > test.js
- Use make-pdf-javascript to generate a pdf with that JS embedded
$ python make-pdf-javascript.py -f test.js test.pdf
- Open the pdf in Foxit and attach bitcoins.pdf and then use "Sign" feature in "Protect" to sign the pdf.