Don't steal my Mac

Mac OS X 10.6 comes with CoreLocatation. Which is implemented as a command line program here: http://code.google.com/p/corelocationcli/

So... just "wget --spider "phor.net/ping/fdbook?$(/Users/fulld/Applications/CoreLocationCLI -once)" 2> /dev/null" in your crontab

And put one of these on your server:

<?php
  # URL like: http://phor.net/savelocation/fdbook?info

  $file = preg_replace('/[^a-z]/', '', $_SERVER['PATH_INFO']);
  $info = preg_replace('/#<>/', '', urldecode($_SERVER['QUERY_STRING']));

  file_put_contents("cache/ping_$file", $_SERVER['REMOTE_ADDR']."\n$info\n");
  touch("cache/ping_$string");

?>
PINGED


RESULT: Computer phones home every few minutes to report it's physical location.
1 comment

Popular posts from this blog

How to connect your Roku to Xfinitywifi

Excel bug/feature: recursive VLOOKUP for hierarchy calculations

Is Free Internet Chess Server (FICS) a registered nonprofit? Are donations tax deductible?