1
0
Fork 0
Browse Source

Wifi and bluetooth scanner added

master
Rogier Neeleman 4 years ago
parent
commit
01ebefc209
  1. 3
      README.md
  2. 17
      scanners/wifi_bt.sh

3
README.md

@ -4,5 +4,8 @@ These are some scripts I wrote in the past. Maybe they are usefull in the future @@ -4,5 +4,8 @@ These are some scripts I wrote in the past. Maybe they are usefull in the future
## Messages
* pushover: sends a message to a pushover service.
## Scanners
* wifi_bt.sh: scan for wifi and bluetooth devices.
## Transport
* ns_vertraging.sh: check if there is any delay on the dutch trains. (not working anymore)

17
scanners/wifi_bt.sh

@ -0,0 +1,17 @@ @@ -0,0 +1,17 @@
#!/bin/bash
export PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"
DATUM=`date +%Y%m%d`
sleep 30
WFLOG=/root/ssid_dump-$DATUM.txt
# WiFi
/usr/sbin/airmon-ng start wlan1 >/tmp/airmon.log
/usr/sbin/tcpdump -ttt -i wlan1mon -e -s 256 type mgt subtype probe-req >>$WFLOG &
BTLOG=/root/bt_dump-$DATUM.txt
# Bluetooth
hciconfig hci0 up
while [ 1=1 ]; do date >>$BTLOG; hcitool scan --info --oui --class >>$BTLOG; done &
Loading…
Cancel
Save