<?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>Kyle Anderson &#187; hacking</title>
	<atom:link href="http://xkyle.com/tag/hacking/feed/" rel="self" type="application/rss+xml" />
	<link>http://xkyle.com</link>
	<description></description>
	<lastBuildDate>Thu, 22 Jul 2010 04:54:17 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>Decrypting an eBook to make it Searchable</title>
		<link>http://xkyle.com/2009/06/11/decrypting-an-ebook-to-make-it-searchable/</link>
		<comments>http://xkyle.com/2009/06/11/decrypting-an-ebook-to-make-it-searchable/#comments</comments>
		<pubDate>Thu, 11 Jun 2009 20:23:43 +0000</pubDate>
		<dc:creator>Kyle Anderson</dc:creator>
				<category><![CDATA[Personal]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[drm]]></category>
		<category><![CDATA[ebook]]></category>
		<category><![CDATA[hacking]]></category>
		<category><![CDATA[imagemagick]]></category>

		<guid isPermaLink="false">http://xkyle.com/?p=364</guid>
		<description><![CDATA[So I spent $22 on an ebook for school. It has this crappy DRM that only lets me view the pdf on one computer using only &#8220;Adobe Digital Editions&#8221;. If that wasn&#8217;t so bad, only a small subset of the text is OCR&#8217;d, so most of it isn&#8217;t even searchable! Now I&#8217;m pissed, but wait, [...]]]></description>
			<content:encoded><![CDATA[<p>So I spent $22 on an <a href="http://www.diesel-ebooks.com/cgi-bin/item/0931541611/Voyage-of-Discovery-From-the-Big-Bang-to-the-Ice-Age-eBook.html">ebook</a> for school.</p>
<p>It has this crappy DRM that only lets me view the pdf on one computer using only &#8220;Adobe Digital Editions&#8221;.</p>
<p>If that wasn&#8217;t so bad, only a small subset of the text is OCR&#8217;d, so most of it isn&#8217;t even searchable!</p>
<p>Now I&#8217;m pissed, but wait, what do you say? These files are just RSA encrypted, and I have the key?</p>
<p>Some cool guy named <strong><a href="http://i-u2665-cabbages.blogspot.com/2009/02/circumventing-adobe-adept-drm-for-epub.html">i♥cabbages</a> </strong>has released code do extract your key, and then decrypt the file to a good ol&#8217; plain pdf. If you want to reproduce my steps you will need to use the <a href="http://www.cs.helsinki.fi/u/vahakang/ineptpdf.pyw">PDF decrypter</a> unless you have epubs.</p>
<p>So I use the tool and get a pdf, now I can use one of the most awesome tools in the world: <a href="http://en.wikipedia.org/wiki/ImageMagick">Imagemagick</a>.</p>
<p>Imagemagick can whip this pdf into shape. The first thing I&#8217;m going to do is convert each page into a tiff:</p>
<blockquote><p>$ convert -density 200 input.pdf[1-124] -depth 8 -monochrome %05d.tif</p></blockquote>
<p>Then I&#8217;m going to run tesseract-ocr on them to get the text:</p>
<blockquote><p>$ <span style="font-size: small;">for i in $(seq &#8211;format=%005.f 1 324)<br />
</span><span style="font-size: small;">do</span><span style="font-size: small;"><br />
tesseract $i.tif tesseract-$i -l eng<br />
done</span></p></blockquote>
<p>Now all I have to do is cat all the text together:</p>
<blockquote><p>cat *.txt &gt; output.txt</p></blockquote>
<p>Now I have a fully searchable, plain text file. Exactly what I wanted in the first place!</p>
<p>For the REAL magic, I use agrep to search for strings similar to provided example test questions to help &#8220;highlight&#8221; the answers. More technical details on that magic on <a href="http://wiki.xkyle.com/Answer_Finder">my wiki</a>.</p>
<p><a href="http://xkyle.com/wp-content/uploads/answer.JPG"><img class="alignnone size-medium wp-image-369" title="answer" src="http://xkyle.com/wp-content/uploads/answer-300x25.jpg" alt="answer" width="300" height="25" /></a></p>
<p><strong><strong><br />
</strong></strong></p>
]]></content:encoded>
			<wfw:commentRss>http://xkyle.com/2009/06/11/decrypting-an-ebook-to-make-it-searchable/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Verizon FiOS Wireless Security Analysis</title>
		<link>http://xkyle.com/2009/02/07/verizon-fios-wireless-security-analysis/</link>
		<comments>http://xkyle.com/2009/02/07/verizon-fios-wireless-security-analysis/#comments</comments>
		<pubDate>Sat, 07 Feb 2009 18:29:04 +0000</pubDate>
		<dc:creator>Kyle Anderson</dc:creator>
				<category><![CDATA[Personal]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[aircrack]]></category>
		<category><![CDATA[hacking]]></category>
		<category><![CDATA[nclug]]></category>
		<category><![CDATA[scripting]]></category>
		<category><![CDATA[wep]]></category>

		<guid isPermaLink="false">http://xkyle.com/?p=243</guid>
		<description><![CDATA[Take a look at some wireless keys that I&#8217;ve collected from some Verizon FiOS installs around Tampa: 00-18-01-EA-3D-99,E3X12,6,WEP,1801349FCA 00-18-01-F0-6D-C4,NAMX2,1,WEP,18014B311F 00-18-01-F0-95-78,MWXV2,11,WEP,180149FF66 00-18-01-FD-4F-0E,R0LC7,1,WEP,1801BC5C6B 00-18-01-FE-15-46,JE2K7,1,WEP,1801C1B02B 00-18-01-FF-DF-DD,HH150,1,WEP,1F900396C5 00-1F-90-E0-B1-F8,3RA18,6,WEP,1801CDF4AF 00-1F-90-E0-B5-AC,OQ838,6,WEP,1801CF5700 00-1F-90-E2-7E-61,7WY20,6,WEP,1F90021D27 00-1F-90-E3-1E-90,C7WA0,6,WEP,1F9007C188 00-1F-90-E3-2E-07,DJP80,6,WEP,1F90063349 00-1F-90-E6-A7-D5,BJ2Z0,11,WEP,1F9018F797 00-1F-90-E6-D4-E3,RSHZ0,4,WEP,1F901944DB What you are looking at here is MAC, SSID, Channel, Encryption, Key. Notice that they are all WEP, 64bit, with 5 Alpha numeric SSID&#8217;s. I [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://xkyle.com/wp-content/uploads/verizon_fios_250.jpg"><img class="alignnone size-medium wp-image-244" title="verizon_fios_250" src="http://xkyle.com/wp-content/uploads/verizon_fios_250.jpg" alt="" width="250" height="72" /></a></p>
<p>Take a look at some wireless keys that I&#8217;ve collected from some Verizon FiOS installs around Tampa:</p>
<blockquote><p>00-18-01-EA-3D-99,E3X12,6,WEP,1801349FCA<br />
00-18-01-F0-6D-C4,NAMX2,1,WEP,18014B311F<br />
00-18-01-F0-95-78,MWXV2,11,WEP,180149FF66<br />
00-18-01-FD-4F-0E,R0LC7,1,WEP,1801BC5C6B<br />
00-18-01-FE-15-46,JE2K7,1,WEP,1801C1B02B<br />
00-18-01-FF-DF-DD,HH150,1,WEP,1F900396C5<br />
00-1F-90-E0-B1-F8,3RA18,6,WEP,1801CDF4AF<br />
00-1F-90-E0-B5-AC,OQ838,6,WEP,1801CF5700<br />
00-1F-90-E2-7E-61,7WY20,6,WEP,1F90021D27<br />
00-1F-90-E3-1E-90,C7WA0,6,WEP,1F9007C188<br />
00-1F-90-E3-2E-07,DJP80,6,WEP,1F90063349<br />
00-1F-90-E6-A7-D5,BJ2Z0,11,WEP,1F9018F797<br />
00-1F-90-E6-D4-E3,RSHZ0,4,WEP,1F901944DB</p></blockquote>
<p>What you are looking at here is MAC, SSID, Channel, Encryption, Key.</p>
<p>Notice that they are all WEP, 64bit, with 5 Alpha numeric SSID&#8217;s.</p>
<p>I want to emphasize that these are the defaults, and only geeks, nerds and the like change the defaults. <img src='http://xkyle.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>Here is a typical type of router (actiontec) that does this:</p>
<p><a href="http://xkyle.com/wp-content/uploads/mi424wr.gif"><img class="alignnone size-medium wp-image-245" title="mi424wr" src="http://xkyle.com/wp-content/uploads/mi424wr-300x216.gif" alt="" width="300" height="216" /></a></p>
<p>Take a real close look at two of the examples:</p>
<blockquote><p>00-18-01-FE-15-46,JE2K7,1,WEP,1801C1B02B<br />
00-1F-90-E2-7E-61,7WY20,6,WEP,1F90021D27</p></blockquote>
<p>Notice the relationship the MAC and the key have. Let me split up the bytes for you:</p>
<blockquote><p>00:18:01:FE:15:46   -  18:01:C1:B0:2B</p></blockquote>
<p>Verizon, or Actiontec, or someone is setting the first byte of the 40bit key to the second byte of the MAC of the unit. And then they are setting the second byte of the key to the third byte of the MAC!</p>
<p>You can look on the list, and this is mostly the case, there is some overlap on the OIDs. (sometimess it is 1801, sometimes 1f90) Why is this useful? Well if you know it is a FiOS install, you have already decreased your &#8220;64bit&#8221; key to a real &#8220;40bit&#8221; key, and you already know 16 bits of it, so you only have to crack 24 bits. This is insane. This is like guessing 3 letters.</p>
<p>The way to use this is with the <a href="http://www.aircrack-ng.org">Aircrack-ng</a> program. Capture some packets, and use the -d option to tell it what the key starts with.</p>
<blockquote><p>aircrack-ng -d 1801 stupid-fios.cap</p></blockquote>
<p>You will get the key in No time! Silly Verizon, you didn&#8217;t think we would notice you weren&#8217;t using constructed (not random) keys?</p>
<p>Have FiOS yourself? Want to share your MAC and default key in the comments? <img src='http://xkyle.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<blockquote></blockquote>
]]></content:encoded>
			<wfw:commentRss>http://xkyle.com/2009/02/07/verizon-fios-wireless-security-analysis/feed/</wfw:commentRss>
		<slash:comments>23</slash:comments>
		</item>
		<item>
		<title>Giving My WRT54GL a 2G Drive</title>
		<link>http://xkyle.com/2008/12/06/giving-my-wrt54gl-a-2g-drive/</link>
		<comments>http://xkyle.com/2008/12/06/giving-my-wrt54gl-a-2g-drive/#comments</comments>
		<pubDate>Sat, 06 Dec 2008 22:05:55 +0000</pubDate>
		<dc:creator>Kyle Anderson</dc:creator>
				<category><![CDATA[linux]]></category>
		<category><![CDATA[wrt54g]]></category>
		<category><![CDATA[hacking]]></category>
		<category><![CDATA[hardware]]></category>
		<category><![CDATA[linksys]]></category>
		<category><![CDATA[nclug]]></category>

		<guid isPermaLink="false">http://xkyle.com/?p=178</guid>
		<description><![CDATA[The WRT54GL is a pretty cool little toy. Yes it is a router with a cheezy web interface for grandmas with ESSID&#8217;s named &#8220;linksys&#8221;. But you can flash it with your own linux and solder in your own SD card to turn it from a 4MB machine to a 2GB machine&#8230; far out! Above it [...]]]></description>
			<content:encoded><![CDATA[<p>The <a href="http://en.wikipedia.org/wiki/Linksys_WRT54G_series">WRT54GL</a> is a pretty cool little toy. Yes it is a router with a cheezy web interface for grandmas with ESSID&#8217;s named &#8220;linksys&#8221;. But you can flash it with your own linux and solder in your own SD card to turn it from a 4MB machine to a 2GB machine&#8230; far out!</p>
<p><a href="http://xkyle.com/wp-content/uploads/imag0053.jpg"><img class="aligncenter size-medium wp-image-179" title="imag0053" src="http://xkyle.com/wp-content/uploads/imag0053-300x225.jpg" alt="" width="300" height="225" /></a></p>
<p>Above it the bare board that I&#8217;ve unscrewed out of the thing. Some solder + a card&#8230;..</p>
<p><a href="http://xkyle.com/wp-content/uploads/imag0060.jpg"><img class="aligncenter size-medium wp-image-180" title="imag0060" src="http://xkyle.com/wp-content/uploads/imag0060-300x225.jpg" alt="" width="300" height="225" /></a></p>
<p>Now we are talking. For the record this thing is exremely well documented and has a large userbase. I had no problems figureing out how to solder this in. If you want to go to the source of this type of documentation:</p>
<p><a href="http://wiki.openwrt.org/OpenWrtDocs/Hardware/Linksys/WRT54GL">http://wiki.openwrt.org/OpenWrtDocs/Hardware/Linksys/WRT54GL</a></p>
<p>Now all I have to do is format and mount it&#8230;</p>
<p><a href="http://xkyle.com/wp-content/uploads/screenshot-kylekyle-home.png"><img class="aligncenter size-medium wp-image-181" title="screenshot-kylekyle-home" src="http://xkyle.com/wp-content/uploads/screenshot-kylekyle-home-300x216.png" alt="" width="300" height="216" /></a></p>
<p>Holy cow it worked. 2G. Now all I have to do is <a href="http://wiki.openwrt.org/OpenWrtDocs/KamikazeConfiguration/PackagesOnExternalMediaHowTo">chroot into it</a>. Doing a time on a DD gives about 160kBytes/Second. Now I will turn this into something amazing&#8230;&#8230;..</p>
]]></content:encoded>
			<wfw:commentRss>http://xkyle.com/2008/12/06/giving-my-wrt54gl-a-2g-drive/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Minified using disk
Page Caching using disk (enhanced)
Database Caching 14/20 queries in 0.034 seconds using disk

Served from: xkyle.com @ 2010-07-31 23:47:17 -->