aircrack-ng / aircrack-ng-archive

Pre-migration repository. New repository ➙
https://github.com/aircrack-ng/aircrack-ng
GNU General Public License v2.0
859 stars 307 forks source link

Aircrack-ng

Linux/Mac Build Status Windows Build Status

Aircrack-ng is a complete suite of tools to assess WiFi network security.

It focuses on different areas of WiFi security:

All tools are command line which allows for heavy scripting. A lot of GUIs have taken advantage of this feature. It works primarily Linux but also Windows, OS X, FreeBSD, OpenBSD, NetBSD, as well as Solaris and even eComStation 2.

Building

Requirements

Optional stuff

Resolving the basic requirements

Below are instructions for installing the basic requirements to build aircrack-ng for a number of operating systems.

Cygwin (Windows)

Cygwin requires the full path to the setup.exe utility, in order to automate the installation of the necessary packages. In addition, it requires the location of your installation, a path to the cached packages download location, and a mirror URL.

An example of automatically installing all the required dependencies is as follows:

`c:\cygwin\setup-x86.exe -qnNdO -R C:/cygwin -s http://cygwin.mirror.constant.com -l C:/cygwin/var/cache/setup -P autoconf -P automake -P bison -P gcc-core -P gcc-g++ -P mingw-runtime -P mingw-binutils -P mingw-gcc-core -P mingw-gcc-g++ -P mingw-pthreads -P mingw-w32api -P libtool -P make -P python -P gettext-devel -P gettext -P intltool -P libiconv -P pkg-config -P git -P wget -P curl -P libpcre-devel -P openssl-devel -P libsqlite3-devel`

Debian/Ubuntu

`sudo apt install build-essential autoconf automake libtool pkg-config libnl-3-dev libssl-dev libpcre3-dev`

FreeBSD using PKG

`pkg install autoconf automake libtool pkgconf sqlite3 git python3`

MSYS2 (Windows)

`pacman -Sy autoconf automake1.15 libtool msys2-w32api-headers msys2-w32api-runtime pkg-config git python openssl-devel openssl libopenssl msys2-runtime-devel gcc binutils make pcre-devel libsqlite-devel`

Compiling

To build aircrack-ng, the Autotools build system is utilized. Autotools replaces the older method of compilation.

NOTE: If utilizing a developer version, eg: one checked out from source control, you will need to run a pre-configure script. The script to use is one of the following: autoreconf -i or env NOCONFIGURE=1 ./autogen.sh.

First, ./configure the project for building with the appropriate options specified for your environment:

`./configure <options>`

TIP: If the above fails, please see above about developer source control versions.

Next, compile the project (respecting if make or gmake is needed):

Finally, the additional targets listed below may be of use in your environment:

./configure flags

When configuring, the following flags can be used and combined to adjust the suite to your choosing:

Examples:

Packaging

Automatic detection of CPU optimization is done at run time. This behavior is desirable when packaging Aircrack-ng (for a Linux or other distribution.)

Also, in some cases it may be desired to provide your own flags completely and not having the suite auto-detect a number of optimizations. To do this, add the additional flag --without-opt to the ./configure line:

./configure --without-opt

Run-time location of SIMD binaries

Typically, the full path that is compiled in to the aircrack-ng binary is /usr/libexec/aircrack-ng. However, during development and/or packaging, it may be of use to specify a path that is dynamic in nature.

The environment variable AIRCRACK_LIBEXEC_PATH may be used to specify the location of the SIMD-optimized binaries. An example of such use is as follows:

env AIRCRACK_LIBEXEC_PATH=/home/user/dev/aircrack-ng/src ./src/aircrack-ng

Using precompiled binaries

Linux/BSD:

Windows:

Documentation

Documentation, tutorials, ... can be found on https://www.aircrack-ng.org

See also manpages and the forum.

For further information check the README file