install_aircrack
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision | ||
install_aircrack [2016/02/15 02:50] – [Compiling on FreeBSD] Updated formatting and instructions for FreeBSD mister_x | install_aircrack [2018/04/04 02:32] – Updated for rc5 mister_x | ||
---|---|---|---|
Line 1: | Line 1: | ||
====== Installing Aircrack-ng from Source ====== | ====== Installing Aircrack-ng from Source ====== | ||
===== Requirements ===== | ===== Requirements ===== | ||
- | ==== Linux ==== | ||
- | * Kernel headers and gcc as well as make have to be installed on your system. On Debian-based distros | + | * Autoconf |
+ | * Automake | ||
+ | * Libtool | ||
+ | * shtool | ||
+ | * OpenSSL development package or libgcrypt development package. | ||
+ | * pkg-config | ||
- | sudo apt-get install build-essential | + | ==== Linux ==== |
- | * OpenSSL | + | * Airmon-ng requires ethtool and rfkill |
- | * pkg-config | + | * 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) |
- | The following is required only if you want [[Airolib-ng]]: | + | * make and Standard C++ Library development package (Debian: libstdc++-dev) |
- | * [[http:// | + | ==== Windows |
- | ==== Windows ==== | + | * w32api is required |
- | + | * Airpcap: developer directory from the Airpcap CD. | |
- | It requires additional libraries to be installed: | + | |
- | * [[http://www.openssl.org|OpenSSL]] (development): | + | * make and Standard C++ Library |
- | \\ | + | |
- | The following is required only if you want [[Airolib-ng]]: | + | |
- | + | ||
- | * SQLite3 (development) > 3.3.17 | + | |
==== OS X ==== | ==== OS X ==== | ||
Line 30: | Line 30: | ||
* sqlite3 | * sqlite3 | ||
- | ==== FreeBSD ==== | + | ==== FreeBSD, OpenBSD, NetBSD, Solaris |
Install the following via pkg: | Install the following via pkg: | ||
Line 38: | Line 38: | ||
* pcre | * pcre | ||
* sqlite3 | * sqlite3 | ||
+ | * gcc5 optional (50-70% speed gains compared to gcc 4) | ||
+ | |||
+ | ===== 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 ' | ||
+ | * If you want to use Airpcap, the ' | ||
+ | * For best performance on FreeBSD (50-70% more), install gcc5 via: pkg install gcc5 Then compile with: gmake CC=gcc5 CXX=g++5 | ||
+ | * rfkill | ||
+ | |||
===== Compiling and installing ===== | ===== Compiling and installing ===== | ||
- | **Note:** For OS X, use ' | + | Notes: |
+ | | ||
+ | * In order to compile with clang instead of gcc, add ' | ||
==== Current version ==== | ==== Current version ==== | ||
- | It requires some additional libraries: | + | wget http:// |
- | * OpenSSL (libssl-dev on Debian-based system) | + | tar -zxvf aircrack-ng-1.2-rc5.tar.gz |
- | * SQLite > 3.3.17 (latest version is recommended) if you want to use [[Airolib-ng]] | + | cd aircrack-ng-1.2-rc5 |
- | + | | |
- | wget http:// | + | |
- | tar -zxvf aircrack-ng-1.2-rc3.tar.gz | + | |
- | cd aircrack-ng-1.2-rc3 | + | |
make | make | ||
make install | make install | ||
- | |||
- | ==== Compiling with Airolib-ng support ==== | ||
- | |||
- | Simply append ' | ||
- | |||
- | make sqlite=true | ||
- | make sqlite=true install | ||
- | |||
- | ==== Compiling with PCRE support ==== | ||
- | |||
- | Airodump-ng can match SSID with a regular expression when compiled with PCRE: | ||
- | |||
- | make pcre=true | ||
- | make pcre=true install | ||
- | |||
- | === OS X === | ||
- | Change CFLAGS in src/ | ||
- | |||
- | CFLAGS += -Iinclude | ||
- | |||
- | to | ||
- | |||
- | CFLAGS += -Iinclude -arch i386 -I/ | ||
- | |||
==== Compiling with AirPcap support (cygwin only) === | ==== Compiling with AirPcap support (cygwin only) === | ||
- Copy ' | - Copy ' | ||
- | - Append ' | + | - Append '--with-airpcap=../ |
- | make airpcap=true | + | ==== Compiling on *BSD/OSX ==== |
- | make install | + | |
- | ==== Compiling with Airolib-ng and AirPcap support (cygwin only) ==== | + | Commands are exactly the same as Linux but instead of **make**, use **gmake** (or **CC=gcc5** or any other installed gcc version). |
- | Simply append both parameter to make and make install: | + | ==== Latest Git (development) Sources ==== |
- | make sqlite=true airpcap=true | + | **Note:** Compilation parameters can also be used with the sources from our subversion repository. |
- | make sqlite=true install | + | |
- | ==== Compiling on FreeBSD ==== | + | git clone https://github.com/aircrack-ng/ |
- | + | ||
- | Commands are exactly the same as Linux but instead of **make**, use **gmake** (or **CC=gcc5** or any other installed gcc version). | + | |
- | + | ||
- | ==== Latest SVN (development) Sources ==== | + | |
- | + | ||
- | svn co http://svn.aircrack-ng.org/trunk/ aircrack-ng | + | |
cd aircrack-ng | cd aircrack-ng | ||
+ | autoreconf -i | ||
+ | ./configure | ||
make | make | ||
make install | make install | ||
- | ==== Latest SVN with Airolib-ng support and experimental (unstable) programs (requires SQLite installed) | + | ==== Legacy |
- | (like [[tkiptun-ng|Tkiptun-ng]], | + | |
- | make sqlite=true experimental=true | + | wget http:// |
- | make sqlite=true experimental=true | + | tar -zxvf aircrack-ng-0.9.3.tar.gz |
+ | cd aircrack-ng-0.9.3 | ||
+ | make | ||
+ | | ||
- | ==== Latest SVN with Airolib-ng and and experimental (unstable) programs plus external scripts | + | ==== ./configure flags ==== |
- | (like [[airoscript-ng|Airoscript-ng]], | + | |
- | make sqlite=true experimental=true ext_scripts=true | + | When configuring, |
- | make sqlite=true experimental=true ext_scripts=true install | + | |
- | **Note:** Experimental scripts: | + | |
- | | + | |
- | ==== Nightly Build ==== | + | * **with-experimental**: |
- | http:// | + | * **with-ext-scripts**: needed to build airoscript-ng, |
- | ==== Legacy ==== | + | * **with-gcrypt**: |
+ | |||
+ | * **with-duma**: | ||
+ | |||
+ | * **with-xcode**: | ||
+ | |||
+ | * **disable-libnl**: | ||
- | wget http:// | ||
- | tar -zxvf aircrack-ng-0.9.3.tar.gz | ||
- | cd aircrack-ng-0.9.3 | ||
- | make | ||
- | make install | ||
===== Troubleshooting Tips ===== | ===== Troubleshooting Tips ===== | ||
Line 250: | Line 230: | ||
====== Installing on Mac OSX ====== | ====== Installing on Mac OSX ====== | ||
+ | |||
+ | **Important note**: airodump-ng and aireplay-ng will not work under OSX natively. Which means, injection and capture will have to use other means. If you have an intel Mac (any recent-ish Mac is), check out the VMware Fusion option which is mentioned lower on this page. | ||
The simplest and easiest way to install on Mac OS X is via [[http:// | The simplest and easiest way to install on Mac OS X is via [[http:// | ||
Line 255: | Line 237: | ||
Alternatively, | Alternatively, | ||
- | Make sure you have Xcode installed on your Mac, which can be found on the installer CD/DVD which came with your Mac. | + | - Make sure you have Xcode installed on your Mac, which can be found on the installer CD/DVD which came with your Mac (or downloaded). |
- | After getting the source you can do a simple "make && sudo make install" | + | |
- | When you use the stable, you need to rename the Makefile.osx to Makefile and when you use the dev version it will autodetect you are using Darwin and compile fine. | + | |
- | + | ||
- | Mind you, airodump-ng and aireplay-ng are linux only and will not work under OSX native, so for reinjecting and sniffing you will have to use other means. | + | |
- | + | ||
- | If you have an intel Mac check out the VMware Fusion option which is mentioned lower on this page. | + | |
Optional is openssl-dev and sqlite3 which can be installed through fink | Optional is openssl-dev and sqlite3 which can be installed through fink |
install_aircrack.txt · Last modified: 2023/03/03 16:47 by mister_x