Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Installing PyV8 in Kali for use with peepdf
Installing PyV8 in Kali for use with peepdf
Kali 2016.1 rolling comes with peepdf 0.3, but it doesn't at present have PyV8 for javascript. peepdf may tell you this sad news. Here, we find out how to be happier.
First, we solve some dependencies. v8 relies upon boost. The dependencies aren't packaged up nicely, so builds will fail. You can fix that with an apt-get of dev packages
apt-get install libboost-python-dev
apt-get install libboost-thread-dev
Then we get v8 and PyV8 from old googlecode and put them in /usr/local/src
cd /usr/local/src
svn checkout pyv8
svn checkout v8
Next we teach pyv8 how to find v8
export V8_HOME=/usr/local/src/v8
export PyV8=/usr/local/src/v8 # probably unnecessary
Finally, we build and install. The build process will update v8, pyv8, and large prereqs (GYP) from googlecode
cd /usr/local/src/pyv8
python build
python install
Run peepdf and see it find pyv8, to parse javascript
Future work would involve redoing the PyV8 install so it uses the updated Google git version of v8 and ancillary parts. Start here: and (don't just directly clone or
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment