<?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>Shai Perednik.com &#187; Proximity</title> <atom:link href="http://shaiperednik.com/tag/proximity/feed/" rel="self" type="application/rss+xml" /><link>http://shaiperednik.com</link> <description>IT Guru &#38; Developer</description> <lastBuildDate>Fri, 30 Dec 2011 13:52:36 +0000</lastBuildDate> <language>en</language> <sy:updatePeriod>hourly</sy:updatePeriod> <sy:updateFrequency>1</sy:updateFrequency> <generator>http://wordpress.org/?v=3.3.1</generator> <item><title>How to Crack a Wi-Fi Network&#8217;s WEP Password with BackTrack [Wi-Fi]</title><link>http://shaiperednik.com/2009/07/how-to-crack-a-wi-fi-networks-wep-password-with-backtrack-wi-fi/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=how-to-crack-a-wi-fi-networks-wep-password-with-backtrack-wi-fi</link> <comments>http://shaiperednik.com/2009/07/how-to-crack-a-wi-fi-networks-wep-password-with-backtrack-wi-fi/#comments</comments> <pubDate>Wed, 01 Jul 2009 20:40:07 +0000</pubDate> <dc:creator>System</dc:creator> <category><![CDATA[My Clippings]]></category> <category><![CDATA[amazon]]></category> <category><![CDATA[Linux]]></category> <category><![CDATA[Mac]]></category> <category><![CDATA[Proximity]]></category> <category><![CDATA[video]]></category> <category><![CDATA[wind]]></category> <category><![CDATA[XP]]></category><guid isPermaLink="false">http://shaiperednik.com/2009/07/how-to-crack-a-wi-fi-networks-wep-password-with-backtrack-wi-fi/</guid> <description><![CDATA[Automatically pulled from My Clippings on NewsGator Online You already know that if you want to lock down your Wi-Fi network, you should opt for WPA encryption because WEP is easy to crack. But did you know how easy? Take a look. Today we&#8217;re going to run down, step-by-step, how to crack a Wi-Fi network [...]]]></description> <content:encoded><![CDATA[<p>Automatically pulled from <a href="http://services.newsgator.com/ngws/svc/ClippingsRSS.aspx?uid=1639696">My Clippings on NewsGator Online</a></p><p><img src="http://shaiperednik.com/wp-content/plugins/wp-o-matic/cache/1675e_wepcrackbacktrack-head.png" width="500" height="225" style="display:block;" /> You already know that if you want to lock down your Wi-Fi network, you should <a href="http://lifehacker.com/386675/secure-your-home-wi+fi-network">opt for WPA encryption</a> because WEP is easy to crack. But did you know how easy? Take a look.</p><p>Today we&#8217;re going to run down, step-by-step, how to crack a Wi-Fi network with WEP security turned on. But first, a word: Knowledge is power, but power doesn&#8217;t mean you should be a jerk, or do anything illegal. Knowing <a href="http://lifehacker.com/399735/how-to-pick-a-lock-with-a-bump-key">how to pick a lock</a> doesn&#8217;t make you a thief. Consider this post educational, or a proof-of-concept intellectual exercise.</p><p>Dozens of tutorials on how to crack WEP are already all over the internet using this method. Seriously&mdash;Google it. This ain&#8217;t what you&#8217;d call &#8220;news.&#8221; But what is surprising is that someone like me, with minimal networking experience, can get this done with free software and a cheap Wi-Fi adapter. Here&#8217;s how it goes.</p><h3>What You&#8217;ll Need</h3><p><img src="http://shaiperednik.com/wp-content/plugins/wp-o-matic/cache/268ce_alfa_01.png" width="150" height="200" align="right">Unless you&#8217;re a computer security and networking ninja, chances are you don&#8217;t have all the tools on hand to get this job done. Here&#8217;s what you&#8217;ll need:</p><ul><li><b>A compatible wireless adapter</b>&mdash;This is the biggest requirement. You&#8217;ll need a wireless adapter that&#8217;s capable of packet injection, and chances are the one in your computer is not. After consulting with my friendly neighborhood security expert, I purchased an Alfa AWUS050NH USB adapter, pictured here, and it set me back about $50 on <a href="http://shaiperednik.com/tag/amazon/" class="st_tag internal_tag" rel="tag" title="Posts tagged with amazon">Amazon</a>. <a href="http://www.youtube.com/watch?v=oHq-cKoYcr8">The guy in this video</a> below is using a $12 model he bought on Ebay (and is even <a href="http://www.youtube.com/watch?v=bFlOHMj7Qoc">selling his router of choice</a>). You won&#8217;t go wrong with the Alfa, but do your research. There are <a href="http://www.aircrack-ng.org/doku.php?id=compatible_cards">plenty of resources on getting aircrack-compatible adapters out there</a>.</li><li><b><a href="http://www.remote-exploit.org/backtrack_download.html">A BackTrack 3 Live CD</a></b>. We already took you on a <a href="http://lifehacker.com/5166530/backtrack-is-a-security+focused-live-cd-packed-with-system-tools">full screenshot tour of how to install and use BackTrack 3</a>, the <a title="Click here to read more posts tagged LINUX LIVE CD" href="http://lifehacker.com/tag/linux-live-cd/">Linux Live CD</a> that lets you do all sorts of security testing and tasks. Download yourself a copy of the CD and burn it, or load it up in VMware to get started. (I tried the BackTrack 4 pre-release, and it didn&#8217;t work as well as BT3. Do yourself a favor and stick with BackTrack 3 for now.)</li><li><b>A nearby WEP-enabled Wi-Fi network.</b> The signal should be strong and ideally people are using it, connecting and disconnecting their devices from it. The more use it gets while you collect the data you need to run your crack, the better your chances of success.</li><li><b>Patience with the <a title="Click here to read more posts tagged COMMAND LINE" href="http://lifehacker.com/tag/command-line/">command line</a>.</b> This is an ten-step process that requires typing in long, arcane commands and waiting around for your Wi-Fi card to collect data in order to crack the password. Like the doctor said to the short person, be a little patient.</li></ul><h3>Crack That WEP</h3><p>To crack WEP, you&#8217;ll need to launch Konsole, BackTrack&#8217;s built-in command line. It&#8217;s right there on the taskbar in the lower left corner, second button to the right. Now, the commands.</p><p>First run the following to get a list of your network interfaces:</p><blockquote><p><code>airmon-ng</code></p></blockquote><p>The only one I&#8217;ve got there is labeled <code>ra0</code>. Yours may be different; take note of the label and write it down. From here on in, substitute it in everywhere a command includes (interface).</p><p>Now, run the following four commands. See the output that I got for them in the screenshot below.</p><blockquote><p><code><br /> airmon-ng stop (interface)<br /> ifconfig (interface) down<br /> macchanger --<a href="http://shaiperednik.com/tag/mac/" class="st_tag internal_tag" rel="tag" title="Posts tagged with Mac">mac</a> 00:11:22:33:44:55 (interface)<br /> airmon-ng start (interface)</code></p></blockquote><p><img src="http://shaiperednik.com/wp-content/plugins/wp-o-matic/cache/268ce_wepcrack01.png" width="800" height="600" style="display:block;float:none;" /> If you don&#8217;t get the same results from these commands as pictured here, most likely your network adapter won&#8217;t work with this particular crack. If you do, you&#8217;ve successfully &#8220;faked&#8221; a new MAC address on your network interface, 00:11:22:33:44:55.</p><p>Now it&#8217;s time to pick your network. Run:</p><blockquote><p><code>airodump-ng (interface)</code></p></blockquote><p>To see a list of wireless networks around you. When you see the one you want, hit Ctrl+C to stop the list. Highlight the row pertaining to the network of interest, and take note of two things: its BSSID and its channel (in the column labeled CH), as pictured below. Obviously the network you want to crack should have WEP encryption (in the ENC) column, not WPA or anything else.</p><p><img src="http://shaiperednik.com/wp-content/plugins/wp-o-matic/cache/268ce_wepcrack02.png" width="800" height="600" style="display:block;float:none;" /> Like I said, hit Ctrl+C to stop this listing. (I had to do this once or twice to find the network I was looking for.) Once you&#8217;ve got it, highlight the BSSID and copy it to your clipboard for reuse in the upcoming commands.</p><p>Now we&#8217;re going to watch what&#8217;s going on with that network you chose and capture that information to a file. Run:</p><blockquote><p><code>airodump-ng -c (channel) -w (file name) --bssid (bssid) (interface)</code></p></blockquote><p>Where (channel) is your network&#8217;s channel, and (bssid) is the BSSID you just copied to clipboard. You can use the Shift+Insert key combination to paste it into the command. Enter anything descriptive for (file name). I chose &#8220;yoyo,&#8221; which is the network&#8217;s name I&#8217;m cracking.</p><p><img src="http://shaiperednik.com/wp-content/plugins/wp-o-matic/cache/268ce_wepcrack03.png" width="800" height="600" style="display:block;float:none;" /></p><p>You&#8217;ll get output like what&#8217;s in the window in the background pictured below. Leave that one be. Open a new Konsole window in the foreground, and enter this command:</p><blockquote><p><code>aireplay-ng -1 0 -a (bssid) -h 00:11:22:33:44:55 -e (essid) (interface)</code></p></blockquote><p>Here the ESSID is the access point&#8217;s SSID name, which in my case is <code>yoyo</code>. What you want to get after this command is the reassuring &#8220;Association successful&#8221; message with that smiley face.</p><p><img src="http://shaiperednik.com/wp-content/plugins/wp-o-matic/cache/268ce_wepcrack04.png" width="800" height="600" style="display:block;float:none;" /></p><p>You&#8217;re almost there. Now it&#8217;s time for:</p><blockquote><p><code>aireplay-ng -3 -b (bssid) -h 00:11:22:33:44:55 (interface)</code></p></blockquote><p>Here we&#8217;re creating router traffic to capture more throughput faster to speed up our crack. After a few minutes, that front window will start going crazy with read/write packets. (Also, I was unable to surf the web with the <code>yoyo</code> network on a separate computer while this was going on.) Here&#8217;s the part where you might have to grab yourself a cup of coffee or take a walk. Basically you want to wait until enough data has been collected to run your crack. Watch the number in the &#8220;#Data&#8221; column&mdash;you want it to go above 10,000. (Pictured below it&#8217;s only at 854.)</p><p>Depending on the power of your network (mine is inexplicably low at -32 in that screenshot, even though the <code>yoyo</code> AP was in the same room as my adapter), this process could take some time. Wait until that #Data goes over 10k, though&mdash;because the crack won&#8217;t work if it doesn&#8217;t. In fact, you may need more than 10k, though that seems to be a working threshold for many.</p><p><img src="http://shaiperednik.com/wp-content/plugins/wp-o-matic/cache/cbeda_wepcrack05.png" width="800" height="600" style="display:block;float:none;" /></p><p>Once you&#8217;ve collected enough data, it&#8217;s the moment of truth. Launch a third Konsole window and run the following to crack that data you&#8217;ve collected:</p><blockquote><p><code>aircrack-ng -b (bssid) (file name-01.cap)</code></p></blockquote><p>Here the filename should be whatever you entered above for (file name). You can browse to your Home directory to see it; it&#8217;s the one with .cap as the extension.</p><p>If you didn&#8217;t get enough data, aircrack will fail and tell you to try again with more. If it succeeds, it will look like this:</p><p><img src="http://shaiperednik.com/wp-content/plugins/wp-o-matic/cache/cbeda_wepcrack-success.png" width="590" height="419" style="display:block;" /> The WEP key appears next to &#8220;KEY FOUND.&#8221; Drop the colons and enter it to log onto the network.</p><h3>Problems Along the Way</h3><p>With this article I set out to prove that cracking WEP is a relatively &#8220;easy&#8221; process for someone determined and willing to get the hardware and software going. I still think that&#8217;s true, but unlike the guy in the <a href="http://shaiperednik.com/tag/video/" class="st_tag internal_tag" rel="tag" title="Posts tagged with video">video</a> below, I had several difficulties along the way. In fact, you&#8217;ll notice that the last screenshot up there doesn&#8217;t look like the others&mdash;it&#8217;s because it&#8217;s not mine. Even though the AP which I was cracking was my own and in the same room as my Alfa, the power reading on the signal was always around -30, and so the data collection was very slow, and BackTrack would consistently crash before it was complete. After about half a dozen attempts (and trying BackTrack on both my Mac and PC, as a <a title="Click here to read more posts tagged LIVE CD" href="http://lifehacker.com/tag/live-cd/">live CD</a> and a virtual machine), I still haven&#8217;t captured enough data for aircrack to decrypt the key.</p><p>So while this process is easy in theory, your mileage may vary depending on your hardware, <a href="http://shaiperednik.com/tag/proximity/" class="st_tag internal_tag" rel="tag" title="Posts tagged with Proximity">proximity</a> to the AP point, and the way the planets are aligned. Oh yeah, and if you&#8217;re on deadline&mdash;Murphy&#8217;s Law almost guarantees it won&#8217;t work if you&#8217;re on deadline.</p><hr /><p>To see the video version of these exact instructions, check out this dude&#8217;s YouTube video.</p><p> <img src="http://shaiperednik.com/wp-content/plugins/wp-o-matic/cache/cbeda_kDD9PjiQ2_U.jpg"></p><p>Got any experience with the WEP cracking courtesy of BackTrack? What do you have to say about it? Give it up in the comments.</p><p><i><strong><a href="http://ginatrapani.org">Gina Trapani</a></strong>, Lifehacker&#8217;s founding editor, is tired of typing commands that start with &#8220;air.&#8221; Her weekly feature, <a href="http://lifehacker.com/tag/smarterware/">Smarterware</a>, appears every Wednesday on Lifehacker. Subscribe to the <a href="http://lifehacker.com/tag/smarterware/index.xml">Smarterware tag feed</a> to get new installments in your newsreader.</i></p><p><a href="http://ads.pheedo.com/click.phdo?s=6a1f86b6147176d304a08c7091b75dda&amp;p=1"><img alt="" style="border: 0;" border="0"></a><div> <a href="http://feeds.gawker.com/~ff/lifehacker/full?a=6TpPwNlhK9Y:7zOmQMyqh04:H0mrP-F8Qgo"><img src="http://shaiperednik.com/wp-content/plugins/wp-o-matic/cache/cbeda_full?d=H0mrP-F8Qgo" border="0"></img></a> <a href="http://feeds.gawker.com/~ff/lifehacker/full?a=6TpPwNlhK9Y:7zOmQMyqh04:yIl2AUoC8zA"><img src="http://shaiperednik.com/wp-content/plugins/wp-o-matic/cache/cbeda_full?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.gawker.com/~ff/lifehacker/full?a=6TpPwNlhK9Y:7zOmQMyqh04:D7DqB2pKExk"><img src="http://shaiperednik.com/wp-content/plugins/wp-o-matic/cache/cbeda_full?i=6TpPwNlhK9Y:7zOmQMyqh04:D7DqB2pKExk" border="0"></img></a> <a href="http://feeds.gawker.com/~ff/lifehacker/full?a=6TpPwNlhK9Y:7zOmQMyqh04:V_sGLiPBpWU"><img src="http://shaiperednik.com/wp-content/plugins/wp-o-matic/cache/b4a07_full?i=6TpPwNlhK9Y:7zOmQMyqh04:V_sGLiPBpWU" border="0"></img></a></div><p><img src="http://shaiperednik.com/wp-content/plugins/wp-o-matic/cache/b4a07_6TpPwNlhK9Y" height="1" width="1" /><br /> <a href="http://services.newsgator.com/ngws/svc/ClippingsRSS.aspx?uid=1639696">Go to Source</a></p><p><a href="http://shaiperednik.com/2009/07/how-to-crack-a-wi-fi-networks-wep-password-with-backtrack-wi-fi/" rel="bookmark">How to Crack a Wi-Fi Network&#8217;s WEP Password with BackTrack [Wi-Fi]</a> originally appeared on <a href="http://shaiperednik.com">Shai Perednik.com</a> on July 1, 2009.</p> ]]></content:encoded> <wfw:commentRss>http://shaiperednik.com/2009/07/how-to-crack-a-wi-fi-networks-wep-password-with-backtrack-wi-fi/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>Anti-Abuse Bus Stop Ad Only Batters Women When Nobody&#8217;s Looking [Advertising]</title><link>http://shaiperednik.com/2009/06/anti-abuse-bus-stop-ad-only-batters-women-when-nobodys-looking-advertising/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=anti-abuse-bus-stop-ad-only-batters-women-when-nobodys-looking-advertising</link> <comments>http://shaiperednik.com/2009/06/anti-abuse-bus-stop-ad-only-batters-women-when-nobodys-looking-advertising/#comments</comments> <pubDate>Fri, 26 Jun 2009 20:40:05 +0000</pubDate> <dc:creator>System</dc:creator> <category><![CDATA[My Clippings]]></category> <category><![CDATA[Photo]]></category> <category><![CDATA[Proximity]]></category><guid isPermaLink="false">http://shaiperednik.com/2009/06/anti-abuse-bus-stop-ad-only-batters-women-when-nobodys-looking-advertising/</guid> <description><![CDATA[Automatically pulled from My Clippings on NewsGator Online Amnesty International has installed a new anti-domestic-abuse ad fixture in Hamburg, Germany which is equal parts clever and shocking: when you look at the photo, it&#8217;s a smiling couple; when you look away, it&#8217;s a dude punchin&#8217; a lady. The billboard works by scanning its proximity with [...]]]></description> <content:encoded><![CDATA[<p>Automatically pulled from <a href="http://services.newsgator.com/ngws/svc/ClippingsRSS.aspx?uid=1639696">My Clippings on NewsGator Online</a></p><p><img src="http://shaiperednik.com/wp-content/plugins/wp-o-matic/cache/55512_domesticvio.jpg" width="804" height="568" style="display:block;float:none;" /><a title="Click here to read more posts tagged AMNESTY INTERNATIONAL" href="http://gizmodo.com/tag/amnesty-international/">Amnesty International</a> has installed a new anti-domestic-abuse ad fixture in Hamburg, Germany which is equal parts clever and shocking: when you look at the <a href="http://shaiperednik.com/tag/photo/" class="st_tag internal_tag" rel="tag" title="Posts tagged with Photo">photo</a>, it&#8217;s a smiling couple; when you look <em>away</em>, it&#8217;s a dude punchin&#8217; a lady.</p><p>The billboard works by scanning its <a href="http://shaiperednik.com/tag/proximity/" class="st_tag internal_tag" rel="tag" title="Posts tagged with Proximity">proximity</a> with an eye-tracking camera, which triggers an image switch on the display panel when it senses someone looking at it. The change only occurs after a brief delay, so that observers understand what&#8217;s going on, and get the message.</p><p>It&#8217;s a fantastically effective concept, and a brilliant use of technology. Kind of sad, then, that it&#8217;s probably award bait, and doomed to be a lone installation, according to Copyranter. [<a href="http://copyranter.blogspot.com/2009/06/high-tech-anti-domestic-violence.html">Copyranter</a> via <a href="http://dvice.com/archives/2009/06/bus-stop-ad-cha.php">Dvice</a>]</p><p><a href="http://ads.pheedo.com/click.phdo?s=ae8132168e36938f72d49caf43965197&amp;p=1"><img alt="" style="border: 0;" border="0" src="http://shaiperednik.com/wp-content/plugins/wp-o-matic/cache/55512_img.phdo?s=ae8132168e36938f72d49caf43965197&amp;p=1" /></a></p><p><a href="http://feedads.g.doubleclick.net/~a/Ir4TVkGgXMN4WMq8dmYiWOR0fkU/0/da"><img src="http://shaiperednik.com/wp-content/plugins/wp-o-matic/cache/8f9c2_di" border="0"></img></a><br /> <a href="http://feedads.g.doubleclick.net/~a/Ir4TVkGgXMN4WMq8dmYiWOR0fkU/1/da"><img src="http://shaiperednik.com/wp-content/plugins/wp-o-matic/cache/8f9c2_di" border="0"></img></a></p><div> <a href="http://feeds.gawker.com/~ff/gizmodo/full?a=hprLt5GEaSU:MXXxki85Vn0:H0mrP-F8Qgo"><img src="http://shaiperednik.com/wp-content/plugins/wp-o-matic/cache/44607_full?d=H0mrP-F8Qgo" border="0"></img></a> <a href="http://feeds.gawker.com/~ff/gizmodo/full?a=hprLt5GEaSU:MXXxki85Vn0:yIl2AUoC8zA"><img src="http://shaiperednik.com/wp-content/plugins/wp-o-matic/cache/44607_full?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.gawker.com/~ff/gizmodo/full?a=hprLt5GEaSU:MXXxki85Vn0:D7DqB2pKExk"><img src="http://shaiperednik.com/wp-content/plugins/wp-o-matic/cache/44607_full?i=hprLt5GEaSU:MXXxki85Vn0:D7DqB2pKExk" border="0"></img></a> <a href="http://feeds.gawker.com/~ff/gizmodo/full?a=hprLt5GEaSU:MXXxki85Vn0:V_sGLiPBpWU"><img src="http://shaiperednik.com/wp-content/plugins/wp-o-matic/cache/44607_full?i=hprLt5GEaSU:MXXxki85Vn0:V_sGLiPBpWU" border="0"></img></a></div><p><img src="http://shaiperednik.com/wp-content/plugins/wp-o-matic/cache/44607_hprLt5GEaSU" height="1" width="1" /><br /> <a href="http://services.newsgator.com/ngws/svc/ClippingsRSS.aspx?uid=1639696">Go to Source</a></p><p><a href="http://shaiperednik.com/2009/06/anti-abuse-bus-stop-ad-only-batters-women-when-nobodys-looking-advertising/" rel="bookmark">Anti-Abuse Bus Stop Ad Only Batters Women When Nobody&#8217;s Looking [Advertising]</a> originally appeared on <a href="http://shaiperednik.com">Shai Perednik.com</a> on June 26, 2009.</p> ]]></content:encoded> <wfw:commentRss>http://shaiperednik.com/2009/06/anti-abuse-bus-stop-ad-only-batters-women-when-nobodys-looking-advertising/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>How-To: Proximity Automation</title><link>http://shaiperednik.com/2009/06/how-to-proximity-automation/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=how-to-proximity-automation</link> <comments>http://shaiperednik.com/2009/06/how-to-proximity-automation/#comments</comments> <pubDate>Thu, 11 Jun 2009 20:03:47 +0000</pubDate> <dc:creator>Shai Perednik</dc:creator> <category><![CDATA[Uncategorized]]></category> <category><![CDATA[10.5.7]]></category> <category><![CDATA[Apple]]></category> <category><![CDATA[Bluetooth]]></category> <category><![CDATA[Mac]]></category> <category><![CDATA[Proximity]]></category> <category><![CDATA[Wallpaper]]></category><guid isPermaLink="false">http://shaiperednik.com/2009/06/how-to-proximity-automation/</guid> <description><![CDATA[Would you like to be able to use the magic of Bluetooth to automatically pause iTunes, set your away message in Adium, and lock the screen simply by standing up and walking away from your desk? Of course you would &#8212; it&#8217;s future-tastic (jetpacks not included)! Let&#8217;s take a look at how to pull this [...]]]></description> <content:encoded><![CDATA[<p><p class="excerpt">Would you like to be able to use the magic of <a href="http://shaiperednik.com/tag/bluetooth/" class="st_tag internal_tag" rel="tag" title="Posts tagged with Bluetooth">Bluetooth</a> to automatically pause iTunes, set your away message in Adium, and lock the screen simply by standing up and walking away from your desk? Of course you would &#8212; it&#8217;s future-tastic (jetpacks not included)! Let&#8217;s take a look at how to pull this off.</p></p><p><h3>What You&#8217;ll Need</h3></p><p><p>First you&#8217;ll need a copy of <a title="Proximity" href="http://reduxcomputing.com/proximity.php" target="_self">Proximity</a>, a handy (and free) little application which monitors your Bluetooth-enabled device and fires off AppleScripts when it leaves and enters connection range. As an added touch, we&#8217;ll also use a copy of <a title="DeskShade" href="http://macrabbit.com/deskshade/" target="_self">DeskShade</a> to lock and unlock the computer with style, leaving a nice away message displayed on the screen and opening a &#8220;Hacker Log&#8221; to display what activity took place while you were away. <span id="more-25332"></span></p></p><p><p>DeskShade actually does a lot more than just allow AppleScript to lock and unlock your screen. I won&#8217;t go into a full review of it here, but essentially, it will also help keep your desktop clean, your <a href="http://shaiperednik.com/tag/wallpaper/" class="st_tag internal_tag" rel="tag" title="Posts tagged with Wallpaper">wallpaper</a> fresh, and your mind uncluttered. If, however, you want to forgo the use of DeskShade, you can instead lock and unlock the computer by having AppleScript launch your screensaver and adjust the security settings required for waking it up. AppleScript files for both approaches <a href="http://a.theappleblog.com/downloads/scripts.zip">can be downloaded here (8kb, ZIP)</a>.</p></p><p><p><img class="aligncenter size-full wp-image-25330" title="Proximity_scripts" src="http://gigapple.files.wordpress.com/2009/06/scripts.png?w=427&#038;h=511" alt="Screenshot of the scripts used in this tutorial" width="427" height="511" /></p></p><p><h3>Getting Set Up</h3></p><p><p>Install <a href="http://shaiperednik.com/tag/proximity/" class="st_tag internal_tag" rel="tag" title="Posts tagged with Proximity">Proximity</a>, and from within the preferences pane select your Bluetooth device. I used my iPhone, but any &#8220;discoverable&#8221; device should work. In the AppleScript section link to <strong>OutofRange.scpt</strong> for when the device moves out of range and <strong>InRange.scpt</strong> for when it moves back in range. Make sure that monitoring is enabled and set a frequency for proximity checks &#8212; I used 60 seconds. If you decided not to go the DeskShade route, then just swap in the second set of scripts for that step above and skip ahead to the testing.</p></p><p><p>Install DeskShade and on the DeskLock tab set a password, enable AppleScript to unlock, set the Hacker Log to open after unlocking and set the away message to something appropriate. I used the same &#8220;More than 30ft away from my computer&#8221; message that is set in Adium via the out-of-range script.</p></p><p><p><img class="aligncenter size-full wp-image-25331" title="Proximity_desklock" src="http://gigapple.files.wordpress.com/2009/06/desklock.png?w=492&#038;h=579" alt="Proximity_desklock" width="492" height="579" /></p></p><p><h3>Future Perfect</h3></p><p><p>It&#8217;s as simple as that. Get up and take a walk around to test it out; by the time you get back, your computer should be unlocked, and you can have a look at the Hacker Log to see what happened while you were gone. Now all we need are jetpacks, flying cars, and a reliable way to prevent &#8220;sock-loss&#8221; when doing the laundry, and it will be future perfect.</p></p><p> via <a href="http://theappleblog.com/2009/06/11/how-to-proximity-automation/">theappleblog.com</a></p><p><a href="http://shaiperednik.com/2009/06/how-to-proximity-automation/" rel="bookmark">How-To: Proximity Automation</a> originally appeared on <a href="http://shaiperednik.com">Shai Perednik.com</a> on June 11, 2009.</p> ]]></content:encoded> <wfw:commentRss>http://shaiperednik.com/2009/06/how-to-proximity-automation/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> </channel> </rss>
<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Minified using disk: basic
Page Caching using disk: enhanced
Database Caching 2/16 queries in 0.003 seconds using disk: basic
Object Caching 762/789 objects using disk: basic

Served from: shaiperednik.com @ 2012-02-04 17:00:51 -->
