generate mac list of all wifi devices
authorDobrica Pavlinusic <dpavlin@rot13.org>
Tue, 10 Jul 2018 09:41:45 +0000 (11:41 +0200)
committerDobrica Pavlinusic <dpavlin@rot13.org>
Tue, 10 Jul 2018 09:41:45 +0000 (11:41 +0200)
wap-mac-list.sh [new file with mode: 0755]

diff --git a/wap-mac-list.sh b/wap-mac-list.sh
new file mode 100755 (executable)
index 0000000..7875240
--- /dev/null
@@ -0,0 +1,6 @@
+#!/bin/sh
+
+# seed arp
+./wap-names | xargs fping -q
+# extract mac
+sudo arp -a | grep wap | awk '{ print $4" "$1 }' | sed 's/\.infosl$//' | tee /dev/shm/mac.wap