Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!

Click here to return to the 'An advanced script/web solution to track stolen Macs' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
An advanced script/web solution to track stolen Macs
Authored by: phoenixdownunder on Aug 30, '08 02:30:55AM

OK, this is good stuff. There are several issues several people have mentioned and I hope to add my 2 cents worth. First of all I had difficulty getting the script started until I noticed that the LaunchDaemon script had /private/etc/.cuploader/... in it. Change this to /etc/.cuploader/...
Now someone else said that that the screencapture section gave black screens and indeed this is true. To solve do the following.
Add in the line just above the macaddress line.

userpid=`(ps ax | grep loginwindow | head -1 | tail -1 | awk '{ print $1 }')`
(Yes I know it has some redundant commands in it...)

Then change the screencapture line to...

sudo launchctl bsexec $userpid /usr/sbin/screencapture -x -m "/Library/ColorSync/s"$safedate".png"

Note that I have shortened the screengrab name to just s because the final dated name that was produced was too long. Likewise change the names below to just s. Similarly I changed the isightcapture picture name to just p for the same reason. Be careful and change ALL references to screengrab and picture.

Finally I personally feel that we don't need the touch commands as they leave a trace that can be seen. Also the screengrabs and picture can be hidden in say /tmp rather than /Library/ColorSync or /Library/Preferences. But the script will have to be rewritten. I will try if version 3 doesn't come out soon!!

Finally, you need suitable server and not everyone has access to such resources. If there is a demand, I don't mind setting up a server and the necessary Mac Address files for interested users to use as long as the process is not abused. The ftp services can also be provided. If anyone has their machine stolen, a quick email can get their MAC.html files changed. Of course you will need your MACX address.

I also changed the echo IP command to
echo "IP: $externalip\nDate: $thedate\nComputerName: $computername\nSerial: $serialnumber\nBuiltInEthernet: $macaddress\nWhoIsLoggedIn: $whoisit\nUsers: $lastusers" >> "/Library/"$externalip
Note the backslash n \n to push everything to newlines... more readable.

All in all this is good stuff and is a very powerful concept.

[ Reply to This | # ]