Installing Reaver on Ubuntu 11.10

Recently there has been quite a bit of talk about this new cool called reaver. It’s a tool for bruteforcing WPS keys to achieve WPS registrar access, breaking WPA/WPA2 in the process. Previously I hadn’t thought too much about WPS shipping on these new big box routers, really just thinking, “Hey look, it’s another button on the router I’m never going to use”. It turns out however that WPS seems to ship activated on almost all big box routers to date, leaving every one of them out there effectively defenceless. Another reason reaver is so powerful is that, even if router manufacturers release a firmware update and correct the problem, almost no one will actually get around to installing it.

Something I didn’t know was that having WPS registrar access allows you to change many of a router’s common settings, settings like wireless network configurations. Strangely enough, while being a WPS registrar, you can change settings that you previously wouldn’t have been able to change without having access to the router’s administration panel. Settings like wireless packet encryption, rendering any security a network may have had before insignificant.

From their website:

Reaver is a WPA attack tool developed by Tactical Network Solutions that exploits a protocol design flaw in WiFi Protected Setup (WPS). This vulnerability exposes a side-channel attack against Wi-Fi Protected Access (WPA) versions 1 and 2 allowing the extraction of the Pre-Shared Key (PSK) used to secure the network. With a well-chosen PSK, the WPA and WPA2 security protocols are assumed to be secure by a majority of the 802.11 security community. – Tactical Network Solutions

If you’d like to learn more about reaver, one of the guys from Tactical Network Solutions did an interview with Hak5 at Shmoocon this year.

After seeing reaver do it’s work, I decided I had to give it a try myself, trying it out on my home network. The following is a guide for how I set it up on my laptop (tested running Ubuntu 11.10 and Backtrack 5) to work with reaver. Your mileage may vary.

OPTION 1: Build it yourself

  1. Build your dependencies from the repositories
    1. sudo apt-get update
    2. sudo apt-get install build-essential libpcap0.8 libpcap-dev libsqlite3-0 libsqlite3-dev
  2.  Download and untar the latest version of reaper (currently v1.4 from Google Code)
    1. cd ~/Downloads
    2. wget http://reaver-wps.googlecode.com/files/reaver-1.4.tar.gz
    3. tar -xvvzf reaver-1.4.tar.gz
  3. Compile and install
    1. ./configure
    2. make
    3. sudo make install

Congrats! You’ve installed reaper from source! To test your installation, run the command which reaver in the terminal. If your installation has been set up in the proper directories, you should get a file path for the reaper executable something like this /usr/local/bin/reaver.

OPTION 2: Get the script to do it

After writing this guide, I figured I might as well write a bash script to make what was documented above that little bit easier and a couple minutes later it was complete. To use my script, just download it from the link below and then run it as an executable, remembering to set the executable bit with chmod or nautilus.

Setting Reaver as an executable through Nautilus

Setting Reaver as an executable through Nautilus

Running Reaver in the terminal

Running Reaver in the terminal

Download the script

This entry was posted in Guides and tagged , , , , , , , , , , , . Bookmark the permalink.

13 Responses to Installing Reaver on Ubuntu 11.10

  1. sdsds says:

    fuck it is not working

  2. Raymond says:

    followed the instruction also tried the scrip file the script did the updates but Did not install reaver did the so called easy to follow but it dont work did not install
    there are lots of files in directory reaver-1.4/src
    please give me a little help

  3. muda says:

    the problem is that, when I type in “./configure” .this is what I get “bash: ./configure: No such file or directory” .. pls help, what can I do

  4. Viq says:

    In the script you forgot to add the installation of libpcap-dev so it doesn’t work and maybe also “apt-get install sqlite3″ might help

  5. Paul says:

    to all those out there trying to figure this out, before you do ./configure</em, change the directory to reaver-1.4/src in the terminal using cd reaver-1.4/src, then do ./configure in the terminal. I had to do sudo make on a few of my machines, but it really shouldn’t matter too much. If you can do make and get reaver to install, then that’s all that matters. I hope I helped some people out. Azend, thank you for posting up this tutorial!

  6. Paul says:

    whoops, messed up the formatting of my last comment…

    to all those out there trying to figure this out, before you do ./configure, change the directory to reaver-1.4/src in the terminal using cd reaver-1.4/src, then do ./configure in the terminal. I had to do sudo make on a few of my machines, but it really shouldn’t matter too much. If you can do make and get reaver to install, then that’s all that matters. I hope I helped some people out. Azend, thank you for posting up this tutorial!

  7. Ginxeng says:

    thanx..,, work for me

  8. dZell says:

    after ./configure install this

    apt-get install libsqlite3-dev

    its works on linux mint maya and ubuntu.

  9. Bhelphigor says:

    I guess what they are trying to say after you compile the tar file you should do it like this

    . cd reaver-1.4/src
    . ./configure
    . make
    . make install or sudo make install

    correct me if i am wrong

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>