aboutsummaryrefslogtreecommitdiff
path: root/README.md
diff options
context:
space:
mode:
Diffstat (limited to 'README.md')
-rw-r--r--README.md15
1 files changed, 12 insertions, 3 deletions
diff --git a/README.md b/README.md
index 8d94a33..72cc478 100644
--- a/README.md
+++ b/README.md
@@ -7,6 +7,15 @@
# Running
- sudo ifconfig wlan0 down
- sudo iwconfig wlan0 mode monitor
- sudo build/wifi-triangulator wlan0
+Set all available wlan interfaces in monitor mode on different channels:
+
+ /sbin/iw dev | sed -n 's,.*Interface \(.*\),\1,p' |sort -n | while read iface; do
+ echo "Configuring $iface"
+ sudo ifconfig $iface down
+ n=$(echo $iface | sed 's,wlan\(.*\),\1,')
+ sudo ifconfig $iface channel $(($n+1))
+ sudo iwconfig $iface mode monitor
+ sudo ifconfig $iface up
+ done
+
+ sudo build/capture wlan0 | build/transmitter 10.13.37.30