This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
install_aircrack [2018/07/11 22:00] mister_x Updated requirements |
install_aircrack [2019/04/07 22:56] (current) mister_x add ldconfig to avoid "error while loading shared libraries: libaircrack-ng.so.0" |
||
---|---|---|---|
Line 11: | Line 11: | ||
* OpenSSL development package or libgcrypt development package. | * OpenSSL development package or libgcrypt development package. | ||
* pkg-config | * pkg-config | ||
- | * pcre development package for ESSID filtering in [[airodump-ng]] | ||
- | * sqlite development package for [[airolib-ng]] and support for airolib-ng databases in [[aircrack-ng]] | ||
==== Linux ==== | ==== Linux ==== | ||
Line 24: | Line 22: | ||
* w32api is required | * w32api is required | ||
- | * Airpcap: developer directory from the Airpcap CD. | ||
* if using clang, libiconv and libiconv-devel | * if using clang, libiconv and libiconv-devel | ||
* make and Standard C++ Library development package | * make and Standard C++ Library development package | ||
Line 53: | Line 50: | ||
* If you want SSID filtering with regular expression in airodump-ng (-essid-regex) pcre development package is required. | * 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) | * 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) | ||
- | * If you want to use Airpcap, the 'developer' directory from the CD is required. | + | * If you want to use Airpcap, the 'developer' directory from the CD is required. It can be downloaded [[https://support.riverbed.com/content/support/software/steelcentral-npm/airpcap.html|here]]. |
* For best performance on FreeBSD (50-70% more), install gcc5 via: pkg install gcc5 Then compile with: gmake CC=gcc5 CXX=g++5 | * For best performance on FreeBSD (50-70% more), install gcc5 via: pkg install gcc5 Then compile with: gmake CC=gcc5 CXX=g++5 | ||
* rfkill | * rfkill | ||
* CMocka | * CMocka | ||
+ | * hwloc: strongly recommended, especially on high core count systems where it may give a serious performance boost | ||
Line 67: | Line 65: | ||
==== Current version ==== | ==== Current version ==== | ||
- | wget http://download.aircrack-ng.org/aircrack-ng-1.2.tar.gz | + | wget https://download.aircrack-ng.org/aircrack-ng-1.5.2.tar.gz |
- | tar -zxvf aircrack-ng-1.2.tar.gz | + | tar -zxvf aircrack-ng-1.5.2.tar.gz |
- | cd aircrack-ng-1.2 | + | cd aircrack-ng-1.5.2 |
autoreconf -i | autoreconf -i | ||
./configure --with-experimental | ./configure --with-experimental | ||
make | make | ||
make install | make install | ||
+ | ldconfig | ||
==== Compiling with AirPcap support (cygwin only) === | ==== Compiling with AirPcap support (cygwin only) === | ||
Line 82: | Line 81: | ||
==== Compiling on *BSD ==== | ==== Compiling on *BSD ==== | ||
- | 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). | + | 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 on OS X ==== | ==== Compiling on OS X ==== | ||
Line 97: | Line 96: | ||
make | make | ||
make install | make install | ||
+ | ldconfig | ||
==== ./configure flags ==== | ==== ./configure flags ==== | ||
Line 124: | Line 123: | ||
* **with-avx512**: On x86, add support for AVX512 instructions in aircrack-ng. Only use it when the current CPU supports AVX512. | * **with-avx512**: On x86, add support for AVX512 instructions in aircrack-ng. Only use it when the current CPU supports AVX512. | ||
+ | |||
+ | * **with-static-simd=**: Compile a single optimization in aircrack-ng binary. Useful when compiling statically and/or for space-constrained devices. Valid SIMD options: x86-sse2, x86-avx, x86-avx2, x86-avx512, ppc-altivec, ppc-power8, arm-neon, arm-asimd. Must be used with --enable-static --disable-shared. When using those 2 options, the default is to compile the generic optimization in the binary. **--with-static-simd** merely allows to choose another one. | ||
+ | |||
===== Troubleshooting Tips ===== | ===== Troubleshooting Tips ===== | ||
+ | ==== error while loading shared libraries: libaircrack-ng.so.0 ==== | ||
+ | |||
+ | Run **ldconfig** as root or with "sudo" to solve the issue. | ||
+ | |||
==== "command not found" error message ==== | ==== "command not found" error message ==== | ||
Line 157: | Line 163: | ||
* 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://www.linuxheadquarters.com/howto/basic/path.shtml | + | https://www.cyberciti.biz/faq/howto-print-path-variable/ |
- | http://www.cyberciti.biz/faq/howto-print-path-variable/ | + | |
http://www.troubleshooters.com/linux/prepostpath.htm | http://www.troubleshooters.com/linux/prepostpath.htm | ||
- | http://linux.about.com/od/linux101/l/blnewbie3_1_4.htm | ||
* Change to the particular directory with "cd" and then run the commands from within the directory. Don't forget to add "./" in front of each command. | * Change to the particular directory with "cd" and then run the commands from within the directory. Don't forget to add "./" in front of each command. | ||
Line 170: | Line 174: | ||
===== Linux/BSD/OSX ===== | ===== Linux/BSD/OSX ===== | ||
- | Open your package manager and install 'Aircrack-ng' package. Be sure to check that the version offered is up-to-date -- it often isn't. | + | 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. |
+ | |||
+ | 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's package manager to install and keep Aircrack-ng up to date: | ||
+ | |||
+ | |||
+ | * Debian | ||
+ | * Ubuntu | ||
+ | * Mint | ||
+ | * SLES | ||
+ | * OpenSuse | ||
+ | * Fedora | ||
+ | * RHEL | ||
+ | * CentOS | ||
+ | * Amazon Linux | ||
+ | * Elementary OS | ||
+ | |||
+ | While most folks want to use our "[[https://packagecloud.io/aircrack-ng/release/install|release]]" packages, "[[https://packagecloud.io/aircrack-ng/git/install|git]]" packages are available too for those who decide to use bleeding edge. | ||
+ | |||
+ | More details about them can be found in our [[https://aircrack-ng.blogspot.com/2018/10/aircrack-ng-packages.html|blog post]]. | ||
- | On OSX, install it is via [[http://www.macports.org/|Macports]]. Simply do "sudo port install aircrack-ng". | + | On OSX, install it is via [[https://www.macports.org/|Macports]] or [[https://brew.sh/|brew]]. Simply do "brew install aircrack-ng" or "sudo ports install aircrack-ng" |
===== Windows ===== | ===== Windows ===== | ||
Line 179: | Line 201: | ||
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://aircrack-ng.org|Wiki home page]]. | + | * 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://aircrack-ng.org|Wiki home page]]. |
- | * Unzip the contents of the Aircrack-ng zip file into "C:\". This will create a directory called "aircrack-ng-1.2-win". This directory name will vary based on the exact version that you downloaded. This main directory contains three subdirectories - "bin", "src" and "test". | + | * Unzip the contents of the Aircrack-ng zip file into "C:\". This will create a directory called "aircrack-ng-1.5.2-win". This directory name will vary based on the exact version that you downloaded. This main directory contains three subdirectories - "bin", "src" and "test". |
- | Prior to using the software, make sure to install the drivers for your particular wireless card. See this [[install_drivers#windows|link]] for the instructions. | + | Prior to using the software, make sure to install the drivers for your particular wireless card. See this [[install_drivers#windows|link]] for the instructions. We currently only support Airpcap; other adapters may be supported but require development of your own DLL so the different tools can interact with it. |
To now use the Aircrack-ng suite, start Windows Explorer and double click on **Aircrack-ng GUI.exe** inside "bin" subdirectory. The GUI requires .NET version 4.6.1 to run. | To now use the Aircrack-ng suite, start Windows Explorer and double click on **Aircrack-ng GUI.exe** inside "bin" subdirectory. The GUI requires .NET version 4.6.1 to run. | ||
- | Alternatively, open a command prompt (Start menu -> Execute -> cmd.exe) and change to the "C:\aircrack-ng-1.2-win\bin" directory and execute the individual commands. | + | Alternatively, open a command prompt (Start menu -> Execute -> cmd.exe) and change to the "C:\aircrack-ng-1.5.2-win\bin" directory and execute the individual commands. |
\\ | \\ | ||
\\ | \\ |