[KALI] install peepdf in kali

peepdf 是一款可以用來分析 PDF 有無被加料的開源程式,方便簡單好用

但是安裝上有點複雜

1.首先到官網下載 peepdf 0.3 到 Kali

2.直接執行會跳出警告

peepdf Tutorial.pdf

Warning: pyv8 is not installed!!
Warning: pylibemu is not installed!!

pyv8 很好解決

Download, configure and install Google V8

svn checkout http://v8.googlecode.com/svn/trunk/ v8

svn checkout http://pyv8.googlecode.com/svn/trunk/ pyv8

setup V8 and PyV8

export V8_HOME=/usr/local/src/thug/v8/

cd pyv8/

python setup.py build

python setup.py install

但是 pylibemu 就很麻煩了,前面還要再裝一個 libemu 套件,

再來才安裝pylibemu ,再手動 import python

然後手動再 import python

    • Install some dependencies for the building process
sudo apt-get install build-essential git-core autoconf libtool python-dev
    • Obtaining libemu via Git
cd /usr/local/src
git clone git://git.carnivore.it/libemu.git
    • Configure and install
cd /usr/local/src/libemu/
autoreconf -v -i
./configure --enable-python-bindings --prefix=/opt/libemu
sudo make install
sudo ldconfig -n /opt/libemu/lib

Now install the pylibemu, the python wrapper for the Libemu library

    • Install some dependencies for the building process
sudo apt-get install python-dev python-setuptools
    • Obtaining pylibemu via Git
cd /usr/local/src/
git clone https://github.com/buffer/pylibemu.git
    • Build and install
cd /usr/local/src/pylibemu/
sudo sh -c "echo /opt/libemu/lib > /etc/ld.so.conf.d/pylibemu.conf"
python setup.py build
sudo python setup.py install

輸入

cd /usr/local/src/pylibemu/
root@kali:/usr/local/src/thug/pylibemu# python
Python 2.7.3 (default, Mar 13 2014, 11:03:55) 
[GCC 4.7.2] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import pylibemu
>>> dir(pylibemu)
['EMU_REGS', 'EmuProfile', 'Emulator', '__builtins__', '__doc__', '__file__', '__name__', '__package__', '__test__', '__version__', 'hashlib', 'logging', 'socket', 'sys', 'urllib2']
>>> 


再次執行 peepdf 就ok了

 

[Ref]

How to install libemu & pylibemu on Kali Linux | Hakawati Security Lab

https://github.com/buffer/thug/wiki/Kali-Installation-Note

Installation of libemu and pylibemu on Ubuntu/Debian | Xanda's Blog !~!

 

No Comments Yet.

Leave a comment