Discussion

HOW TO install Aircrack-ng on Raspian / Lubuntu

1 8090
Post Last Edited by 33!mport at 2014-8-14 16:36

Hello !

I'm using Aircrack-ng on my BPI running Raspian v3

Quick installation tutorial for beginners :

Get root :
  1. sudo su -
Copy the Code
Download required packages :
  1. apt-get update
  2. apt-get install libnl1 libnl-dev libnl-3-dev libnl-genl-3-dev iw
Copy the Code
Download aircrack-ng sources (grab last version) :
  1. wget http://download.aircrack-ng.org/aircrack-ng-1.2-beta3.tar.gz
Copy the Code
Uncompress :
  1. tar xvzf aircrack-ng-1.2-beta3.tar.gz
Copy the Code
Compile & install :
  1. cd aircrack-ng-1.2-beta3
  2. make
  3. make install
Copy the Code
[Optional] : remove useless installation files for free space:
  1. cd ..
  2. rm -Rf aircrack-ng-1.2-beta3*
Copy the Code
Update airodump IEEE OUI base:
  1. airodump-ng-oui-update
Copy the Code
Then plug your Wireless usb adapter, and see if raspian detect it :
  1. dmesg
Copy the Code
example with my adapter:
[ 3533.064296] usb 1-1: new high-speed USB device number 2 using sw-ehci
[ 3533.368525] usb 1-1: New USB device found, idVendor=148f, idProduct=2573
[ 3533.374635] usb 1-1: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[ 3533.378554] usb 1-1: Product: 802.11g USB WLAN Card
[ 3533.381360] usb 1-1: Manufacturer: WLAN
[ 3533.604520] usb 1-1: reset high-speed USB device number 2 using sw-ehci
[ 3534.090900] ieee80211 phy0: Selected rate control algorithm 'minstrel_ht'
[ 3534.098215] Registered led device: rt73usb-phy0::radio
[ 3534.102552] Registered led device: rt73usb-phy0::assoc
[ 3534.108182] Registered led device: rt73usb-phy0::quality
[ 3534.113667] usbcore: registered new interface driver rt73usb


Show your network interfaces, here is wlan0 :
  1. iwconfig
Copy the Code
  1. lo        no wireless extensions.
  2. tunl0     no wireless extensions.

  3. wlan0     IEEE 802.11bg  ESSID:off/any
  4.           Mode:Managed  Access Point: Not-Associated   Tx-Power=20 dBm
  5.           Retry  long limit:7   RTS thr:off   Fragment thr:off
  6.           Encryption key:off
  7.           Power Management:on

  8. eth0      no wireless extensions.
Copy the Code
Start your wireless interface in monitor mode:
  1. airmon-ng start wlan0
Copy the Code

Interface      Chipset         Driver
wlan0           Ralink 2573 USB rt73usb - [phy0]
                    (monitor mode enabled on mon0)


then use the monitored interface with aircrack suite (here is mon0) :

List all hotspots :
  1. airodump-ng mon0
Copy the Code
List only WEP hotspots :
  1. airodump-ng --encrypt WEP mon0
Copy the Code
Capture WEP hotspots traffic in file :
  1. airodump-ng --encrypt WEP mon0 -w /home/pi/WEP_captures
Copy the Code
For better results, you can capture traffic for specific hotspot, just set this channel & MAC address :
  1. airodump-ng -c 11 -bssid xx:xx:xx:xx:xx:xx mon0 -w my_hotspot_capture
Copy the Code
hnsncxy  
Very good tutorial

You have to log in before you can reply Login | Sign Up

Points Rules