- Installing Aircrack-ng from Source
- Windows (Cygwin)
- MacOS
- FreeBSD, OpenBSD, NetBSD, Solaris
- Optional stuff
- Compiling and installing
- Current version
- Compiling with AirPcap support (cygwin only)
- Compiling on *BSD
- Compiling on MacOS
- Latest Git (development) Sources
- ./configure flags
- Troubleshooting Tips
- error while loading shared libraries: libaircrack-ng.so.0
- «command not found» error message
- Installing pre-compiled binaries
- Linux/BSD/OSX
- Windows
- How To Install aircrack-ng on Kali Linux
- One-liner install command
- What is aircrack-ng and what are the ways to install it?
- Install aircrack-ng using apt-get
- Install aircrack-ng using apt
- Install aircrack-ng using aptitude
- How to upgrade (update) a single package aircrack-ng using apt-get?
- How To Uninstall aircrack-ng from Kali Linux
- Uninstall aircrack-ng and all its dependencies
- Remove aircrack-ng with all configurations and data
- Remove aircrack-ng completely (configurations, data and all of its dependencies)
- Extra info and code examples
- Conclusion
Installing Aircrack-ng from Source
LibNetlink 1 (libnl-dev) or 3 (libnl-3-dev and libnl-genl-3-dev) development packages. It can be disabled by passing –disable-libnl to configure.
Kernel headers and gcc as well as make have to be installed on your system (build-essential on Debian based distributions)
Windows (Cygwin)
MacOS
Install the following via Homebrew (brew):
FreeBSD, OpenBSD, NetBSD, Solaris
Install the following via pkg:
Optional stuff
If you want SSID filtering with regular expression in airodump-ng (-essid-regex) pcre development package is required.
If you want to use airolib-ng and ‘-r’ option in aircrack-ng, SQLite development package >= 3.3.17 (3.6.X version or better is recommended)
If you want to use Airpcap, the ‘developer’ directory from the CD is required. It can be downloaded here.
For best performance on FreeBSD (50-70% more), install gcc5 via: pkg install gcc5 Then compile with: gmake CC=gcc5 CXX=g++5
hwloc: strongly recommended, especially on high core count systems where it may give a serious performance boost
Compiling and installing
Current version
wget https://download.aircrack-ng.org/aircrack-ng-1.7.tar.gz tar -zxvf aircrack-ng-1.7.tar.gz cd aircrack-ng-1.7 autoreconf -i ./configure --with-experimental make make install ldconfig
Compiling with AirPcap support (cygwin only)
Compiling on *BSD
Commands are exactly the same as Linux but instead of make, use gmake (with CC=gcc5 CXX=g++5 or any more recent gcc version installed).
Compiling on MacOS
Commands are exactly the same as Linux
Latest Git (development) Sources
Note: Compilation parameters can also be used with the sources from our git repository.
git clone https://github.com/aircrack-ng/aircrack-ng cd aircrack-ng autoreconf -i ./configure --with-experimental make make install ldconfig
./configure flags
When configuring, the following flags can be used and combined to adjust the suite to your choosing:
with-airpcap=DIR: needed for supporting airpcap devices on windows (cygwin or msys2 only) Replace DIR above with the absolute location to the root of the extracted source code from the Airpcap CD or downloaded SDK available online. Required on Windows to build besside-ng, besside-ng-crawler, easside-ng, tkiptun-ng and wesside-ng when building experimental tools. The developer pack (Compatible with version 4.1.1 and 4.1.3) can be downloaded at https://support.riverbed.com/content/support/software/steelcentral-npm/airpcap.html
with-experimental: needed to compile tkiptun-ng, easside-ng, buddy-ng, buddy-ng-crawler, airventriloquist and wesside-ng. libpcap development package is also required to compile most of the tools. If not present, not all experimental tools will be built. On Cygwin, libpcap is not present and the Airpcap SDK replaces it. See –with-airpcap option above. On debian based distro, install libpcap-dev
with-ext-scripts: needed to build airoscript-ng, versuck-ng, airgraph-ng and airdrop-ng. Note: Each script has its own dependencies. Note: It’s only required in install phase.
with-gcrypt: Use libgcrypt crypto library instead of the default OpenSSL. And also use internal fast sha1 implementation (borrowed from GIT) Dependency (Debian): libgcrypt20-dev
with-duma: Compile with DUMA support. DUMA is a library to detect buffer overruns and under-runs. Dependencies (debian): duma
with-avx512: On x86, add support for AVX512 instructions in aircrack-ng. Only use it when the current CPU supports AVX512.
with-static-simd=: Compile a single optimization in aircrack-ng binary. Useful when compiling statically and/or for space-constrained devices. Valid SIMD options: x86-sse2, x86-avx, x86-avx2, x86-avx512, ppc-altivec, ppc-power8, arm-neon, arm-asimd. Must be used with –enable-static –disable-shared. When using those 2 options, the default is to compile the generic optimization in the binary. –with-static-simd merely allows to choose another one.
enable-maintainer-mode: It is important to enable this flag when developing with Aircrack-ng. This flag enables additional compile warnings and safety features.
Troubleshooting Tips
error while loading shared libraries: libaircrack-ng.so.0
Run ldconfig as root or with “sudo” to solve the issue.
«command not found» error message
After you do “make install” then try to use any of the Aircrack-ng suite commands, you get the error message “command not found” or similar. Your system will look for the Aircrack-ng commands in the directories defined by the PATH command.
Normally, the Aircrack-ng suite programs and man pages are placed in:
/usr/local/bin /usr/local/sbin /usr/local/man
On your system, to determine which directories have the Aircrack-ng programs enter the following. If using “locate” be sure to first run “updatedb”.
locate aircrack-ng locate airmon-ng
find / -name aircrack-ng find / -name airmon-ng
Once you know the directories (exclude the source directories) then determine which directories are in your PATH. To see which directories are included in PATH on your particular system enter:
It should show something like:
/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
At this point compare the actual locations with the directories in your PATH. If the directories are missing from your PATH then you have a few options:
Add the directories to your PATH. See the one or more of the following web sites for details of how to do this:
https://www.cyberciti.biz/faq/howto-print-path-variable/ http://www.troubleshooters.com/linux/prepostpath.htm
Change to the particular directory with “cd” and then run the commands from within the directory. Don’t forget to add “./” in front of each command.
Specify the full path for each command. So if Aircrack-ng is located in the “/usr/local/bin” directory then run the command as “/usr/local/bin/aircrack-ng”.
Installing pre-compiled binaries
Linux/BSD/OSX
With the exception of Linux penetration testing distributions, packages are usually out of date (MacOS is the exception). In this case, uninstalling the package and installing from sources is the recommended way to go.
On MacOS, install it is via Macports or brew. Simply do “brew install aircrack-ng” or “sudo ports install aircrack-ng”
Windows
The Windows version of the Aircrack-ng suite does not have an install program. You must manually install (unzipping archive) the software.
Here are the steps to follow for Windows:
Download the latest version of the Aircrack-ng suite for Windows to your computer. The link for the zip file can be found on the Wiki home page.
Unzip the contents of the Aircrack-ng zip file into “C:\”. This will create a directory called “aircrack-ng-1.6-win”. This directory name will vary based on the exact version that you downloaded. This main directory contains three subdirectories — “bin”, “src” and “test”.
Prior to using the software, make sure to install the drivers for your particular wireless card. See this link for the instructions. We currently only support Airpcap; other adapters may be supported but require development of your own DLL so the different tools can interact with it.
To now use the Aircrack-ng suite, start Windows Explorer and double click on Aircrack-ng GUI .exe inside “bin” subdirectory. The GUI requires .NET version 4.6.1 to run.
Alternatively, open a command prompt (Start menu → Execute → cmd.exe) and change to the “C:\aircrack-ng-1.6-win\bin” directory and execute the individual commands.
Important notes:
Except where otherwise noted, content on this wiki is licensed under the following license: CC Attribution-Noncommercial-Share Alike 4.0 International
How To Install aircrack-ng on Kali Linux
In this guide, we’ll discuss How To Install aircrack-ng on Kali Linux. Also, we will demonstrate how to uninstall and update aircrack-ng .
One-liner install command
For those in a hurry, here’s a one-line installation command:
sudo apt-get update && sudo apt -y install aircrack-ng
But if you are interested in the detailed steps with descriptions, the following information is for you.
What is aircrack-ng and what are the ways to install it?
Short description: wireless WEP/WPA cracking utilities
Before beginning this tutorial, you will need access to a server or computer running Kali Linux. This guide was written specifically with a server running Kali Linux in mind, although it should also work on older, supported versions of the operating system.
Also, make sure you are running a regular, non-root user with sudo privileges configured on your server. When you have an account available, log in as your non-root user to begin.
There are several ways to install aircrack-ng on Kali Linux. You can use (links are clickable):
In the following sections, we will describe each method in detail. You can choose one of them or refer to the recommended one.
Install aircrack-ng using apt-get
First, update apt database with apt-get using the following command.
After updating apt-get database, You can install aircrack-ng using apt by running the following command:
sudo apt -y install aircrack-ng
Install aircrack-ng using apt
Because aircrack-ng is available in Kali Linux’s default repositories, it is possible to install it from these repositories using the apt packaging system.
To begin, update apt database with apt using the following command.
After updating apt database, You 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 Kali Linux. Update apt database with aptitude using the following command.
After updating aptitude database, You can install aircrack-ng by running the following command:
sudo aptitude -y install aircrack-ng
How to upgrade (update) a single package aircrack-ng using apt-get?
First, you will need to update packages index. Run update command as usual:
Next, to upgrade only the aircrack-ng, e.g. single package, you should use the following format with the apt-get command/apt command:
sudo apt-get --only-upgrade install aircrack-ng
Note that this command will not install any new packages! If you wish to install the package if it doesn’t exist you may leave out —only-upgrade part.
It’s Good to Know:
sudo apt-get install aircrack-ng
This will upgrade the package even if is already installed.
How To Uninstall aircrack-ng from Kali Linux
To uninstall only the aircrack-ng package you can execute the following command:
sudo apt-get remove aircrack-ng
Uninstall aircrack-ng and all its dependencies
To uninstall aircrack-ng and its dependencies that are no longer needed by Kali Linux, you can use the command below:
sudo apt-get -y autoremove aircrack-ng
Remove aircrack-ng with all configurations and data
To remove aircrack-ng configuration and data from your system you can run the following purge command:
sudo apt-get -y purge aircrack-ng
Remove aircrack-ng completely (configurations, data and all of its dependencies)
And lastly, you can run the next command to remove absolutely everything related to aircrack-ng package, e.g.: configurations, data and all of its dependencies. Just use this command:
sudo apt-get -y autoremove --purge aircrack-ng
Extra info and code examples
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.
- Maintainer: Debian Security Tools
- Sources url:http://www.aircrack-ng.org/
- Section/Category:net
Conclusion
You now have a full guide on how to install aircrack-ng using apt, apt-get and aptitude tools. Also, we showed how to update as a single package and different ways to uninstall the aircrack-ng from Kali Linux.