This tutorial explains how to install the aircrack-ng tools on Debian in order to test the security of your network. This tutorial will explain how to crack your wep, wpa, wpa2 keys.
This tutorial is intended for people under Debian or distributions based on it (Ubuntu, Xandros ...). All commands in this tutorial are executed as root. (su command). It does not require any prerequisites.
Before starting this tutorial, I'll explain what aircrack-ng is. Aircrack-ng is a tool suite for Linux to analyse and test the strength of a network. It is used among other things to crack WEP keys and wpa1 and wpa2 keys. The best known of the aircrack-ng suite commands are:
- Airmon-ng : allows to put your wireless card into monitoring mode ;
- Airplay-ng : allows to generate packets in order to increase the traffic to the AP (often used when cracking a WEP key) ;
- Airodump-ng : allows to find and captures wireless network flow ;
- Aircrack : allows to execute different types of attacks to recover the WEP, wpa1 and wpa2 keys ;
Before starting this tutorial, we will download aircrack-ng. We will download it with the SVN. Therefore we need to install the package « subversion ». To do that, execute the following command:
apt-get install subversion
To download aircrack-ng into the folder « /opt » execute the following commands:
svn co http://trac.aircrack-ng.org/svn/trunk/ aircrack-ng
We will also install the package « iw » in order to configure and display the information about the wireless networks. To do that, execute the following command:
apt-get install iw
Now that aircrack-ng is downloaded, we can install it. To do that, execute the following command in order to go in the aircrack directory:
Then, execute the following command to install it:
make unstable=true install
During the installation of aircrack-ng the following error can occurs:
make -C src install
make: entrant dans le répertoire « /opt/aircrack-ng/src »
gcc -g -W -Wall -O3 -D_FILE_OFFSET_BITS=64 -D_REVISION=2203 -Iinclude -c -o aircrack-ng.o aircrack-ng.c
In file included from aircrack-ng.c:65:
crypto.h:50:26: error: openssl/hmac.h: Aucun fichier ou dossier de ce type
crypto.h:51:25: error: openssl/sha.h: Aucun fichier ou dossier de ce type
crypto.h:53:25: error: openssl/rc4.h: Aucun fichier ou dossier de ce type
crypto.h:54:25: error: openssl/aes.h: Aucun fichier ou dossier de ce type
In file included from aircrack-ng.c:69:
sha1-sse2.h: In function ‘calc_4pmk’:
sha1-sse2.h:168: warning: implicit declaration of function ‘HMAC’
sha1-sse2.h:168: warning: implicit declaration of function ‘EVP_sha1’
aircrack-ng.c: In function ‘crack_wpa_thread’:
aircrack-ng.c:3987: warning: implicit declaration of function ‘EVP_md5’
make: *** [aircrack-ng.o] Erreur 1
make: quittant le répertoire « /opt/aircrack-ng/src »
make: *** [install] Erreur 2
This error means that you don't have the required file in order to compute the different hash function (hmac, sha1, rc4ac, sha1, rc4, aec). To solve this issue, you need to install the package « libssl-dev ». To do that, execute the following command:
apt-get install build-essential libssl-dev
To update aircrack when it has been installed with the SVN you need to execute the following commands:
make unstable=true install
Here, we consider that aircrack-ng has be installed in /opt.
You like this tutorial ?
Like this website in order to promote it on facebook !