<?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>Schadenfreude &#187; hacking</title>
	<atom:link href="http://www.ralree.com/tag/hacking/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.ralree.com</link>
	<description>Malicious enjoyment derived from observing someone else's misfortune</description>
	<lastBuildDate>Sun, 28 Feb 2010 04:18:37 +0000</lastBuildDate>
	
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Implementing Mozilla&#8217;s Content Security Policy</title>
		<link>http://www.ralree.com/2009/06/30/implementing-mozillas-content-security-policy/</link>
		<comments>http://www.ralree.com/2009/06/30/implementing-mozillas-content-security-policy/#comments</comments>
		<pubDate>Tue, 30 Jun 2009 14:00:38 +0000</pubDate>
		<dc:creator>Erik</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[firefox]]></category>
		<category><![CDATA[hacking]]></category>
		<category><![CDATA[http]]></category>
		<category><![CDATA[scripts]]></category>
		<category><![CDATA[security]]></category>
		<category><![CDATA[site5]]></category>
		<category><![CDATA[vulnerability]]></category>
		<category><![CDATA[xss]]></category>

		<guid isPermaLink="false">http://www.ralree.com/?p=22601</guid>
		<description><![CDATA[I recently discovered this page, which describes Mozilla&#8217;s solution for prevention of XSS (Cross-Site Scripting) available as a Firefox Extension.  Here&#8217;s the HTTP response from my site:
hank@tardis:~$ wget -S http://www.ralree.com
--2009-06-30 09:52:13--  http://www.ralree.com/
Resolving www.ralree.com... 74.54.115.108
Connecting to www.ralree.com&#124;74.54.115.108&#124;:80... connected.
HTTP request sent, awaiting response...
 HTTP/1.1 200 OK
 Date: Tue, 30 Jun 2009 13:49:54 GMT
 Server: Apache/2.2.11 (Unix) mod_ssl/2.2.11 [...]]]></description>
			<content:encoded><![CDATA[<p>I recently discovered <a href="http://people.mozilla.org/~bsterne/content-security-policy/index.html">this page</a>, which describes Mozilla&#8217;s solution for prevention of XSS (Cross-Site Scripting) available as a Firefox Extension.  Here&#8217;s the HTTP response from my site:</p>
<pre>hank@tardis:~$ wget -S http://www.ralree.com
--2009-06-30 09:52:13--  http://www.ralree.com/
Resolving www.ralree.com... 74.54.115.108
Connecting to www.ralree.com|74.54.115.108|:80... connected.
HTTP request sent, awaiting response...
 HTTP/1.1 200 OK
 Date: Tue, 30 Jun 2009 13:49:54 GMT
 Server: Apache/2.2.11 (Unix) mod_ssl/2.2.11 OpenSSL/0.9.7a Phusion_Passenger/2.1.3
   mod_auth_passthrough/2.1 mod_bwlimited/1.4 FrontPage/5.0.2.2635
 X-Powered-By: PHP/5.2.8
 X-Pingback: http://www.ralree.com/newblog/xmlrpc.php
 Last-Modified: Tue, 30 Jun 2009 13:49:21 GMT
 <span style="color: #ff0000;">X-Content-Security-Policy: allow self; img-src *; object-src *.ralree.com
  *.ralree.info; script-src *.ralree.com *.ralree.info pagead2.googlesyndication.com
  friendfeed.com; style-src *.ralree.com *.ralree.info</span>
 Content-Length: 57457
 Keep-Alive: timeout=5, max=100
 Connection: Keep-Alive
 Content-Type: text/html; charset=UTF-8</pre>
<p>As you can see, my content security policy is sent as an HTTP header on all HTTP responses from my site.  I basically stole an example from <a href="http://people.mozilla.org/~bsterne/content-security-policy/details.html#examples">this page</a>.  I&#8217;ve attached it in the .htaccess file in my site&#8217;s root, before everything else in there, like so:</p>
<pre>&lt;IfModule mod_headers.c&gt;
Header set X-Content-Security-Policy "allow self; img-src *; object-src *.ralree.com *.ralree.info; script-src *.ralree.com *.ralree.info pagead2.googlesyndication.com friendfeed.com; style-src *.ralree.com *.ralree.info"
&lt;/IfModule&gt;</pre>
<p>I highly recommend everyone with commenting activated on their blog enable this, since XSS is a serious pain.  This seems to work very well on Site5, where mod_headers was simply enabled out of the box.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.ralree.com/2009/06/30/implementing-mozillas-content-security-policy/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Macbook Air hacked in under 2 minutes</title>
		<link>http://www.ralree.com/2008/03/30/macbook-air-hacked-in-under-2-minutes/</link>
		<comments>http://www.ralree.com/2008/03/30/macbook-air-hacked-in-under-2-minutes/#comments</comments>
		<pubDate>Sun, 30 Mar 2008 16:12:00 +0000</pubDate>
		<dc:creator>Erik</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[apple]]></category>
		<category><![CDATA[hacking]]></category>
		<category><![CDATA[macbook]]></category>
		<category><![CDATA[operating systems]]></category>
		<category><![CDATA[osx]]></category>
		<category><![CDATA[software]]></category>
		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://www.ralree.info/2008/03/30/macbook-air-hacked-in-under-2-minutes</guid>
		<description><![CDATA[So, at the PWN2OWN contest, a MacBook Air was hacked in under 2 minutes.  A Vista machine was also hacked a little later, but the Ubuntu machine stood strong despite various attempts.  Just goes to show that Macs are definitely not as invincible as many people keep saying they are&#8230;

]]></description>
			<content:encoded><![CDATA[<p>So, at the <a href="http://cansecwest.com/post/2008-03-20.21:33:00.CanSecWest_PWN2OWN_2008"><strong>PWN2OWN</strong></a> contest, a MacBook Air was <a href="http://www.tech2.com/india/news/software/macbook-air-hacked-in-under-2-minutes/32761/0">hacked</a> in under 2 minutes.  A Vista machine was also hacked a little later, but the Ubuntu machine stood strong despite various attempts.  Just goes to show that Macs are definitely not as invincible as many people keep saying they are&#8230;</p>
<p><img src="http://ralree.com/assets/2008/3/30/jobsmacbookair_1.JPG" alt="pwndBook Air"/></p>
]]></content:encoded>
			<wfw:commentRss>http://www.ralree.com/2008/03/30/macbook-air-hacked-in-under-2-minutes/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Disabling auto-off on a Sunbeam Health at Home heating pad</title>
		<link>http://www.ralree.com/2007/12/13/disabling-auto-off-on-the-sunbeam-health-at-home-heating-pad/</link>
		<comments>http://www.ralree.com/2007/12/13/disabling-auto-off-on-the-sunbeam-health-at-home-heating-pad/#comments</comments>
		<pubDate>Thu, 13 Dec 2007 01:29:00 +0000</pubDate>
		<dc:creator>Erik</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[electronics]]></category>
		<category><![CDATA[hacking]]></category>
		<category><![CDATA[modification]]></category>

		<guid isPermaLink="false">http://www.ralree.info/2009/01/19/disabling-auto-off-on-the-sunbeam-health-at-home-heating-pad</guid>
		<description><![CDATA[
WARNING!  DON&#8217;T BURN DOWN YOUR HOUSE!
USE CAUTION!  TRY AT YOUR OWN RISK!
YOU WILL VOID YOUR WARRANTY!


So, I got this heating pad at the store a while back to use as a hedgehog heating pad.  I found out that the 2-hour auto-off timer was hardcoded into the circuit, and they didn&#8217;t even bother [...]]]></description>
			<content:encoded><![CDATA[<div style="color: #FF5555; font-size: 20px;">
WARNING!  DON&#8217;T BURN DOWN YOUR HOUSE!<br />
USE CAUTION!  TRY AT YOUR OWN RISK!<br />
YOU WILL VOID YOUR WARRANTY!
</div>
<p><a href="http://ralree.com/assets/2007/12/13/DSCN0404.JPG"><img src="http://ralree.com/assets/2007/12/13/DSCN0404_medium.JPG" alt=""/></a></p>
<p>So, I got this heating pad at the store a while back to use as a hedgehog heating pad.  I found out that the 2-hour auto-off timer was hardcoded into the circuit, and they didn&#8217;t even bother to put a switch on the casing to disable it.  Typical overprotection of the consumer &#8211; this wouldn&#8217;t exist if our country was a bit less <a href="http://www.boingboing.net/2005/11/09/man-sues-for-getting.html">litigious</a>&#8230;</p>
<p>            <span id="more-6590"></span></p>
<div style="color: #FF5555; font-size: 20px;">
WARNING!  DON&#8217;T BURN DOWN YOUR HOUSE!<br />
USE CAUTION!  TRY AT YOUR OWN RISK!<br />
YOU WILL VOID YOUR WARRANTY!
</div>
<p><a href="http://ralree.com/assets/2007/12/13/DSCN0404.JPG"><img src="http://ralree.com/assets/2007/12/13/DSCN0404_medium.JPG" alt=""/></a></p>
<p>So, I got this heating pad at the store a while back to use as a hedgehog heating pad.  I found out that the 2-hour auto-off timer was hardcoded into the circuit, and they didn&#8217;t even bother to put a switch on the casing to disable it.  Typical overprotection of the consumer &#8211; this wouldn&#8217;t exist if our country was a bit less <a href="http://www.boingboing.net/2005/11/09/man-sues-for-getting.html">litigious</a>&#8230;</p>
<p>African hedgehogs need at least 72F to be happy, so a heating pad under the cage is recommended.  I mean, how could you <em>not</em> help this face?:</p>
<p><a href="http://ralree.com/assets/2007/12/13/P1010080.JPG"><img src="http://ralree.com/assets/2007/12/13/P1010080_medium.JPG" alt=""/></a></p>
<p>So, to disable it, I decided to take it apart and find the culprit like <a href="http://www.vitriol.com/howto/sunbeam.html">this guy</a> did.  It&#8217;s too bad that for some reason they decided to make it <strong>even harder</strong> to change this &#8220;feature.&#8221;  Here&#8217;s the outer casing:</p>
<p><a href="http://ralree.com/assets/2007/12/13/DSCN0407.JPG"><img src="http://ralree.com/assets/2007/12/13/DSCN0407_medium.JPG" alt=""/></a></p>
<p>Here is an overview of the circuit board:</p>
<p><a href="http://ralree.com/assets/2007/12/13/DSCN0412.JPG"><img src="http://ralree.com/assets/2007/12/13/DSCN0412_medium.JPG" alt=""/></a><br />
<a href="http://ralree.com/assets/2007/12/13/DSCN0414.JPG"><img src="http://ralree.com/assets/2007/12/13/DSCN0414_medium.JPG" alt=""/></a></p>
<p>It&#8217;s an Eagle LOPP4, and apparently it was made on Christmas of 2006 (2006-12-15)!  It also bears a marking of <code>07.28</code>, and I have no idea what that means.</p>
<p>So, the deal is that after a <strong><em>lot</strong></em> of trial and error, I finally found which single pin on the IC you have to cut.  I&#8217;ve circled the IC here:</p>
<p><a href="http://ralree.com/assets/2007/12/13/DSCN0415_2.JPG"><img src="http://ralree.com/assets/2007/12/13/DSCN0415_2_medium.JPG" alt=""/></a></p>
<h2>It&#8217;s PIN #2!</h2>
<p><a href="http://ralree.com/assets/2007/12/13/DSCN0415_zoomed.JPG"><img src="http://ralree.com/assets/2007/12/13/DSCN0415_zoomed_medium.JPG" alt=""/></a></p>
<p>OK, it actually isn&#8217;t #2 on the schematic, but in the picture it makes sense.  Just take a soldering iron and a sharp pointy object (I used a thumbtack), melt the solder, and pry the pin from the board.  Be careful not to touch pin #1 &#8211; if you disconnect it, it will turn off every 5 minutes!  Then, put the entire thing back together and celebrate!</p>
<p>I used the datasheet for the IC chip to figure out what pins to screw with.  I can&#8217;t find the number of the chip right now without tearing the whole thing apart again.  Basically, the chip is just a counter, and you cut one of the pins that makes it increment.  So simple.</p>
<p>Now I have a happy hedgehog.  He&#8217;ll never be cold again.</p>
<p><a href="http://ralree.com/assets/2007/12/13/DSCN0419.JPG"><img src="http://ralree.com/assets/2007/12/13/DSCN0419_medium.JPG" alt=""/></a></p>
<h2>Update (1/2009)</h2>
<p><a href="http://drop.io/plotsky">Nick V</a> has modified his <strong>Sunbeam Model 836</strong>.  For those interested, here&#8217;s his description of the mod:</p>
<blockquote>
<p>The chip is a CD4060 (14 stage ripple counter) on mine. They use it as count up timer to turn the ac to the heater coils off after two hours. I wired in a 10k resistor pullup to Vdd to pin 12 (master reset). This disables the counter function, and voila, no auto off!</p>
</blockquote>
<p>I went ahead and found the <a href="http://ralree.info/assets/2009/1/19/cd4060.pdf">datasheet</a> for all you kids looking to try this.  I extracted the one piece of information you probably need:</p>
<p><img src="http://ralree.info/assets/2009/1/19/4060.jpg" alt="Just a resistor!"/></p>
<p>Nice job, Nick!  Hats off to you!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.ralree.com/2007/12/13/disabling-auto-off-on-the-sunbeam-health-at-home-heating-pad/feed/</wfw:commentRss>
		<slash:comments>20</slash:comments>
		</item>
		<item>
		<title>Hacking a WRT54G v8 With DD-WRT</title>
		<link>http://www.ralree.com/2007/10/06/hacking-a-wrt54g-v8-with-dd-wrt/</link>
		<comments>http://www.ralree.com/2007/10/06/hacking-a-wrt54g-v8-with-dd-wrt/#comments</comments>
		<pubDate>Sat, 06 Oct 2007 15:20:00 +0000</pubDate>
		<dc:creator>Erik</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[ddwrt]]></category>
		<category><![CDATA[firmware]]></category>
		<category><![CDATA[guide]]></category>
		<category><![CDATA[hacking]]></category>
		<category><![CDATA[hardware]]></category>
		<category><![CDATA[howto]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[tutorial]]></category>
		<category><![CDATA[ubuntu]]></category>
		<category><![CDATA[wireless]]></category>

		<guid isPermaLink="false">http://www.ralree.info/2007/10/20/hacking-a-wrt54g-v8-with-dd-wrt</guid>
		<description><![CDATA[So, last month sometime, BrainSlayer got DD-WRT working on version 8 of the WRT54G.  Now this was great news to me when I read it since I’ve been wanting to get rid of the crappy LinkSys management from the beginning.  Some of the procedure worked, and some of it didn’t for me.
Do not [...]]]></description>
			<content:encoded><![CDATA[<p>So, last month sometime, BrainSlayer <a href="http://www.dd-wrt.com/phpBB2/viewtopic.php?t=20095">got DD-WRT working on version 8 of the WRT54G</a>.  Now this was great news to me when I read it since I’ve been wanting to get rid of the crappy LinkSys management from the beginning.  Some of the procedure worked, and some of it didn’t for me.</p>
<h2>Do not try this if you don’t know <strong>exactly</strong> what you’re getting into.</h2>
<p><span id="more-3914"></span></p>
<p>So, last month sometime, BrainSlayer <a href="http://www.dd-wrt.com/phpBB2/viewtopic.php?t=20095">got DD-WRT working on version 8 of the WRT54G</a>.  Now this was great news to me when I read it since I’ve been wanting to get rid of the crappy LinkSys management from the beginning.  Some of the procedure worked, and some of it didn’t for me.</p>
<h2>Do not try this if you don’t know <strong>exactly</strong> what you’re getting into.</h2>
<p>Here’s what I ended up doing:</p>
<ul>
<li>Go <a href="http://www.dd-wrt.com/dd-wrtv2/down.php?path=downloads%2Frelease+candidates%2FDD-WRT+v24+RC3%2FGENERIC+BROADCOM+%28Linksys%2C+Asus+etc.%29%2FWRT54Gv8%2C+WRT54GSv7/">here</a> and look at the state of things.</li>
<li>Read flashing.txt.  It helped me immensely.</li>
<li>Download <a href="http://www.dd-wrt.com/dd-wrtv2/downloads/release%20candidates/DD-WRT%20v24%20RC3/GENERIC%20BROADCOM%20(Linksys,%20Asus%20etc.)/WRT54Gv8,%20WRT54GSv7/dd-wrt.v24_micro_wrt54gv8.bin">the DD-WRT firmware</a> and the <a href="http://www.dd-wrt.com/dd-wrtv2/downloads/release%20candidates/DD-WRT%20v24%20RC3/GENERIC%20BROADCOM%20(Linksys,%20Asus%20etc.)/WRT54Gv8,%20WRT54GSv7/vxworkskillerGv8.bin">version 8 VXWorks killer</a> and put them in a safe place</li>
<li>I use Ubuntu, so at this point I installed tftp:</li>
</ul>
<pre><code>
sudo apt-get install tftp
</code></pre>
<ul>
<li>Go to the flashing dialog and flash the VXWorks killer firmware you got.</li>
<li>Once the router reboots, get a beer while it warms up.  This should take 1 to 2 minutes.</li>
<li>Unplug the router and plug it back in.</li>
<li>Wait while it boots (20 seconds).</li>
<li>Set your ip and default gateway:</li>
</ul>
<pre><code>
# Replace &lt;interface&gt; with whichever network interface you're using.
sudo ifconfig &lt;interface&gt; 192.168.1.100
sudo route add default gw 192.168.1.1
</code></pre>
<ul>
<li>Ping the router.  Hopefully this works…</li>
</ul>
<pre><code>
hank@rofl:~$ ping 192.168.1.1
PING 192.168.1.1 (192.168.1.1) 56(84) bytes of data.
64 bytes from 192.168.1.1: icmp_seq=1 ttl=64 time=0.792 ms
</code></pre>
<ul>
<li>Send the new firmware over.  Make sure to <strong><em>set your mode to octet!</em></strong><em></em> You should see a bunch of blinky lights on the router for a few seconds, then tftp should output the number of bytes transferred.</li>
</ul>
<pre><code>
hank@rofl:~$ tftp 192.168.1.1
tftp&gt; mode octet
tftp&gt; put dd-wrt.v24_micro_wrt54gv8.bin
</code></pre>
<ul>
<li>Get another beer.  While you do that, your firmware is being reflashed and DD-WRT is booting up.  You should see the power light go on, then off, then on again, then blink, then stay on.</li>
<li>You should be able to get DHCP now.  Try it:</li>
</ul>
<pre><code>
sudo dhclient &lt;interface&gt;
</code></pre>
<ul>
<li>If that worked, head over to http://192.168.1.1 to the admin console.</li>
<li>Change the settings to your liking.  <strong>The default account is root/admin</strong></li>
<li>Change the maximum connections to 4096 and the TCP and UDP timeouts to 90 each in the main Administration page.</li>
</ul>
<p>This should yield you an awesome setup.  I’m very happy with mine.</p>
<h3>References</h3>
<p><a href="http://lifehacker.com/software/router/hack-attack-turn-your-60-router-into-a-600-router-178132.php">Hack Attack: Turn your $60 router into a $600 router</a></p>
<h3>Files</h3>
<p>Oh, and just in case DD-WRT’s site goes down in the middle of the procedure (like it did to me), here are the files:</p>
<p><a href="http://ralree.info/assets/2007/10/6/dd-wrt.v24_micro_wrt54gv8.bin">Firmware</a><br />
<a href="http://ralree.info/assets/2007/10/6/vxworkskillerv8.bin">VXWorks Killer</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.ralree.com/2007/10/06/hacking-a-wrt54g-v8-with-dd-wrt/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>Wordpress is unsafe &#8211; pwned AGAIN!</title>
		<link>http://www.ralree.com/2007/03/03/wordpress-is-unsafe-pwned-again/</link>
		<comments>http://www.ralree.com/2007/03/03/wordpress-is-unsafe-pwned-again/#comments</comments>
		<pubDate>Sat, 03 Mar 2007 10:18:00 +0000</pubDate>
		<dc:creator>Erik</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[blog]]></category>
		<category><![CDATA[hacking]]></category>
		<category><![CDATA[security]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://www.ralree.info/2007/10/13/wordpress-is-unsafe-pwned-again</guid>
		<description><![CDATA[Well, it&#8217;s official:
Wordpress is a joke!!
Mephisto Wins!
]]></description>
			<content:encoded><![CDATA[<p>Well, it&#8217;s official:</p>
<h1>Wordpress is <a href="http://wordpress.org/development/2007/03/upgrade-212/">a joke!!</a></h1>
<p>Mephisto <strong>Wins!</strong></p>
]]></content:encoded>
			<wfw:commentRss>http://www.ralree.com/2007/03/03/wordpress-is-unsafe-pwned-again/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Microsoft gets H4X043&#124;}</title>
		<link>http://www.ralree.com/2006/06/18/microsoft-gets-h4x043/</link>
		<comments>http://www.ralree.com/2006/06/18/microsoft-gets-h4x043/#comments</comments>
		<pubDate>Sun, 18 Jun 2006 14:02:40 +0000</pubDate>
		<dc:creator>Erik</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[france]]></category>
		<category><![CDATA[hacking]]></category>
		<category><![CDATA[microsoft]]></category>

		<guid isPermaLink="false">http://www.ralree.info/2007/10/13/microsoft-gets-h4x043</guid>
		<description><![CDATA[So, I was stumbling and I came across this:
I must say that it&#8217;s really funny.  Shows how lame Microsoft really is.
]]></description>
			<content:encoded><![CDATA[<p>So, I was stumbling and I came across <a href="http://www.therawfeed.com/2006/06/microsoft-france-site-hacked.html">this</a>:</p>
<p>I must say that it&#8217;s really funny.  Shows how lame Microsoft really is.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.ralree.com/2006/06/18/microsoft-gets-h4x043/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

<!-- Dynamic Page Served (once) in 0.375 seconds -->
