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 –

Leave a comment