How To Install aircrack-ng on Debian 9

In this tutorial we learn how to install aircrack-ng on Debian 9. aircrack-ng is wireless WEP/WPA cracking utilities

Introduction

In this tutorial we learn how to install aircrack-ng on Debian 9.

What is aircrack-ng

aircrack-ng is:

aircrack-ng is an 802.11a/b/g WEP/WPA cracking program that can recover a 40-bit, 104-bit, 256-bit or 512-bit WEP key once enough encrypted packets have been gathered. Also it can attack WPA1/2 networks with some advanced methods or simply by brute force.

It implements the standard FMS attack along with some optimizations, thus making the attack much faster compared to other WEP cracking tools. It can also fully use a multiprocessor system to its full power in order to speed up the cracking process.

aircrack-ng is a fork of aircrack, as that project has been stopped by the upstream maintainer.

There are three methods to install aircrack-ng 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 aircrack-ng Using apt-get

Update apt database with apt-get using the following command.

sudo apt-get update

After updating apt database, We can install aircrack-ng using apt-get by running the following command:

sudo apt-get -y install aircrack-ng

Install aircrack-ng Using apt

Update apt database with apt using the following command.

sudo apt update

After updating apt database, We can install aircrack-ng using apt by running the following command:

sudo apt -y install aircrack-ng

Install aircrack-ng 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 aircrack-ng using aptitude by running the following command:

sudo aptitude -y install aircrack-ng

How To Uninstall aircrack-ng on Debian 9

To uninstall only the aircrack-ng package we can use the following command:

sudo apt-get remove aircrack-ng

Uninstall aircrack-ng And Its Dependencies

To uninstall aircrack-ng and its dependencies that are no longer needed by Debian 9, we can use the command below:

sudo apt-get -y autoremove aircrack-ng

Remove aircrack-ng Configurations and Data

To remove aircrack-ng configuration and data from Debian 9 we can use the following command:

sudo apt-get -y purge aircrack-ng

Remove aircrack-ng configuration, data, and all of its dependencies

We can use the following command to remove aircrack-ng configurations, data and all of its dependencies, we can use the following command:

sudo apt-get -y autoremove --purge aircrack-ng

Dependencies

aircrack-ng have the following dependencies:

References

Summary

In this tutorial we learn how to install aircrack-ng package on Debian 9 using different package management tools: apt, apt-get and aptitude.