WiFi Monitor on Beaglebone

On BBB:

Prepare routing and install packages.

route add default gw 192.168.7.1

apt-get install python-dev tcpdump  python-scapy iw

Configure monitoring

iw phy phy0 interface add mon0 type monitor

iw dev wlan0 del

ifconfig mon0 up

iw dev mon0 set channel 1

tcpdump -i mon0 -n

On Windows PC run this line to ssh to the Beaglebone, start the capture and output it to dumpcap, Wireshark’s network traffic dump tool, on the PC. Open the pcap file in Wireshark to see the capture.

plink.exe -ssh root@192.168.7.2 -pw root tcpdump -i mon0 -vv -n -w – | “C:\Program Files\Wireshark\dumpcap.exe” -w “C:\Users\bblab\dumpcap_remote_wifi.pcap” -i –

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s