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 [2018/03/13 22:45] – [Latest SVN (development) Sources] Updated to Git mister_x | install_aircrack [2018/09/30 02:37] – 1.4 mister_x | ||
---|---|---|---|
Line 1: | Line 1: | ||
====== Installing Aircrack-ng from Source ====== | ====== Installing Aircrack-ng from Source ====== | ||
+ | |||
+ | Legacy information can be found [[install_aircrack_old|here]]. | ||
+ | |||
===== Requirements ===== | ===== Requirements ===== | ||
- | * OpenSSL development package or libgcrypt development package | + | |
+ | * Automake | ||
+ | * Libtool | ||
+ | * shtool | ||
+ | | ||
* pkg-config | * pkg-config | ||
- | * make - gmake on *BSD, Solaris and OSX. | ||
- | * gcc or clang | ||
- | * PCRE development package if SSID filtering with regular expressions is needed | ||
- | * Sqlite3 development package (>=3.317 but 3.6X+ is recommended) | ||
==== Linux ==== | ==== Linux ==== | ||
* Airmon-ng requires ethtool and rfkill | * Airmon-ng requires ethtool and rfkill | ||
- | * LibNetlink 1 (libnl-dev) or 3 (libnl-3-dev and libnl-genl-3-dev) development packages | + | * 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) | * 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) | ||
==== Windows (Cygwin) ==== | ==== Windows (Cygwin) ==== | ||
* w32api is required | * w32api is required | ||
- | * Airpcap: developer directory from the Airpcap CD. | + | * 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 | ||
- | ==== FreeBSD ==== | + | ==== FreeBSD, OpenBSD, NetBSD, Solaris |
Install the following via pkg: | Install the following via pkg: | ||
Line 35: | Line 44: | ||
* pcre | * pcre | ||
* sqlite3 | * sqlite3 | ||
- | * gcc5 optional (50-70% speed gains compared to gcc 4) | + | * gcc7 optional (50-70% speed gains with gcc 5 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 | ||
+ | * CMocka | ||
+ | * hwloc: strongly recommended, | ||
===== Compiling and installing ===== | ===== Compiling and installing ===== | ||
Notes: | Notes: | ||
- | * Most parameters can be combined. Refer to INSTALLING file for more details (and more parameters). | ||
* On OS X, *BSD and Solaris, use ' | * On OS X, *BSD and Solaris, use ' | ||
- | * In order to compile with clang instead of gcc, add ' | + | * In order to compile with clang instead of gcc, add ' |
==== Current version ==== | ==== Current version ==== | ||
- | | + | |
- | tar -zxvf aircrack-ng-1.2-rc4.tar.gz | + | tar -zxvf aircrack-ng-1.4.tar.gz |
- | cd aircrack-ng-1.2-rc4 | + | cd aircrack-ng-1.4 |
+ | | ||
+ | | ||
make | make | ||
make install | make install | ||
- | ==== Compiling with Airolib-ng | + | ==== Compiling with AirPcap |
- | Simply append | + | - Copy 'developer' |
+ | - Append '- -with-airpcap=../ | ||
- | make sqlite=true | + | ==== Compiling on *BSD ==== |
- | make sqlite=true install | + | |
- | ==== Compiling | + | 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). |
- | Airodump-ng can match SSID with a regular expression when compiled with PCRE: | + | ==== Compiling on OS X ==== |
- | make pcre=true | + | Commands are exactly the same as Linux |
- | make pcre=true install | + | ==== Latest Git (development) Sources ==== |
- | === OS X === | + | **Note:** Compilation parameters can also be used with the sources from our git repository. |
- | It can be compiled either | + | git clone https:// |
+ | cd aircrack-ng | ||
+ | autoreconf -i | ||
+ | ./configure --with-experimental | ||
+ | make | ||
+ | make install | ||
- | Macports: | ||
- | gmake macport=true sqlite=true experimental=true pcre=true | + | ==== ./configure flags ==== |
+ | When configuring, | ||
- | XCode: | + | * **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, |
- | | + | |
+ | * **with-ext-scripts**: | ||
- | ==== Compiling | + | * **with-gcrypt**: Use libgcrypt crypto library instead of the default OpenSSL. And also use internal fast sha1 implementation |
- | - Copy ' | + | |
- | - Append ' | + | |
- | | + | |
- | make airpcap=true install | + | |
- | ==== Compiling on FreeBSD ==== | + | * **disable-libnl**: |
- | Commands are exactly the same as Linux but instead of **make**, use **gmake** (or **CC=gcc5** or any other installed gcc version). | + | |
- | ==== Latest Git (development) Sources ==== | + | * **enable-shared**: |
- | **Note:** Compilation parameters can also be used with the sources from our subversion repository. | + | |
- | | + | |
- | cd aircrack-ng | + | |
- | autoreconf -i | + | |
- | | + | |
- | make | + | |
- | make install | + | |
- | ==== Nightly Build ==== | + | * **with-static-simd=**: Compile a single optimization in aircrack-ng |
- | + | ||
- | http://nightly.aircrack-ng.org/ contains a nightly tarball from each day. This is handy if you don't have access to SVN (subversion). Just download | + | |
- | + | ||
- | ==== Legacy ==== | + | |
- | + | ||
- | wget http:// | + | |
- | | + | |
- | cd aircrack-ng-0.9.3 | + | |
- | | + | |
- | make install | + | |
===== Troubleshooting Tips ===== | ===== Troubleshooting Tips ===== | ||
Line 142: | Line 152: | ||
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 148: | Line 158: | ||
* Add the directories to your PATH. See the one or more of the following web sites for details of how to do this: | * Add the directories to your PATH. See the one or more of the following web sites for details of how to do this: | ||
- | http:// | + | https:// |
- | http:// | + | |
| | ||
- | | ||
* Change to the particular directory with " | * Change to the particular directory with " | ||
Line 157: | Line 165: | ||
* 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: | + | On OSX, install it is via [[https://www.macports.org/|Macports]]. Simply do "sudo port install |
- | + | ||
- | 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 that string and the current headers are installed, the remove the headers and install them again. Also check /usr/src for installed header files, maybe it got mixed up for whatever reason. | + | |
- | + | ||
- | 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://forum.aircrack-ng.org/index.php? | + | |
- | + | ||
- | ====== Installing pre-compiled binaries ====== | + | |
- | ===== Linux ===== | + | |
- | + | ||
- | Open your package manager and 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 [[https:// |
- | * 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 ====== | ||
- | |||
- | **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:// | ||
- | |||
- | Alternatively, | ||
- | |||
- | - 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. | ||
- | |||
- | 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: 2024/06/20 10:32 by mister_x