User Tools

Site Tools


install_aircrack

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
install_aircrack [2018/11/21 23:46] – [Windows] Updates and fixes mister_xinstall_aircrack [2022/05/11 02:51] (current) – Aircrack-ng 1.7 mister_x
Line 15: Line 15:
  
   * 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
   * 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.   * 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)
Line 25: Line 27:
   * make and Standard C++ Library development package   * make and Standard C++ Library development package
  
-==== OS X ====+==== MacOS ====
  
 Install the following via Homebrew (brew): Install the following via Homebrew (brew):
Line 35: Line 37:
   * shtool   * shtool
   * pkg-config   * pkg-config
 +  * hwloc
 +  * pcre
 +  * sqlite3
 +  * libpcap
 +  * cmocka (optional)
  
 ==== FreeBSD, OpenBSD, NetBSD, Solaris ==== ==== FreeBSD, OpenBSD, NetBSD, Solaris ====
Line 44: Line 51:
   * pcre   * pcre
   * sqlite3   * sqlite3
-  * gcc7 optional (50-70% speed gains with gcc 5 compared to gcc 4)+  * gcc9 (or better)
  
 ===== Optional stuff ===== ===== Optional stuff =====
Line 65: Line 72:
 ==== Current version ==== ==== Current version ====
  
-   wget https://download.aircrack-ng.org/aircrack-ng-1.4.tar.gz +   wget https://download.aircrack-ng.org/aircrack-ng-1.7.tar.gz 
-   tar -zxvf aircrack-ng-1.4.tar.gz +   tar -zxvf aircrack-ng-1.7.tar.gz 
-   cd aircrack-ng-1.4+   cd aircrack-ng-1.7
    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 90:
 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). 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 MacOS ====
  
 Commands are exactly the same as Linux Commands are exactly the same as Linux
Line 95: Line 103:
   make   make
   make install   make install
 +  ldconfig
  
 ==== ./configure flags ==== ==== ./configure flags ====
Line 124: Line 132:
  
   * **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.   * **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.
 +
 +  * **enable-maintainer-mode**: It is important to enable this flag when developing with Aircrack-ng. This flag enables additional compile warnings and safety features.
  
 ===== 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 169: Line 183:
 ===== 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 (MacOS is the exception). In this case, uninstalling the package and installing from sources is the recommended way to go. 
 + 
 +We offer packages (statically compiled binaries) for any distribution that supports .deb or .rpm packages thanks to [[https://packagecloud.io/aircrack-ng/|PackageCloud.io]] so you can use your distro'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 [[https://www.macports.org/|Macports]]. Simply do "sudo port install aircrack-ng".+On MacOS, 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 180: Line 212:
   * 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]].   * 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.4-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.6-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. 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. 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.
Line 186: Line 218:
 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.4-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.6-win\bin" directory and execute the individual commands. 
 \\ \\
 \\ \\
install_aircrack.txt · Last modified: 2022/05/11 02:51 by mister_x