Advertisement
image28

Cellphone tracker

Jul 15th, 2017
309
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.81 KB | None | 0 0
  1. #!/bin/bash
  2. # image28:
  3. # Didn't like how bluetooth proximity login drained my phones batteries so found a way to do it with wifi with
  4. # no extra battery cost ( normally leave wifi up on my phone )
  5. # SDR can be used to detect MAC address spoofing for extra security
  6. # Will add proximity command launch code later when I figure out where I saved it
  7.  
  8. IFS=$'\n'
  9.  
  10. function track-phones()
  11. {
  12.     iw dev wlan0 interface add mon0 type monitor
  13.     ifconfig mon0 up
  14.     iw dev mon0 scan
  15.     tcpdump -i mon0 -s 65000 -p -U
  16. }
  17.  
  18. function start-phone-tracker()
  19. {
  20.     DAY=`date +%j.%Y`
  21.     DATE=`date +%H.%M.%S.%j.%Y`
  22.     mkdir -p ~/Cellphone-log/$DAY/
  23.     LOGFILE=~/Cellphone-log/$DAY/phone-tracking-$DATE
  24.     track-phones > $LOGFILE &
  25.     PID=$!
  26.     sleep 86400
  27.     kill -9 $PID
  28.     sleep 1
  29.     tar zcf $LOGFILE.tgz $LOGFILE &
  30.    
  31.     start-phone-tracker
  32. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement