install_aircrack
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
install_aircrack [2018/03/13 22:45] – [Latest SVN (development) Sources] Updated to Git mister_x | install_aircrack [2024/06/20 10:32] (current) – [Linux/BSD/OSX] Fix typo in for installing with macports 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 | ||
- | | + | * If USB bus is present, lsusb |
+ | * If PCI/PCIe bus is present, lspci | ||
+ | | ||
* 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 ==== | + | ==== MacOS ==== |
- | Install the following via macports: | + | Install the following via Homebrew (brew): |
- | * gmake 3.81 | + | * autoconf |
+ | * automake | ||
+ | * libtool | ||
+ | * openssl | ||
+ | * shtool | ||
+ | * pkg-config | ||
+ | * hwloc | ||
+ | * pcre | ||
* sqlite3 | * sqlite3 | ||
+ | * libpcap | ||
+ | * cmocka (optional) | ||
- | ==== FreeBSD ==== | + | ==== FreeBSD, OpenBSD, NetBSD, Solaris |
Install the following via pkg: | Install the following via pkg: | ||
Line 35: | Line 51: | ||
* pcre | * pcre | ||
* sqlite3 | * sqlite3 | ||
- | * gcc5 optional | + | * gcc9 (or better) |
+ | |||
+ | ===== 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 | ||
+ | * 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.7.tar.gz |
- | cd aircrack-ng-1.2-rc4 | + | cd aircrack-ng-1.7 |
+ | | ||
+ | | ||
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 MacOS ==== |
- | 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 | ||
+ | ldconfig | ||
- | Macports: | + | ==== ./configure flags ==== |
- | gmake macport=true sqlite=true experimental=true pcre=true | + | When configuring, |
+ | * **with-airpcap=DIR**: | ||
- | XCode: | + | * **with-experimental**: needed to compile tkiptun-ng, easside-ng, buddy-ng, buddy-ng-crawler, |
- | | + | |
+ | * **with-gcrypt**: | ||
- | ==== Compiling | + | * **with-duma**: Compile with DUMA support. DUMA is a library to detect buffer overruns and under-runs. Dependencies |
- | - Copy ' | + | |
- | - Append ' | + | |
- | | + | |
- | make airpcap=true install | + | |
- | ==== Compiling | + | * **without-opt**: |
- | 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 ==== | + | * **disable-shared**: |
- | **Note:** Compilation parameters can also be used with the sources from our subversion repository. | + | |
- | | + | |
- | cd aircrack-ng | + | |
- | autoreconf | + | |
- | | + | |
- | make | + | |
- | make install | + | |
- | ==== Nightly Build ==== | + | * **enable-maintainer-mode**: |
- | http:// | + | ===== Troubleshooting Tips ===== |
+ | ==== error while loading shared libraries: libaircrack-ng.so.0 ==== | ||
- | ==== Legacy ==== | + | Run **ldconfig** as root or with " |
- | wget http:// | ||
- | tar -zxvf aircrack-ng-0.9.3.tar.gz | ||
- | cd aircrack-ng-0.9.3 | ||
- | make | ||
- | make install | ||
- | |||
- | ===== Troubleshooting Tips ===== | ||
==== " | ==== " | ||
Line 142: | Line 166: | ||
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 172: | ||
* 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 179: | ||
* 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: / | + | With the exception of Linux penetration testing distributions, |
- | Makefile.inc: | + | |
- | Stop. | + | |
- | Solution: | + | On MacOS, install it is via [[https://www.macports.org/ |
- | + | ||
- | 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 computer. 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.1520977502.txt.gz · Last modified: 2018/03/13 22:45 by mister_x