Skip to content

Installation

Jose Miguel Esparza edited this page Dec 13, 2015 · 3 revisions

Installation


It's not necessary to install anything to execute the tool, just executing the Python interpreter with peepdf.py. However, to use all its functionalities it's recommended the installation of some external packages.

The packages and libraries needed to have a full installation of peepdf are the following:

  • lxml (external in Windows): creation of XML otuput. Only needed with -x.
  • PyV8 (external): execution of Javascript code.
  • pylibemu (external): Libemu Python wrapper to emulate the shellcode execution.
  • Pillow (external): Python Imaging Library (Fork) used to decode/decrompress images.

PyV8

You can download the package from this URL and follow the instructions:

http://code.google.com/p/pyv8/

Also, this is a useful link to accomplish the task:

http://andrewwilkinson.wordpress.com/2012/01/23/integrating-python-and-javascript-with-pyv8/

pylibemu (libemu)

You can download the libemu files directly from the git repository (Sourceforge package is outdated):

http://libemu.carnivore.it/#installation

Once libemu is installed you have to install pylibemu too:

https://github.com/buffer/pylibemu

Another useful link related to the installation of pylibemu:

http://blog.xanda.org/2012/05/16/installation-of-libemu-and-pylibemu-on-ubuntu/

lxml

Just follow the instructions on the official page, very easy!

http://lxml.de/installation.html

Pillow (Python Imaging Library Fork)

Just follow the instructions on the official page, very easy!

https://pillow.readthedocs.org/en/latest/installation.html

In Ubuntu 14.04 just execute: $ sudo apt-get install python-pil

Clone this wiki locally