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 update
After updating apt database, We can install libcrafter
using apt-get
by running the following command:
sudo apt-get -y install libcrafter
Install libcrafter Using apt
Update apt database with apt
using the following command.
sudo apt update
After updating apt database, We can install libcrafter
using apt
by running the following command:
sudo apt -y install libcrafter
Install 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 update
After updating apt database, We can install libcrafter
using aptitude
by running the following command:
sudo aptitude -y install libcrafter
How To Uninstall libcrafter on Kali Linux
To uninstall only the libcrafter
package we can use the following command:
sudo apt-get remove libcrafter
Uninstall 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 libcrafter
Remove libcrafter Configurations and Data
To remove libcrafter
configuration and data from Kali Linux we can use the following command:
sudo apt-get -y purge libcrafter
Remove 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 libcrafter
Dependencies
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
.