Tuesday, December 21, 2010

Track Stolen-Lost Laptop with Dropbox

Download this shell script for Mac/Linux or this bat script for Windows. This script writes output from useful commands like ipconfig, netstat etc to your Dropbox, and also queries whatismyip.com (using the low bandwidth page they set up for automation projects like this) writing the public IP address the computer is connected as (assuming a NAT configuration then this will be the IP of the router connected to the internet).
You can run the batch script as a scheduled job on Windows (instructions). On mac you can schedule it using CronTab or CronniX. Make sure you go through the instructions given inside the scripts. It is better to schedule the script to run daily, If someone steals the notebook or Macbook, (and assuming they don’t wipe the HDD right away and get online) you must get some real useful information back into your Dropbox account.




No comments:

Post a Comment