Raspberry Pi Wifi Monitor

Raspberry pi wifi monitor

I was trying to use the raspberry pi to monitor traffic on my LAN using the Wi Fi dongle that came with the raspberry pi, a realtek- RTL8188CUS. It does not work.

Typing iwconfig on terminal:

pi@raspberrypi ~ $ iwconfig wlan0
wlan0     unassociated  Nickname:"<WIFI@REALTEK>"
          Mode:Managed  Frequency=2.437 GHz  Access Point: Not-Associated
          Retry:off   RTS thr:off   Fragment thr:off
          Power Management:off
          Link Quality:0  Signal level:0  Noise level:0
          Rx invalid nwid:0  Rx invalid crypt:0  Rx invalid frag:0
          Tx excessive retries:0  Invalid misc:0   Missed beacon:0

Looking around, I found this Ralink RT5370 chipset that works on monitor mode.

Install aircrack-ng suite

First we want to install libssl-dev or we will have some problems with aircrack-ng:

$ sudo apt-get -y install libssl-dev

Now we can install aircrack-ng:

wget http://download.aircrack-ng.org/aircrack-ng-1.2-beta1.tar.gz
tar -zxvf aircrack-ng-1.2-beta1.tar.gz
cd aircrack-ng-1.2-beta1
sudo make install

This will download aircrack-ng package from aircrack-ng.org site and extract it to a aircrack-ng-1.2-beta1 directory and then install it from there.

Update airodump's OUI with the following command:

$ sudo airodump-ng-oui-update

Then you need to install iw to get your wifi dongle to monitor mode:

$ sudo apt-get -y install iw



Now, issue the following command:

$ sudo airmon-ng start wlan0

It should start wlan0 on monitor mode as mon0 and we can try airodump-ng:

$ sudo airodump-ng mon0


$ sudo arp-scan -l

Interface: eth0, datalink type: EN10MB (Ethernet) Starting arp-scan 1.8.1 with 256 hosts (http://www.nta-monitor.com/tools/arp-scan/) 48:f8:b3:1b:57:84 (Unknown) b8:e8:17:11:d5:5c (Unknown) c8:8f:38:19:68:47 (Unknown) 78:31:c1:b8:05:12 (Unknown) 00:19:9d:68:65:52 VIZIO, Inc. ac:ca:13:39:bb:c2 (Unknown) (DUP: 1) b8:e9:34:5c:0f:c0 (Unknown) (DUP: 1) b8:e9:35:5c:10:36 (Unknown) (DUP: 1) b8:e9:35:29:6b:b0 (Unknown) (DUP: 1)

11 packets received by filter, 0 packets dropped by kernel Ending arp-scan 1.8.1: 256 hosts scanned in 3.425 seconds (74.74 hosts/sec). 9 responded


http://beginlinux.com/blog/2009/06/defend-against-arp-spoofing/ https://tournasdimitrios1.wordpress.com/2011/01/09/how-to-detect-arp-spoofing-under-unix-or-linux/

!-- http://www.linuxjournal.com/content/real-time-rogue-wireless-access-point-detection-raspberry-pi?page=0,1 http://blog.petrilopia.net/linux/raspberry-pi-install-aircrackng-suite/ --