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
Next revisionBoth sides next revision
install_aircrack [2016/02/15 02:50] – [Compiling on FreeBSD] Updated formatting and instructions for FreeBSD mister_xinstall_aircrack [2017/10/15 23:29] – [Installing on Mac OSX] Updated OSX instructions mister_x
Line 1: Line 1:
 ====== Installing Aircrack-ng from Source ====== ====== Installing Aircrack-ng from Source ======
 ===== Requirements ===== ===== 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: +  * OpenSSL development package or libgcrypt development package (libssl-dev or libgcrypt20-dev on Debian based distributions).
- +
-  sudo apt-get install build-essential +
- +
-  * OpenSSL (development). It is called openssl-dev or libssl-dev depending on your distribution.+
   * pkg-config   * pkg-config
-\\ +  * make - gmake on *BSD, Solaris and OSX. 
-The following is required only if you want [[Airolib-ng]]:+  * gcc or clang 
 +  * PCRE development package if SSID filtering with regular expressions is needed 
 +  * Sqlite3 development package (>=3.317 but 3.6X+ is recommended)
  
-  * [[http://www.sqlite.org|SQLite]] (development) > 3.3.17 (but latest version is recommended)+==== Linux ====
  
-==== Windows ====+  * Airmon-ng requires ethtool and rfkill 
 +  * LibNetlink 1 (libnl-dev) or 3 (libnl-3-dev and libnl-genl-3-dev) development packages 
 +  * Kernel headers and gcc as well as make have to be installed on your system (build-essential on Debian based distributions)
  
-It requires additional libraries to be installed: +==== Windows (Cygwin====
-  * [[http://www.openssl.org|OpenSSL]] (development): openssl-devel +
-\\ +
-The following is required only if you want [[Airolib-ng]]:+
  
-  * SQLite3 (development) > 3.3.17 (but latest version is recommended)libsqlite3-devel+  * w32api is required 
 +  * Airpcapdeveloper directory from the Airpcap CD.
  
 ==== OS X ==== ==== OS X ====
Line 38: Line 35:
   * pcre   * pcre
   * sqlite3   * sqlite3
 +  * gcc5 optional (50-70% speed gains compared to gcc 4)
  
 ===== Compiling and installing ===== ===== Compiling and installing =====
  
-**Note:** For OS X, use 'gmake' instead of 'make'.+Notes: 
 +  Most parameters can be combined. Refer to INSTALLING file for more details (and more parameters). 
 +  On OS X, *BSD and Solaris, use 'gmake' instead of 'make'
 +  * In order to compile with clang instead of gcc, add 'CC=clang' to the make command.
  
 ==== Current version ==== ==== Current version ====
  
-It requires some additional libraries: +   wget http://download.aircrack-ng.org/aircrack-ng-1.2-rc4.tar.gz 
-  * OpenSSL (libssl-dev on Debian-based system) +   tar -zxvf aircrack-ng-1.2-rc4.tar.gz 
-  * SQLite > 3.3.17 (latest version is recommended) if you want to use [[Airolib-ng]] +   cd aircrack-ng-1.2-rc4
- +
-   wget http://download.aircrack-ng.org/aircrack-ng-1.2-rc3.tar.gz +
-   tar -zxvf aircrack-ng-1.2-rc3.tar.gz +
-   cd aircrack-ng-1.2-rc3+
    make    make
    make install    make install
Line 70: Line 67:
  
 === OS X === === OS X ===
-Change CFLAGS in src/Makefile to point to the macpports install of SQLite3 before compiling. Change the following line: 
  
-  CFLAGS += -Iinclude+It can be compiled either with XCode 7or with macports 
 + 
 +Macports:
  
-to+  gmake macport=true sqlite=true experimental=true pcre=true
  
-  CFLAGS +-Iinclude -arch i386 -I/opt/local/include -L/opt/local/lib+ 
 +XCode: 
 + 
 +  gmake xcode=true sqlite=true experimental=true pcre=true
  
  
Line 85: Line 86:
  
   make airpcap=true   make airpcap=true
-  make install +  make airpcap=true 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 on FreeBSD ==== ==== Compiling on FreeBSD ====
Line 99: Line 93:
  
 ==== Latest SVN (development) Sources ==== ==== Latest SVN (development) Sources ====
 +
 +**Note:** Compilation parameters can also be used with the sources from our subversion repository.
  
   svn co http://svn.aircrack-ng.org/trunk/ aircrack-ng   svn co http://svn.aircrack-ng.org/trunk/ aircrack-ng
Line 104: Line 100:
   make   make
   make install   make install
- 
-==== Latest SVN with Airolib-ng support and experimental (unstable) programs (requires SQLite installed) ==== 
-(like [[tkiptun-ng|Tkiptun-ng]], [[easside-ng|Easside-ng (and buddy-ng)]], [[wesside-ng|Wesside-ng]] and [[besside-ng|Besside-ng]]) 
- 
-  make sqlite=true experimental=true 
-  make sqlite=true experimental=true install 
- 
-==== Latest SVN with Airolib-ng and and experimental (unstable) programs plus external scripts ==== 
-(like [[airoscript-ng|Airoscript-ng]], [[tools#versuck-ng|Versuck-ng]], [[airgraph-ng|Airgraph-ng]] and [[airdrop-ng|Airdrop-ng]]) 
- 
-  make sqlite=true experimental=true ext_scripts=true 
-  make sqlite=true experimental=true ext_scripts=true install 
- 
-**Note:** Experimental scripts: 
-  * Each scripts has its own dependencies, for details refer to the "README" file contained in their folder 
  
 ==== Nightly Build ==== ==== Nightly Build ====
Line 250: Line 231:
  
 ====== Installing on Mac OSX ====== ====== 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://www.macports.org/|Macports]]. You simply do "sudo port install aircrack-ng". The simplest and easiest way to install on Mac OS X is via [[http://www.macports.org/|Macports]]. You simply do "sudo port install aircrack-ng".
Line 255: Line 238:
 Alternatively, use the following instructions: Alternatively, use the following instructions:
  
-Make sure you have Xcode installed on your Mac, which can be found on the installer CD/DVD which came with your Mac. +  - 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" from the untarred directory. +  After getting the source you can do a simple "make && sudo make install" from the untarred directory. 
-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+  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  Optional is openssl-dev and sqlite3 which can be installed through fink 
install_aircrack.txt · Last modified: 2023/03/03 16:47 by mister_x