Installation of libemu and pylibemu on Ubuntu/Debian

Posted: May 16th, 2012 | Author: | Filed under: IT Related | Tags: , , , | 5 Comments »

libemu is a small library written in C offering basic x86 emulation and shellcode detection using GetPC heuristics. It is designed to be used within network intrusion/prevention detections and honeypots. [1]

Here are some useful information that might help you to build and compile libemu on Ubuntu machine:

  • Install some dependencies for the building process
  • sudo apt-get install build-essential git-core autoconf libtool python-dev
  • Obtaining libemu via Git
  • cd /tmp/
    git clone git://git.carnivore.it/libemu.git
  • Configure and install
  • cd /tmp/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 /tmp/
    git clone https://github.com/buffer/pylibemu.git
  • Build and install
  • cd /tmp/pylibemu/
    sudo sh -c "echo /opt/libemu/lib > /etc/ld.so.conf.d/pylibemu.conf"
    python setup.py build
    sudo python setup.py install

Yerp.. you are good to go.

Reference:
[1] http://libemu.carnivore.it


5 Comments on “Installation of libemu and pylibemu on Ubuntu/Debian”

  1. 1 Installation of Thug (a Python low-interaction honeyclient) on Ubuntu/Debian | Xanda's Blog !~! said at 11:53 AM on May 21st, 2012:

    […] Install libemu and pylibemu. You may refer to this blog entry: “Installation of libemu and pylibemu on Ubuntu/Debian” […]

  2. 2 Digit Oktavianto said at 1:21 AM on July 26th, 2012:

    I askyour permission to translate ur article in my blog.I will write this page in my blog source, and i willgive some modification / explanation in my blogpost. thanks a lot before. Oh and i will translate ur tutorial on Thug, too. 🙂

  3. 3 xanda said at 12:49 PM on July 27th, 2012:

    Hi, Digit Oktavianto…

    Yaa no problem.. 🙂

  4. 4 Install Thug on Kali Linux | make then make install said at 10:13 AM on March 15th, 2013:

    […] Installation of libemu and pylibemu on Ubuntu/Debian Thug on REMnux (Walkthrough) PaulDotCom Episode318 […]

  5. 5 [KALI] install peepdf in kali | 95x/e5+ said at 1:52 PM on September 28th, 2014:

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


Leave a Reply