This article describes how to install and configure the latest popular WIFI wireless network password restoration and cracking tool Reaver and the auxiliary aircrack-ng toolkit on Ubuntu12.04LTS. Main steps: 1. Download tool software source code 2. install necessary software dependent libraries and tools 3. aircrack-ng4.reaver5. =) download source code from this Web site download reaver source code
This article describes how to install and configure the latest popular WIFI wireless network password restoration and cracking tool Reaver on Ubuntu 12.04 LTS and the related aircrack-ng toolkit.
Main steps:
1. Download tool software source code
2. install necessary software dependency libraries and tools
3. aircrack-ng
4. reaver
5. =)
Download source code
Download reaver source code http://code.google.com/p/reaver-wps wget http://reaver-wps.googlecode.com/files/reaver-1.4.tar.gz from this URL
Unzip tar-xzvf reaver-1.4.tar.gz
Install necessary software dependency libraries and tools
Install tools such as pcaplib before compiling reaver, and then aircrack-ng sudo apt-get install libpcap-dev sqlite3 libsqlite3-dev libpcap0.8-dev.
Compile and install
Configure and compile Reaver
Cd reaver-1.4 cd src./configure make
Install Reaver
Sudo make install
Download and compile the aircrack-ng source code
Since Ubuntu 12.04, aircrack-ng is no longer included in the software repository, but we can download its source code from the Internet for compilation and installation. There is a small trick in compilation and installation. If you do not do so, compilation will fail, as shown below:
Www.linuxidc.com @ linuxidc :~ /Aircrack-ng-1.1 $ make-C src all make [1]: Entering directory '/home/johan/aircrack-ng-1.1/src 'make-C osdep make [2]: entering directory '/home/johan/aircrack-ng-1.1/src/osdep' Building for Linux make [3]: entering directory '/home/johan/aircrack-ng-1.1/src/osdep' gcc-g-W-Wall-Werror-O3-D_FILE_OFFSET_BITS = 64-D_REVISION = 0-fPIC-I .. -c-o osdep. o osdep. c gcc-g-W-Wall-Werror-O3-D_FILE_OFFSET_BITS = 64-D_REVISION = 0-fPIC-I .. -c-o network. o network. c gcc-g-W-Wall-Werror-O3-D_FILE_OFFSET_BITS = 64-D_REVISION = 0-fPIC-I .. -c-o linux. o linux. c linux. c: In function 'is _ ndiswrapper ': linux. c: 165: 17: error: variable 'unused' set but not used [-Werror = unused-but-set-variable] linux. c: In function 'linux _ set_rate ': linux. c: 334: 22: error: variable 'unused' set but not used [-Werror = unused-but-set-variable] linux. c: In function 'linux _ set_channel ': linux. c: 807: 22: error: variable 'unused' set but not used [-Werror = unused-but-set-variable] linux. c: In function 'linux _ set_freq ': linux. c: 896: 22: error: variable 'unused' set but not used [-Werror = unused-but-set-variable] linux. c: In function 'set _ monitor': linux. c: 1022: 22: error: variable 'unused' set but not used [-Werror = unused-but-set-variable] linux. c: In function 'do _ linux_open ': linux. c: 1366: 12: error: variable 'unused _ str' set but not used [-Werror = unused-but-set-variable] linux. c: 1352: 15: error: variable 'unused' set but not used [-Werror = unused-but-set-variable] linux. c: In function 'get _ battery_state ': linux. c: 1982: 35: error: variable 'current' set but not used [-Werror = unused-but-set-variable] C0: all warnings being treated as errors make [3]: *** [linux. o] Error 1 make [3]: Leaving directory '/home/johan/aircrack-ng-1.1/src/osdep 'make [2]: * ** [all] Error 2 make [2]: Leaving directory '/home/johan/aircrack-ng-1.1/src/osdep'
Make [1]: *** [osd] Error 2
Make [1]: Leaving directory '/home/johan/aircrack-ng-1.1/src'
Make: *** [all] Error 2
The following describes how to compile and install aircrack-ng in Ubuntu 12.04.
Sudo apt-get install build-essential
Sudo apt-get install libssl-dev
Wget http://download.aircrack-ng.org/aircrack-ng-1.1.tar.gz
Tar-zxvf aircrack-ng-1.1.tar.gz
Cd aircrack-ng-1.1
Open the file common. mak vi common. mak in the vi editor.
Find the following line
CFLAGS? =-G-W-Wall-Werror-O3
Remove the "-Werror" option and the line is as follows: CFLAGS? =-G-W-Wall-O3
Save the file, compile and install it.
Make
Sudo make install
Run
Now the installation is complete. You need to set the wireless network adapter to the listening mode with the airmon-ng In the aircrack-ng toolkit you just installed.
First, set the listening mode of the wireless network card.
Sudo airmon-ng start wlan0
Run Reaver
Sudo reaver-I mon0-B 00: 00: 00: 00: 00: 00
Replace the above 00: 00: 00: 00: 00: 00: 00: 00: 00 with your target ap ssid mac to start cracking. This method has been verified by me and is also suitable for reaver 1.3 installation.
For more information about Ubuntu, see Ubuntu special page http://www.linuxidc.com/topicnews.aspx? Tid = 2