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 [2015/04/10 15:15] – Aircrack-ng 1.2 RC2 mister_x | install_aircrack [2018/07/11 22:02] – Updated requirements and optional stuff mister_x | ||
---|---|---|---|
Line 1: | Line 1: | ||
====== Installing Aircrack-ng from Source ====== | ====== Installing Aircrack-ng from Source ====== | ||
- | ===== Requirements ===== | ||
- | ==== Linux ==== | ||
- | * Kernel headers and gcc as well as make have to be installed on your system. On Debian-based distros (Debian, Ubuntu, Xubuntu, ...), issue the following command in a console to install them: | + | Legacy information can be found [[install_aircrack_old|here]]. |
- | sudo apt-get install build-essential | + | ===== Requirements ===== |
- | * OpenSSL | + | |
+ | * Automake | ||
+ | * Libtool | ||
+ | * shtool | ||
+ | | ||
* pkg-config | * pkg-config | ||
- | \\ | ||
- | The following is required only if you want [[Airolib-ng]]: | ||
- | * [[http:// | + | ==== Linux ==== |
- | ==== Windows ==== | + | * Airmon-ng requires ethtool and rfkill |
+ | * 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) | ||
+ | * make and Standard C++ Library development package (Debian: libstdc++-dev) | ||
- | It requires additional libraries to be installed: | + | ==== Windows |
- | * [[http:// | + | |
- | \\ | + | |
- | The following is required only if you want [[Airolib-ng]]: | + | |
- | * SQLite3 (development) > 3.3.17 (but latest version | + | * w32api |
+ | * if using clang, libiconv and libiconv-devel | ||
+ | * make and Standard C++ Library development package | ||
==== OS X ==== | ==== OS X ==== | ||
- | Install the following via macports: | + | Install the following via Homebrew (brew): |
- | * gmake 3.81 | + | * autoconf |
- | * sqlite3 | + | * automake |
+ | * libtool | ||
+ | * openssl | ||
+ | * shtool | ||
+ | * pkg-config | ||
- | ===== Compiling and installing ===== | + | ==== FreeBSD, OpenBSD, NetBSD, Solaris |
- | **Note:** For OS X, use ' | + | Install the following via pkg: |
- | ==== Current version ==== | + | * gmake |
+ | * pkgconf | ||
+ | * pcre | ||
+ | * sqlite3 | ||
+ | * gcc7 optional (50-70% speed gains with gcc 5 compared to gcc 4) | ||
- | It requires some additional libraries: | + | ===== Optional stuff ===== |
- | * OpenSSL (libssl-dev on Debian-based system) | + | |
- | * SQLite > 3.3.17 (latest version is recommended) if you want to use [[Airolib-ng]] | + | |
- | wget http:// | + | * 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) |
- | cd aircrack-ng-1.2-rc2 | + | * If you want to use Airpcap, the ' |
- | make | + | * For best performance on FreeBSD (50-70% more), install gcc5 via: pkg install gcc5 Then compile with: gmake CC=gcc5 CXX=g++5 |
- | make install | + | * rfkill |
+ | * CMocka | ||
- | ==== Compiling with Airolib-ng support ==== | ||
- | Simply append ' | + | ===== Compiling |
- | make sqlite=true | + | Notes: |
- | make sqlite=true install | + | |
+ | * In order to compile with clang instead of gcc, add ' | ||
- | ==== Compiling with PCRE support | + | ==== Current version |
- | + | ||
- | 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/ | + | |
+ | wget http:// | ||
+ | tar -zxvf aircrack-ng-1.2.tar.gz | ||
+ | cd aircrack-ng-1.2 | ||
+ | | ||
+ | | ||
+ | make | ||
+ | make install | ||
==== Compiling with AirPcap support (cygwin only) === | ==== Compiling with AirPcap support (cygwin only) === | ||
- Copy ' | - Copy ' | ||
- | - Append ' | + | - Append '- -with-airpcap=../ |
- | make airpcap=true | + | ==== Compiling on *BSD ==== |
- | make install | + | |
- | ==== Compiling with Airolib-ng and AirPcap support (cygwin only) ==== | + | Commands are exactly the same as Linux but instead of **make**, use **gmake** (with **CC=gcc5 CXX=g++5** or any other installed gcc version). |
- | Simply append both parameter to make and make install: | + | ==== Compiling on OS X ==== |
- | make sqlite=true airpcap=true | + | Commands are exactly the same as Linux |
- | make sqlite=true install | + | ==== Latest Git (development) Sources ==== |
- | ==== Compiling | + | **Note:** Compilation parameters can also be used with the sources from our git repository. |
- | This is still under heavy development so it is not yet been added to the backtrack repositories however it deserves mentioning. Aircrack-ng can be built with a switch to add [[http://en.wikipedia.org/wiki/Graphics_processing_unit|GPU]] acceleration. In order to do this we need to grab Aircrack-ng from SVN (subversion). You must have the [[https:// | + | git clone https://github.com/aircrack-ng/aircrack-ng |
+ | cd aircrack-ng | ||
+ | autoreconf -i | ||
+ | | ||
+ | make | ||
+ | make install | ||
- | svn co http:// | ||
- | Next we will build it like normal but it needs a few extra arguments: | + | ==== ./configure flags ==== |
- | cd aircrack-ng-cuda | + | When configuring, |
- | | + | |
- | make CUDA=true sqlite=true experimental=true install | + | |
- | Also see: [[http://www.offensive-security.com/documentation/backtrack-4-cuda-guide.pdf|BackTrack 4 CUDA Guide]] | + | * **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, |
- | ==== Latest SVN (development) Sources ==== | + | * **with-experimental**: |
- | | + | |
- | cd aircrack-ng | + | |
- | make | + | |
- | make install | + | |
- | ==== Latest SVN with Airolib-ng support and experimental | + | * **with-gcrypt**: Use libgcrypt crypto library instead of the default OpenSSL. And also use internal fast sha1 implementation |
- | (like [[tkiptun-ng|Tkiptun-ng]], | + | |
- | | + | |
- | make sqlite=true experimental=true install | + | |
- | ==== Latest SVN with Airolib-ng and and experimental (unstable) programs plus external scripts ==== | + | * **with-xcode**: Set this flag to true to compile on OS X with Xcode 7+. |
- | (like [[airoscript-ng|Airoscript-ng]], | + | |
- | | + | |
- | make sqlite=true experimental=true ext_scripts=true install | + | |
- | **Note:** Experimental scripts: | + | |
- | * Each scripts has its own dependencies, | + | |
- | ==== Nightly Build ==== | + | * **enable-shared**: |
- | http:// | + | * **disable-shared**: When combined with enable-static, it will statically compile Aircrack-ng. |
- | + | ||
- | ==== Legacy ==== | + | |
- | + | ||
- | wget http:// | + | |
- | tar -zxvf aircrack-ng-0.9.3.tar.gz | + | |
- | cd aircrack-ng-0.9.3 | + | |
- | | + | |
- | make install | + | |
+ | * **with-avx512**: | ||
===== Troubleshooting Tips ===== | ===== Troubleshooting Tips ===== | ||
==== " | ==== " | ||
Line 160: | Line 148: | ||
It should show something like: | It should show something like: | ||
- | /usr/kerberos/sbin:/usr/kerberos/bin:/usr/ | + | /usr/local/sbin:/usr/local/ |
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: | 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: | ||
Line 175: | Line 163: | ||
* Specify the full path for each command. | * Specify the full path for each command. | ||
- | * Specify the location prefix when installing. | + | ====== Installing pre-compiled binaries ====== |
- | ==== " | + | ===== Linux/ |
- | On Debian-based distros, if you get something similar to:\\ | + | |
- | /bin/sh: line 0: cd: / | + | Open your package manager and install |
- | Makefile.inc: | + | |
- | Stop. | + | |
- | + | ||
- | Solution: | + | |
- | + | ||
- | The build directory gets installed together with the kernel headers, so either you lack the correct headers or your KERNELPATH is wrong. | + | |
- | + | ||
- | Do a "sudo apt-get | + | |
- | + | ||
- | If uname returns exactly | + | |
- | + | ||
- | In the above examples, needless to say, change " | + | |
- | + | ||
- | ==== " | + | |
- | + | ||
- | If you get something similar to:\\ | + | |
- | + | ||
- | | + | |
- | | + | |
- | | + | |
- | | + | |
- | + | ||
- | Solution: | + | |
- | You are missing the OpenSSL development package. | + | |
- | + | ||
- | ==== " | + | |
- | + | ||
- | If you get something similar to: | + | |
- | + | ||
- | | + | |
- | + | ||
- | Solution: | + | |
- | You are missing the zlib development package. Depending on the distribution, | + | |
- | + | ||
- | ==== " | + | |
- | + | ||
- | You get something similar to: | + | |
- | + | ||
- | | + | |
- | / | + | |
- | + | ||
- | See [[http:// | + | |
- | + | ||
- | ====== Installing pre-compiled binaries ====== | + | |
- | ===== Linux ===== | + | |
- | Open your package manager and install | + | On OSX, install |
===== Windows ===== | ===== Windows ===== | ||
The Windows version of the Aircrack-ng suite does not have an install program. You must manually install (unzipping archive) the software. | 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 | + | Here are the steps to follow for Windows: |
* Download the latest version of the Aircrack-ng suite for Windows to your PC. The link for the zip file can be found on the [[http:// | * Download the latest version of the Aircrack-ng suite for Windows to your PC. The link for the zip file can be found on the [[http:// | ||
- | * Unzip the contents of the Aircrack-ng zip file into " | + | * Unzip the contents of the Aircrack-ng zip file into " |
Prior to using the software, make sure to install the drivers for your particular wireless card. See this [[install_drivers# | Prior to using the software, make sure to install the drivers for your particular wireless card. See this [[install_drivers# | ||
- | To now use the Aircrack-ng suite, start Windows Explorer and double click on **Aircrack-ng GUI.exe** inside " | + | To now use the Aircrack-ng suite, start Windows Explorer and double click on **Aircrack-ng GUI.exe** inside " |
- | Alternatively, | + | Alternatively, |
\\ | \\ | ||
\\ | \\ | ||
\\ | \\ | ||
- | **Important notes**: | + | **Important notes**: |
+ | * [[airmon-ng|Airmon-ng]] is a Linux/ | ||
* Remember that Windows only supports a limited subset of the commands. | * Remember that Windows only supports a limited subset of the commands. | ||
* Some troubleshooting tips specific to XP and Vista can be found on this [[airodump-ng|page]]. | * Some troubleshooting tips specific to XP and Vista can be found on this [[airodump-ng|page]]. | ||
- | |||
- | ====== Installing on Mac OSX ====== | ||
- | |||
- | The simplest and easiest way to install on Mac OS X is via [[http:// | ||
- | |||
- | Alternatively, | ||
- | |||
- | Make sure you have Xcode installed on your Mac, which can be found on the installer CD/DVD which came with your Mac. | ||
- | 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 | ||
- | |||
- | ====== Installing on OpenBSD ====== | ||
- | |||
- | See this [[http:// | ||
- | |||
- | ====== Installing VMware Image - UNSUPPORTED ====== | ||
- | |||
- | **Important Note**: Virtualization solutions (VMware/ | ||
- | |||
- | ===== Requirements ===== | ||
- | |||
- | * VMWare Workstation 6.02, VMWare Player 2.02 (freeware) or VMWare Fusion beta for intel based Mac's | ||
- | * Wireless USB with one of the following chipsets: | ||
- | * rtl8187 | ||
- | * rt2570 | ||
- | * rt73 | ||
- | * Approximately 2Gb of hard disk space | ||
- | |||
- | **Important note:** VMWare Workstation 6.5 (and maybe Player 2.5 too) is known not to work correctly with rtl8187 driver. | ||
- | ===== Starting ===== | ||
- | |||
- | - Install VMWare Workstation or Player | ||
- | - Download this VMware image [[http:// | ||
- | - Start VMware and select " | ||
- | - Attach your USB adapter. | ||
- | - If the USB adapter is recognized automatically you'll find a small USB icon in the lower right corner of your VMWare window. | ||
- | |||
- | **Notes:** | ||
- | * Uncompress the file on a filesystem that supports large files; NTFS, ext3, ... (all FAT filesystems, | ||
- | * Use [[http:// | ||
- | * Here are a few reasons why the download doesn' | ||
- | * That sounds logical but make sure the URL is correct. | ||
- | * Check your DNS, make sure it can resolve " | ||
- | * You don't need any driver for wireless adapters (and other USB adapters) on the OS running VMware. | ||
- | * The login credentials for the image are user id " | ||
- | * The [[faq# | ||
- | |||
- | ===== Manually attaching USB device ===== | ||
- | |||
- | On VMware Player, the device should be shown in the title bar, click on it to activate it. | ||
- | On VMware Workstation, | ||
- | |||
- | {{ http:// | ||
- | |||
- | It will automatically unplug the device from Windows and attach it to the virtual machine. | ||
- | |||
- | ===== Loading Wireless Device Drivers ===== | ||
- | |||
- | The drivers can be loaded via the menu inside the VM: | ||
- | |||
- | {{ http:// |
install_aircrack.txt · Last modified: 2023/03/03 16:47 by mister_x