How To Install libemu2 on Debian 9
Introduction
In this tutorial we learn how to install libemu2
on Debian 9.
What is libemu2
libemu2 is:
libemu is a small library written in C offering basic x86 emulation and shellcode detection using GetPC heuristics. Intended use is within network intrusion/prevention detections and honeypots.
libemu supports:
- executing x86 instructions
- reading x86 binary code
- register emulation
- basic FPU emulation
- shellcode execution
- shellcode detection
- using GetPC heuristics
- static analysis
- and binary backwards traversal
- Win32 API hooking
- shellcode detection
Using libemu one can:
- detect shellcodes
- execute the shellcodes
- profile shellcode behaviour
This package has the basic utilities and library files.
There are three methods to install libemu2
on Debian 9. We can use apt-get
, apt
and aptitude
. In the following sections we will describe each method. You can choose one of them.
Install libemu2 Using apt-get
Update apt database with apt-get
using the following command.
sudo apt-get update
After updating apt database, We can install libemu2
using apt-get
by running the following command:
sudo apt-get -y install libemu2
Install libemu2 Using apt
Update apt database with apt
using the following command.
sudo apt update
After updating apt database, We can install libemu2
using apt
by running the following command:
sudo apt -y install libemu2
Install libemu2 Using aptitude
If you want to follow this method, you might need to install aptitude first since aptitude is usually not installed by default on Debian. Update apt database with aptitude
using the following command.
sudo aptitude update
After updating apt database, We can install libemu2
using aptitude
by running the following command:
sudo aptitude -y install libemu2
How To Uninstall libemu2 on Debian 9
To uninstall only the libemu2
package we can use the following command:
sudo apt-get remove libemu2
Uninstall libemu2 And Its Dependencies
To uninstall libemu2
and its dependencies that are no longer needed by Debian 9, we can use the command below:
sudo apt-get -y autoremove libemu2
Remove libemu2 Configurations and Data
To remove libemu2
configuration and data from Debian 9 we can use the following command:
sudo apt-get -y purge libemu2
Remove libemu2 configuration, data, and all of its dependencies
We can use the following command to remove libemu2
configurations, data and all of its dependencies, we can use the following command:
sudo apt-get -y autoremove --purge libemu2
Dependencies
libemu2 have the following dependencies:
References
Summary
In this tutorial we learn how to install libemu2
package on Debian 9 using different package management tools: apt
, apt-get
and aptitude
.