Skip to content

Instantly share code, notes, and snippets.

@JBirdVegas
Created September 1, 2013 01:08
Show Gist options
  • Save JBirdVegas/6401684 to your computer and use it in GitHub Desktop.
Save JBirdVegas/6401684 to your computer and use it in GitHub Desktop.
***Because I'm paranoid*** This logs the users location, ip address and takes a photo. All this information is the committed to a git repository This script needs to be added as a "Startup Application" to be fully utilized.
#!/bin/sh
# wait till we are connected to the internet to run the script
while ! wget http://google.com -O- 2>/dev/null | grep -q Lucky; do
sleep 3
done
exec $1
cd $HOME/sec/
export secStamp=$(date +%Y_%m_%d_%H-%M-%S)
mkdir $secStamp
cd $secStamp
# take a picture
mplayer -vo png -frames 1 tv://
# grab the coarse location
lynx -dump http://www.ip-adress.com/ip_tracer/?QRY=$1|grep address|egrep 'city|state|country'|awk '{print $3,$4,$5,$6,$7,$8}'|sed 's\ip address flag \\'|sed 's\My\\' > breifLocation.txt
# note the full user profile
lynx -dump http://www.ip-adress.com/ip_tracer/?QRY=$1 > fullProfile.txt
# grab the ip of user
curl ifconfig.me > ip.txt
cd ..
git add -A
git commit -a -m "Log in at: $secStamp"
git push origin master
notify-send "Smile for my lulz!"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment