HOWTO : Make-PDF tools on Ubuntu Desktop 12.04 LTS

make-pdf tools consists of make-pdf-javascript.py and make-pdf-embedded.py which allows penetration testers to embed file or javascript to a pdf file.



make-pdf-javascript.py allows one to create a simple PDF document with embedded JavaScript that will execute upon opening of the PDF document. It’s essentially glue-code for the mPDF.py module which contains a class with methods to create headers, indirect objects, stream objects, trailers and XREFs.



make-pdf-embedded.py creates a PDF file with an embedded file.



Step 1 :



sudo -sH

mkdir /opt/make-pdf

cd /opt/make-pdf



wget http://didierstevens.com/files/software/make-pdf_V0_1_4.zip

unzip make-pdf_V0_1_4.zip



rm make-pdf_V0_1_4.zip




Step 2 :



To run them.



sudo -sH

cd /opt/make-pdf

python make-pdf-embedded.py

python make-pdf-javascript.py




That's all! See you.