Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- # image28:
- # Didn't like how bluetooth proximity login drained my phones batteries so found a way to do it with wifi with
- # no extra battery cost ( normally leave wifi up on my phone )
- # SDR can be used to detect MAC address spoofing for extra security
- # Will add proximity command launch code later when I figure out where I saved it
- IFS=$'\n'
- function track-phones()
- {
- iw dev wlan0 interface add mon0 type monitor
- ifconfig mon0 up
- iw dev mon0 scan
- tcpdump -i mon0 -s 65000 -p -U
- }
- function start-phone-tracker()
- {
- DAY=`date +%j.%Y`
- DATE=`date +%H.%M.%S.%j.%Y`
- mkdir -p ~/Cellphone-log/$DAY/
- LOGFILE=~/Cellphone-log/$DAY/phone-tracking-$DATE
- track-phones > $LOGFILE &
- PID=$!
- sleep 86400
- kill -9 $PID
- sleep 1
- tar zcf $LOGFILE.tgz $LOGFILE &
- start-phone-tracker
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement