Friday, November 30, 2012

How to install Reaver on Ubuntu

Many of the uses of  Ubuntu is that  you can crack wireless networks. I recently moved to Ubuntu and found that Reaver was NOT in the repository. So here's a simple How To install Reaver guide on Ubuntu.

Run the following commands(in "Bold") in the terminal.
Step 1: "sudo -s"

Type your password.
Installing Dependencies and required tools.

Step 2: "sudo apt-get install libpcap-dev sqlite3 libsqlite3-dev libpcap0.8-dev"

Now we have the Dependencies and required tools. We can download the Reaver Source and Install it.

Step 3: "wget http://reaver-wps.googlecode.com/files/reaver-1.4.tar.gz"

Extracting the tar package.

Step 4: "tar -xzvf reaver-1.4.tar.gz"

Compiling and making install.

Step 5: "cd reaver-1.4"


Step 6: "cd src"


Step 7: "./configure"

Step 8: "make"

Step 9: "sudo make install"

Reaver is now installed and ready to use. But before you get hacking WPA networks, you'll need to install Aircrack-ng. Install it from my previous post How to install aircrack-ng on ubuntu.

53 comments:

  1. Replies
    1. Answer To How: How To Install Reaver On Ubuntu >>>>> Download Now

      >>>>> Download Full

      Answer To How: How To Install Reaver On Ubuntu >>>>> Download LINK

      >>>>> Download Now

      Answer To How: How To Install Reaver On Ubuntu >>>>> Download Full

      >>>>> Download LINK FS

      Delete
  2. Thank's very much!

    ReplyDelete
  3. keep posted with further details

    ReplyDelete
  4. Pcap library not found!

    What do I do?

    ReplyDelete
    Replies
    1. "sudo apt-get install libpcap-dev sqlite3 libsqlite3-dev libpcap0.8-dev"

      Delete
    2. also make sure you are logged into an active network and online

      Delete
    3. E: Could not get lock /var/lib/dpkg/lock - open (11: Resource temporarily unavailable)
      E: Unable to lock the administration directory (/var/lib/dpkg/), is another process using it?

      Delete
    4. Make sure you use sudo at the beginning of the command and that all other windows that require administration privileges are done and closed.

      Delete
    5. first active root account "su passwd root" then type root password
      the terminal should be like this root@yourusername:
      you'll not have this "without permission problem"

      Delete
    6. hello there
      have a problem installing reaver, and the error comes "HTTP request sent, awaiting response... 404 Not Found" when i enter this "wget http://reaver-wps.googlecode.com/files/reaver-1.4.tar.gz"
      help pliz

      Delete
    7. It didn't work for me too, so I tried this: https://code.google.com/archive/p/reaver-wps/downloads
      and it worked. Make sure you download reaver 1.4 tar.

      Delete
  5. wow very usefull, thx dude

    ReplyDelete
  6. command not found "make"

    ReplyDelete
  7. make: *** No targets specified and no makefile found. Stop.

    ReplyDelete
  8. root@ubuntu:-/reacer-1.4/src#

    I then add "./configure"

    Error pcap library not found.

    I have gone through the comments and added the information.

    ReplyDelete
  9. thanks for this..very helpful..

    ReplyDelete
  10. after sudo make install. What do I suppose to see?

    ReplyDelete
  11. when i run "make" command :

    (cd utils && make)
    make[1]: Entering directory `/home/vanduc/Downloads/reaver-1.4/src/utils'
    make[1]: Nothing to be done for `all'.
    make[1]: Leaving directory `/home/vanduc/Downloads/reaver-1.4/src/utils'
    (cd tls && make)
    make[1]: Entering directory `/home/vanduc/Downloads/reaver-1.4/src/tls'
    make[1]: Nothing to be done for `all'.
    make[1]: Leaving directory `/home/vanduc/Downloads/reaver-1.4/src/tls'
    (cd crypto && make)
    make[1]: Entering directory `/home/vanduc/Downloads/reaver-1.4/src/crypto'
    make[1]: Nothing to be done for `all'.
    make[1]: Leaving directory `/home/vanduc/Downloads/reaver-1.4/src/crypto'
    (cd wps && make)
    make[1]: Entering directory `/home/vanduc/Downloads/reaver-1.4/src/wps'
    make[1]: Nothing to be done for `all'.
    make[1]: Leaving directory `/home/vanduc/Downloads/reaver-1.4/src/wps'
    (cd lwe && make BUILD_STATIC=y libiw.a)
    make[1]: Entering directory `/home/vanduc/Downloads/reaver-1.4/src/lwe'
    make[1]: `libiw.a' is up to date.
    make[1]: Leaving directory `/home/vanduc/Downloads/reaver-1.4/src/lwe'
    (cd libwps && make)
    make[1]: Entering directory `/home/vanduc/Downloads/reaver-1.4/src/libwps'
    make[1]: `libwps.o' is up to date.
    make[1]: Leaving directory `/home/vanduc/Downloads/reaver-1.4/src/libwps'
    gcc -DCONF_DIR='"/usr/local/etc/reaver"' -DREAVER_DATABASE='"/usr/local/etc/reaver/reaver.db"' -Wall -g -O2 -Ilibwps wpsmon.c *.o libwps/*.o wps/*.o tls/bignum.o tls/libtls.a utils/libutils.a crypto/libcrypto.a lwe/libiw.a -ldl -lm -lpcap -lsqlite3 -o wash
    gcc -DCONF_DIR='"/usr/local/etc/reaver"' -DREAVER_DATABASE='"/usr/local/etc/reaver/reaver.db"' -Wall -g -O2 -Ilibwps wpscrack.c *.o libwps/*.o wps/*.o tls/bignum.o tls/libtls.a utils/libutils.a crypto/libcrypto.a lwe/libiw.a -ldl -lm -lpcap -lsqlite3 -o reaver
    wpscrack.c: In function ‘main’:
    wpscrack.c:38:30: warning: variable ‘r’ set but not used [-Wunused-but-set-variable]

    ReplyDelete
    Replies
    1. hehe, my fail, reaver already installed in my computer.And i didnt know it, when i try to install again. I throught this ouput.

      Delete
    2. try "sudo apt-get install make"

      Delete
  12. I see this when I type "sudo make install" :

    rm -f /usr/local/bin/reaver /usr/local/bin/wash /usr/local/bin/walsh
    if [ ! -d /usr/local/etc/reaver ]; then mkdir -p /usr/local/etc/reaver; fi
    if [ ! -e /usr/local/etc/reaver/reaver.db ]; then cp reaver.db /usr/local/etc/reaver/reaver.db && chmod -R a+rw /usr/local/etc/reaver; fi
    if [ -e wash ]; then cp wash /usr/local/bin/wash; fi
    if [ -e reaver ]; then cp reaver /usr/local/bin/reaver; fi



    How to fix this???

    ReplyDelete
    Replies
    1. It's not a bug, it's a feature! ;)
      Type "wash" or "reaver" on your Prompt. Can you see the help messages? Than all OK.

      Delete
  13. root@sravan-Vostro-3500:~# iwconfig
    eth0 no wireless extensions.

    eth1 IEEE 802.11abg ESSID:off/any
    Mode:Managed Access Point: Not-Associated Tx-Power=200 dBm
    Retry long limit:7 RTS thr:off Fragment thr:off
    Encryption key:off
    Power Management:on

    lo no wireless extensions.




    i am getting like this pls help me

    ReplyDelete
  14. wlan1 Atheros ath9k - [phy0]

    root@ubuntu:~/reaver-1.4/src# airodump-ng mon0
    Interface mon0:
    ioctl(SIOCGIFINDEX) failed: No such device
    root@ubuntu:~/reaver-1.4/src# ^C
    root@ubuntu:~/reaver-1.4/src#
    what is this guys? i came this far but i stop here

    ReplyDelete
  15. root@ubuntu:~/reaver-1.4/src# airmon-ng start wlan0


    Found 4 processes that could cause trouble.
    If airodump-ng, aireplay-ng or airtun-ng stops working after
    a short period of time, you may want to kill (some of) them!

    PID Name
    713 avahi-daemon
    714 avahi-daemon
    970 NetworkManager
    1141 wpa_supplicant


    Interface Chipset Driver

    wlan1 Atheros ath9k - [phy0]

    root@ubuntu:~/reaver-1.4/src# airodump-ng mon0
    Interface mon0:
    ioctl(SIOCGIFINDEX) failed: No such device

    ReplyDelete
  16. typed in terminal ./configure
    >> premisson denied
    (tr5 boot cd drive!)

    ReplyDelete
    Replies
    1. I have the same problem! Please someone help!

      Delete
  17. I have this error please give me solution of this error:
    Err http://archive.ubuntu.com/ubuntu/ quantal/main libpcap0.8-dev i386 1.3.0-1
    404 Not Found [IP: 91.189.91.13 80]
    Err http://archive.ubuntu.com/ubuntu/ quantal/main libpcap-dev all 1.3.0-1
    404 Not Found [IP: 91.189.91.13 80]
    Err http://archive.ubuntu.com/ubuntu/ quantal/main libsqlite3-dev i386 3.7.13-1
    404 Not Found [IP: 91.189.91.13 80]
    Err http://archive.ubuntu.com/ubuntu/ quantal/main sqlite3 i386 3.7.13-1
    404 Not Found [IP: 91.189.91.13 80]
    Failed to fetch http://archive.ubuntu.com/ubuntu/pool/main/libp/libpcap/libpcap0.8-dev_1.3.0-1_i386.deb 404 Not Found [IP: 91.189.91.13 80]
    Failed to fetch http://archive.ubuntu.com/ubuntu/pool/main/libp/libpcap/libpcap-dev_1.3.0-1_all.deb 404 Not Found [IP: 91.189.91.13 80]
    Failed to fetch http://archive.ubuntu.com/ubuntu/pool/main/s/sqlite3/libsqlite3-dev_3.7.13-1_i386.deb 404 Not Found [IP: 91.189.91.13 80]
    Failed to fetch http://archive.ubuntu.com/ubuntu/pool/main/s/sqlite3/sqlite3_3.7.13-1_i386.deb 404 Not Found [IP: 91.189.91.13 80]
    E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?

    ReplyDelete
  18. This comment has been removed by the author.

    ReplyDelete
  19. it shows like this after typing "make"
    int ret_val = EXIT_FAILURE, r = 0;
    ^

    ReplyDelete
  20. E: Unable to locate package libpcap-dev
    E: Unable to locate package sqlite3
    E: Unable to locate package libsqlite3-dev
    what i do

    ReplyDelete
  21. Interface mon0:
    ioctl(SIOCGIFINDEX) failed: No such device

    This is the error message, what Sould I do?

    ReplyDelete
  22. I'm getting HTTP request sent,awaiting response... 404 Not Found when using the Step 3: "wget http://reaver-wps.googlecode.com/files/reaver-1.4.tar.gz"

    ReplyDelete
    Replies
    1. wget http://storage.googleapis.com/google-code-archive-downloads/v2/code.google.com/reaver-wps/reaver-1.4.tar.gz

      Delete
  23. wget http://reaver-wps.googlecode.com/files/reaver-1.4.tar.gz not found

    ReplyDelete
  24. 404 error.!!!site not available..

    ReplyDelete
  25. For me it is showing that the following packages have unmet dependencies:unable to correct problems,you have held broken packages.3.7.9-2ubuNu1.1 is to be installed.Help me please

    ReplyDelete
  26. -Linux:~$ sudo -s
    [sudo] password for liladhar:
    root@liladhar-Linux:~# sudo apt-get install libpcap-dev sqlite3 libsqlite3-dev libpcap0.8-dev
    Reading package lists... Done
    Building dependency tree
    Reading state information... Done
    libpcap-dev is already the newest version (1.7.4-2).
    libpcap0.8-dev is already the newest version (1.7.4-2).
    libsqlite3-dev is already the newest version (3.11.0-1ubuntu1).
    sqlite3 is already the newest version (3.11.0-1ubuntu1).
    0 upgraded, 0 newly installed, 0 to remove and 371 not upgraded.
    root@liladhar-Linux:~# wget http://reaver-wps.googlecode.com/files/reaver-1.4.tar.gz
    --2017-03-11 16:50:56-- http://reaver-wps.googlecode.com/files/reaver-1.4.tar.gz
    Resolving reaver-wps.googlecode.com (reaver-wps.googlecode.com)... 2404:6800:4008:c07::52, 64.233.187.82
    Connecting to reaver-wps.googlecode.com (reaver-wps.googlecode.com)|2404:6800:4008:c07::52|:80... connected.
    HTTP request sent, awaiting response... 404 Not Found
    2017-03-11 16:50:56 ERROR 404: Not Found.

    root@liladhar-Linux:~#

    ReplyDelete
  27. PLZ I NEED HELP root@ubuntu:~# wget http://reaver-wps.googlecode.com/files/reaver-1.4.tar.gz
    --2017-05-30 19:39:49-- http://reaver-wps.googlecode.com/files/reaver-1.4.tar.gz
    Resolving reaver-wps.googlecode.com (reaver-wps.googlecode.com)... 74.125.198.82, 2607:f8b0:4003:c17::52
    Connecting to reaver-wps.googlecode.com (reaver-wps.googlecode.com)|74.125.198.82|:80... connected.
    HTTP request sent, awaiting response... 404 Not Found
    2017-05-30 19:39:49 ERROR 404: Not Found.

    ReplyDelete
  28. have got this error.anyway out?
    bash: cd: src: No such file or directory

    ReplyDelete
  29. Setting up reaver. It's been sitting at this stage forever. Is this typical when installing and setting up reaver? Already have Fern ready to go.

    nuclear-Aspire-M5630 ~ # sudo apt-get install reaver
    Reading package lists... Done
    Building dependency tree
    Reading state information... Done
    The following NEW packages will be installed:
    reaver
    0 upgraded, 1 newly installed, 0 to remove and 6 not upgraded.
    Need to get 223 kB of archives.
    After this operation, 598 kB of additional disk space will be used.
    Get:1 http://mirror.cc.vt.edu/pub2/ubuntu xenial/universe i386 reaver i386 1.4-2 [223 kB]
    Fetched 223 kB in 0s (369 kB/s)
    Selecting previously unselected package reaver.
    (Reading database ... 238820 files and directories currently installed.)
    Preparing to unpack .../archives/reaver_1.4-2_i386.deb ...
    Unpacking reaver (1.4-2) ...
    Processing triggers for man-db (2.7.5-1) ...
    Setting up reaver (1.4-2) ...
    nuclear-Aspire-M5630 ~ #

    ReplyDelete
  30. gcc -DCONF_DIR='"/usr/local/etc/reaver"' -DREAVER_DATABASE='"/usr/local/etc/reaver/reaver.db"' -Wall -g -O2 -Ilibwps wpsmon.c *.o libwps/*.o wps/*.o tls/bignum.o tls/libtls.a utils/libutils.a crypto/libcrypto.a lwe/libiw.a -ldl -lm -lpcap -lsqlite3 -o wash
    gcc -DCONF_DIR='"/usr/local/etc/reaver"' -DREAVER_DATABASE='"/usr/local/etc/reaver/reaver.db"' -Wall -g -O2 -Ilibwps wpscrack.c *.o libwps/*.o wps/*.o tls/bignum.o tls/libtls.a utils/libutils.a crypto/libcrypto.a lwe/libiw.a -ldl -lm -lpcap -lsqlite3 -o reaver
    wpscrack.c: In function ‘main’:
    wpscrack.c:38:30: warning: variable ‘r’ set but not used [-Wunused-but-set-variable]

    ReplyDelete
  31. I need help with step 8. when I enter "make", it does its process but then at the end it says: ./iwlib.h:54:10: fatal error: 'linux/types.h' file not found
    #include /* for "caddr_t" et al */
    ^~~~~~~~~~~~~~~
    1 error generated.
    make[1]: *** [iwlib.so] Error 1
    make: *** [libiw] Error 2

    ReplyDelete