<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>rainbowlazer &#187; recovered laptop</title>
	<atom:link href="http://rainbowlazer.com/tag/recovered-laptop/feed/" rel="self" type="application/rss+xml" />
	<link>http://rainbowlazer.com</link>
	<description>art, design &#38; new media technotes</description>
	<lastBuildDate>Tue, 21 Jun 2011 01:38:10 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Recovering a Stolen Mac Without Hurting Anyone&#8217;s Feelings</title>
		<link>http://rainbowlazer.com/scripting-programming/to-catch-a-thief-getting-back-a-stolen-laptop/</link>
		<comments>http://rainbowlazer.com/scripting-programming/to-catch-a-thief-getting-back-a-stolen-laptop/#comments</comments>
		<pubDate>Sat, 29 Mar 2008 19:43:32 +0000</pubDate>
		<dc:creator>Chris Reilly</dc:creator>
				<category><![CDATA[OS X]]></category>
		<category><![CDATA[Random]]></category>
		<category><![CDATA[Scripting & Programming]]></category>
		<category><![CDATA[recovered laptop]]></category>
		<category><![CDATA[stolen laptop]]></category>

		<guid isPermaLink="false">http://rainbowlazer.com/?p=28</guid>
		<description><![CDATA[




The situation: Steve* a former roommate of mine moved out, and left a box of things in our basement storage unit, including an old Apple iBook laptop. Even though our other three neighbors had access to the storage room, I wasn&#8217;t too worried about any of his stuff; the laptop was old, the battery &#38; [...]]]></description>
			<content:encoded><![CDATA[<p><script type="text/javascript"><!--
google_ad_client = "pub-9738136468704557";
google_ad_width = 468;
google_ad_height = 60;
google_ad_format = "468x60_as";
google_ad_type = "text";
google_ad_channel = "";
google_color_border = "FFFFFF";
google_color_bg = "FFFFFF";
google_color_link = "0066cc";
google_color_text = "000000";
google_color_url = "008000";
//-->
</script>
<script type="text/javascript"
  src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script></p>
<p align="center"><img src="http://www.artic.edu/~creill/stealer/photo-20.jpg" alt="This Computer Does Not Belong to you" /><img src="http://www.artic.edu/~creill/stealer/stealer2.png" alt="stealer2.png" /></p>
<p>The situation: Steve* a former roommate of mine moved out, and left a box of things in our basement storage unit, including an old Apple iBook laptop. Even though our other three neighbors had access to the storage room, I wasn&#8217;t too worried about any of his stuff; the laptop was old, the battery &amp; &#8216;Y&#8217; key were broken, etc. Plus I know all of my neighbors, they are all women in their mid-to-late 30&#8217;s and I had no reason to suspect any of them of doing anything&#8230; let&#8217;s just say &#8217;strange&#8217;.</p>
<p>At one point Steve sent a friend to pick up some stuff, and I assumed he had taken the laptop, because I noticed later that it wasn&#8217;t there any more.</p>
<p>I didn&#8217;t think anything more about it, since I never heard anything more from Steve. Until about a month ago, when I noticed that Steve&#8217;s laptop was connecting to our wireless network. I contacted him and confirmed that he did not have the laptop, nor did his friend. This pretty quickly led me to one conclusion: one of our neighbors had taken the laptop from our storage room, and was using it. On our network.</p>
<p>I found this situation to be pretty mind-blowing: that one of our adult neighbors would be so ignorant and unscrupulous as to take something and use it so flagrantly. It wasn&#8217;t so much the value of the computer that bothered me. The laptop, let&#8217;s face it, was a piece of shit. Beat up, old, and not containing any sensitive data, I would have had no problem loaning it out until Steve wanted it back. The principle of the situation was what really got under my skin: you don&#8217;t steal stuff from your neighbors, and if you do you certainly don&#8217;t advertise it to them!</p>
<p>Whoever had the laptop was basically waving a huge red flag saying, &#8220;I&#8217;m ignorant. Please take advantage of me.&#8221; At least that&#8217;s what first flashed through my mind&#45;&#45;­­visions of vengeful data-mining, FBI raids, etc. But after the initial shock wore off, I realized what a delicate situation this was. I certainly could not go about blindly accusing each of my neighbors in turn&#8211;this would only offend the two who were innocent, and produce a denial from the guilty one. I did consider calling the police, or using a packet-sniffer to maybe track down the email address of the culprit. But even that seemed a little harsh; pressing charges or going to elaborate lengths to embarrass the guilty neighbor would also probably lead to an awkward living situation.</p>
<p>I decided that my ideal approach was to let the thief know that I knew about the theft, and that they could return it to the storage room with no questions asked. And I would let them know in a firm yet polite fashion. By remotely breaking the shit out of that laptop.</p>
<p>Luckily I was able to get the login information from Steve, giving me pretty much unfettered access to his machine over our network. This was my plan: to put the machine into <a href="http://archive.macosxlabs.org/documentation/kiosk/configuration/config.html" target="_blank">kiosk mode</a>, disabling all other applications and interfaces save for one&#8211;a never-ending popup loop with a [polite] message commanding the return of the laptop.</p>
<p>To do this I needed to do a few things:</p>
<ul>
<li>Disable the Dock</li>
<li>Disable the Menu Bar</li>
<li>Replace the Finder with the popup-loop app</li>
</ul>
<p>I decided to start with the Finder-replacement App. I used Apple&#8217;s Script Editor to cobble the code snippet into an application bundle.</p>
<p align="center"><img src="http://www.artic.edu/~creill/stealer/picture-28.png" alt="picture-28.png" /></p>
<p>The bundle part is important, since it bundles an info.plist file with the script, which allows us to take control of the Dock and Menu Bar (We&#8217;ll get to that later).</p>
<p>Now to tell OS X to auto-start Stealer.app in place of Finder (which itself is an application), I placed Stealer.app in Steve&#8217;s Applications folder, then modified his com.apple.loginwindow.plist file (usually located in the Library/Preferences folder of the user&#8217;s Home directory) by adding the following lines:</p>
<p>&lt;key&gt;Finder&lt;/key&gt;<br />
&lt;string&gt;/Applications/Stealer.app&lt;/string&gt;</p>
<p align="center"><img src="http://www.artic.edu/~creill/stealer/picture-24.png" alt="picture-24.png" height="181" width="661" /></p>
<p>This code causes Stealer.app to automatically launch in place of Finder. This makes it basically impossible to quit Stealer.app or navigate to and start any other applications.</p>
<p>Next was to <a href="http://www.macosxhints.com/article.php?story=20070118003804854" target="_blank">hijack the Dock and Menu bar</a>. This makes it very hard to launch any other applications besides Stealer. I did this by editing Stealer&#8217;s info.plist file (control-click on Stealer.app, selecting Show Package Contents), adding the following lines, and keeping the tags in alphabetical order:</p>
<p>&lt;key&gt;<a href="http://developer.apple.com/documentation/MacOSX/Conceptual/BPRuntimeConfig/Articles/PListKeys.html#//apple_ref/doc/uid/20001431-113616" target="_blank">LSUIPresentationMode</a>&lt;/key&gt;<br />
&lt;integer&gt;4&lt;/integer&gt;</p>
<p align="center"><img src="http://www.artic.edu/~creill/stealer/picture-26.png" alt="picture-26.png" /></p>
<p>Since all these changes were taking place as the computer was running, and pretty well depended on it being restarted to work fully, I also took the precaution of moving all the Applications to a separate folder, then duplicating Stealer.app in the Applications folder, and renaming it iChat.app, iTunes.app, etc. This way the message would still appear without a restart. (I figured the surprise of realizing someone was remotely messing with your stolen computer would be enough to scare the thief into returning it.)</p>
<p>Two nights later, the laptop was back in the storage room, safe and sound. And later the same night, our upstairs neighbor coincidentally dropped by with a gift basket full of snacks, which she &#8216;just happened to have laying around, and thought we might like.&#8217; She just moved out today. :)</p>
<p><strong>Disclaimer: The solutions I came up with to deal with my situation are extremely specific and jury-rigged, and nowhere near foolproof. They are by no means the best solutions, they just happened to work in my situation. I wrote this post mostly because the situation was very weird, to the point of being comical, and it presented some opportunities to do some fun pseudo-hacking and learn a few things.</strong></p>
]]></content:encoded>
			<wfw:commentRss>http://rainbowlazer.com/scripting-programming/to-catch-a-thief-getting-back-a-stolen-laptop/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

