wfb-ng/rx.sh

19 lines
320 B
Bash
Raw Normal View History

2017-01-23 04:37:26 -04:00
#!/bin/bash
WLANS=$@
2017-01-23 12:08:28 -04:00
#CHANNEL5G="6"
CHANNEL5G="149"
2017-01-23 04:37:26 -04:00
for WLAN in $WLANS
do
echo "Setting $WLAN to channel $CHANNEL5G"
ifconfig $WLAN down
iw dev $WLAN set monitor otherbss fcsfail
iw reg set BO
ifconfig $WLAN up
iwconfig $WLAN channel $CHANNEL5G
done
2017-01-23 12:08:28 -04:00
./rx -u 5600 $WLANS
2017-01-23 04:37:26 -04:00
#tcpdump -i $WLAN 'ether[0x0a:4]==0x13223344'