How To Install libcrafter on Kali Linux
Introduction
In this tutorial we learn how to install libcrafter on Kali Linux.
What is libcrafter
libcrafter is:
Libcrafter is a high level library for C++ designed to make easier the creation and decoding of network packets. It is able to craft or decode packets of most common network protocols, send them on the wire, capture them and match requests and replies. It enables the creation of networking tools in a few lines with an interface very similar to Scapy. A packet is described as layers that you stack one upon the other. Fields of each layer have useful default values that you can overload.
There are three methods to install libcrafter on Kali Linux. We can use apt-get, apt and aptitude. In the following sections we will describe each method. You can choose one of them.
Install libcrafter Using apt-get
Update apt database with apt-get using the following command.
sudo apt-get updateAfter updating apt database, We can install libcrafter using apt-get by running the following command:
sudo apt-get -y install libcrafterInstall libcrafter Using apt
Update apt database with apt using the following command.
sudo apt updateAfter updating apt database, We can install libcrafter using apt by running the following command:
sudo apt -y install libcrafterInstall libcrafter Using aptitude
If you want to follow this method, you might need to install aptitude on Kali Linux first since aptitude is usually not installed by default on Kali Linux. Update apt database with aptitude using the following command.
sudo aptitude updateAfter updating apt database, We can install libcrafter using aptitude by running the following command:
sudo aptitude -y install libcrafterHow To Uninstall libcrafter on Kali Linux
To uninstall only the libcrafter package we can use the following command:
sudo apt-get remove libcrafterUninstall libcrafter And Its Dependencies
To uninstall libcrafter and its dependencies that are no longer needed by Kali Linux, we can use the command below:
sudo apt-get -y autoremove libcrafterRemove libcrafter Configurations and Data
To remove libcrafter configuration and data from Kali Linux we can use the following command:
sudo apt-get -y purge libcrafterRemove libcrafter configuration, data, and all of its dependencies
We can use the following command to remove libcrafter configurations, data and all of its dependencies, we can use the following command:
sudo apt-get -y autoremove --purge libcrafterDependencies
libcrafter have the following dependencies:
References
Summary
In this tutorial we learn how to install libcrafter package on Kali Linux using different package management tools: apt, apt-get and aptitude.