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 [2010/04/28 21:25] – Added important note about VMware mister_x | install_aircrack [2020/01/26 00:49] – Updated for 1.6 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 |
- | The following is required only if you want [[airolib-ng]]: | + | * Libtool |
+ | * shtool | ||
+ | | ||
+ | * pkg-config | ||
- | * SQLite (development) > 3.3.17 (but latest version is recommended) | + | ==== Linux ==== |
- | ==== Windows ==== | + | * Airmon-ng requires ethtool and rfkill |
+ | * If USB bus is present, lsusb | ||
+ | * If PCI/PCIe bus is present, lspci | ||
+ | * 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 |
- | * OpenSSL | + | |
- | \\ | + | |
- | The following is required only if you want [[airolib-ng]]: | + | |
- | * SQLite (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]] | + | |
+ | * 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, | ||
- | wget http:// | ||
- | tar -zxvf aircrack-ng-1.1.tar.gz | ||
- | cd aircrack-ng-1.1 | ||
- | make | ||
- | make install | ||
- | ==== Compiling | + | ===== Compiling |
- | Simply append | + | Notes: |
+ | * On OS X, *BSD and Solaris, use 'gmake' instead of ' | ||
+ | * In order to compile with clang instead of gcc, add 'CC=clang CXX=clang++' to the configure command. | ||
- | make sqlite=true | + | ==== Current version ==== |
- | make sqlite=true install | + | |
- | === OS X === | + | wget https:// |
- | Change CFLAGS in src/Makefile to point to the macpports | + | tar -zxvf aircrack-ng-1.6.tar.gz |
+ | cd aircrack-ng-1.6 | ||
+ | | ||
+ | ./configure --with-experimental | ||
+ | | ||
+ | | ||
+ | | ||
- | CFLAGS += -Iinclude | + | ==== Compiling with AirPcap support (cygwin only) === |
- | to | + | - Copy ' |
+ | - Append '- -with-airpcap=../ | ||
- | CFLAGS += -Iinclude -arch i386 -I/ | + | ==== Compiling on *BSD ==== |
+ | 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). | ||
- | ==== Compiling | + | ==== Compiling |
- | - Copy ' | + | Commands are exactly |
- | - Append ' | + | ==== Latest Git (development) Sources ==== |
- | make airpcap=true | + | **Note:** Compilation parameters can also be used with the sources from our git repository. |
- | make install | + | |
- | ==== Compiling with airolib-ng and Airpcap support (cygwin only) ==== | + | |
- | + | ||
- | Simply append both parameter to make and make install: | + | |
- | + | ||
- | make sqlite=true airpcap=true | + | |
- | make sqlite=true install | + | |
- | + | ||
- | + | ||
- | ==== Compiling with CUDA support ==== | + | |
- | + | ||
- | This is still under heavy development so it is not yet been added to the backtrack repositories | + | |
- | however it deserves mentioning. Aircrack can be built with a switch to add GPU acceleration. In | + | |
- | order to do this we need to grab aircrack from svn. You must have the CUDA toolkit and the sdk already installed | + | |
- | to be able to build this. | + | |
- | + | ||
- | | + | |
- | + | ||
- | Next we will build it like normal but it needs a few extra arguments: | + | |
- | + | ||
- | cd aircrack-ng-cuda | + | |
- | | + | |
- | make CUDA=true sqlite=true unstable=true install | + | |
- | + | ||
- | Also see: [[http:// | + | |
- | + | ||
- | ==== Latest SVN (development) Sources ==== | + | |
- | + | ||
- | svn co http:// | + | |
cd aircrack-ng | cd aircrack-ng | ||
- | + | autoreconf -i | |
- | and as usual | + | |
make | make | ||
make install | make install | ||
+ | ldconfig | ||
- | or if you want sqlite and the experimental (unstable) programs | + | ==== ./configure flags ==== |
- | make sqlite=true unstable=true | + | When configuring, |
- | make sqlite=true unstable=true install | + | |
+ | * **with-airpcap=DIR**: | ||
- | ==== Nightly Build ==== | + | * **with-experimental**: |
- | http:// | + | * **with-ext-scripts**: needed to build airoscript-ng, |
+ | * **with-gcrypt**: | ||
- | ==== Legacy ==== | + | * **with-duma**: |
- | wget http:// | + | |
- | | + | |
- | cd aircrack-ng-0.9.3 | + | |
- | | + | |
- | make install | + | |
- | ===== Installing airoscript ===== | + | * **disable-libnl**: |
- | First, ensure you have the gettext package installed. | + | * **without-opt**: |
- | For the latest production version, see [[http:// | + | * **enable-shared**: Make OSdep a shared library. |
- | For the latest development version from SVN: | + | * **disable-shared**: When combined with enable-static, |
- | svn co http://trac.aircrack-ng.org/ | + | * **with-avx512**: On x86, add support for AVX512 instructions in aircrack-ng. |
- | The command above places the files into a directory called airoscript. | + | * **with-static-simd=**: |
- | Then you must su to root and then: | + | ===== Troubleshooting Tips ===== |
+ | ==== error while loading shared libraries: libaircrack-ng.so.0 ==== | ||
- | cd airoscript | + | Run **ldconfig** as root or with " |
- | make | + | |
- | At this point you are ready to use airoscript by simply typing " | ||
- | |||
- | ===== Troubleshooting Tips ===== | ||
==== " | ==== " | ||
- | After you do "make install" | + | After you do "make install" |
- | Normally, the aircrack-ng suite programs and man pages are placed in: | + | Normally, the Aircrack-ng suite programs and man pages are placed in: |
/ | / | ||
Line 155: | Line 143: | ||
/ | / | ||
- | On your system, to determine which directories have the aircrack-ng programs enter the following. | + | On your system, to determine which directories have the Aircrack-ng programs enter the following. If using " |
| | ||
Line 165: | Line 153: | ||
find / -name airmon-ng | find / -name airmon-ng | ||
- | Once you know the directories (exclude the source directories) then determine which directories are in your PATH. To see which directories are included in PATH on your particular system enter: | + | Once you know the directories (exclude the source directories) then determine which directories are in your PATH. To see which directories are included in PATH on your particular system enter: |
echo $PATH | echo $PATH | ||
Line 171: | Line 159: | ||
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: |
* 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 " |
- | * 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/ | ||
- | ==== " | + | With the exception of Linux penetration testing distributions, packages are usually out of date (OS X is the exception). In this case, uninstalling the package and installing from sources is the recommended way to go. |
- | On Debian-based distros, if you get something similar | + | |
- | /bin/sh: line 0: cd: /lib/modules/2.6.15-28-amd64-generic/build: No such file or directory | + | We offer packages for a number of Linux distributions in 64 bit thanks to [[https://packagecloud.io/aircrack-ng/|PackageCloud.io]] so you can use your distro' |
- | Makefile.inc:66: *** / | + | |
- | Stop. | + | |
- | Solution: | ||
- | The build directory gets installed together with the kernel headers, so either you lack the correct headers or your KERNELPATH is wrong. | + | * Debian |
+ | * Ubuntu | ||
+ | * Mint | ||
+ | * SLES | ||
+ | * OpenSuse | ||
+ | * Fedora | ||
+ | * RHEL | ||
+ | * CentOS | ||
+ | * Amazon Linux | ||
+ | * Elementary OS | ||
- | Do a "sudo apt-get install | + | While most folks want to use our "[[https:// |
- | If uname returns exactly that string and the current headers are installed, the remove the headers and install | + | More details about them can be found in our [[https:// |
- | In the above examples, needless to say, change " | + | On OSX, install it is via [[https://www.macports.org/ |
- | + | ||
- | ==== " | + | |
- | + | ||
- | 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. | + | |
- | + | ||
- | ==== " | + | |
- | + | ||
- | 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 ====== | ||
- | |||
- | 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 ====== | ||
- | |||
- | **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. It uses the whole CPU and it seems to be hanging (it is really slow) for an unknown reason. | ||
- | ===== 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. If not you have to attach it manually. | ||
- | |||
- | **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