<?xml version="1.0" encoding="utf-8" ?>

<rss version="2.0" 
   xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
   xmlns:admin="http://webns.net/mvcb/"
   xmlns:dc="http://purl.org/dc/elements/1.1/"
   xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
   xmlns:wfw="http://wellformedweb.org/CommentAPI/"
   xmlns:content="http://purl.org/rss/1.0/modules/content/"
   >
<channel>
    <title>nyquil.org (Entries tagged as hacking)</title>
    <link>http://nyquil.org/</link>
    <description></description>
    <dc:language>en</dc:language>
    <generator>Serendipity 1.3.1 - http://www.s9y.org/</generator>
    <managingEditor>jer@nyquil.org</managingEditor>

    <image>
        <url>http://nyquil.org/uploads/nyquil-logo-small.png</url>
        <title>RSS: nyquil.org - </title>
        <link>http://nyquil.org/</link>
        <width>144</width>
        <height>40</height>
    </image>

<item>
    <title>Helpful Hacks: tricking Google Buzz into letting you in</title>
    <link>http://nyquil.org/archives/1238-Helpful-Hacks-tricking-Google-Buzz-into-letting-you-in.html</link>
    
    <comments>http://nyquil.org/archives/1238-Helpful-Hacks-tricking-Google-Buzz-into-letting-you-in.html#comments</comments>
    <wfw:comment>http://nyquil.org/wfwcomment.php?cid=1238</wfw:comment>

    <slash:comments>2</slash:comments>
    <wfw:commentRss>http://nyquil.org/rss.php?version=2.0&amp;type=comments&amp;cid=1238</wfw:commentRss>
    

    <author>nospam@example.com (jer@nyquil.org)</author>
    <content:encoded>
    &lt;img src="http://nyquil.org/spacer.gif" hspace="5" align="right"&gt;	&lt;p&gt;Want to play with Google Buzz before they get it rolled out to your GMail?&lt;/p&gt;

	&lt;p&gt;The magic of Google Chrome can hook you up.&lt;/p&gt;

	&lt;p&gt;Create a shortcut to Google Chrome on your desktop, righ-tclick on it, select Properties, and then paste this after everything in the &amp;#8216;Target&amp;#8217; field:&lt;blockquote&gt; &amp;#8212;user-agent=&amp;#8220;Mozilla/5.0 (Linux; U; Android 2.0.1; en-us; Droid Build/ESD56) AppleWebKit/530.17 (&lt;span class=&quot;caps&quot;&gt;KHTML&lt;/span&gt;, like Gecko) Version/4.0 Mobile Safari/530.17&amp;#8221;&lt;/blockquote&lt;/p&gt;

	&lt;p&gt;(That&amp;#8217;s two dashes before user-agent, not a hyphen. I can&amp;#8217;t figure out how to get my auto-formatting to display it properly. Also, you might need to replace the quotes with non-&amp;#8220;smartquotes.&amp;#8221; Smartquotes are &lt;span class=&quot;caps&quot;&gt;DUMB&lt;/span&gt;.)&lt;/p&gt;

	&lt;p&gt;Then go to m.google.com and click on Buzz. This will, however, make all pages Chrome loads behave as if you&amp;#8217;re browsing them from a Motorola Droid, so it&amp;#8217;s advisable to make another desktop shortcut with user-agent=&amp;#8221;&amp;#8220; to reset everything.&lt;/p&gt; &lt;p&gt;&lt;a href="http://nyquil.org/archives/1238-Helpful-Hacks-tricking-Google-Buzz-into-letting-you-in.html#comments"&gt;&lt;img src="http://nyquil.org:81/commentimage2.php?id=1238" border=0 align="right"&gt;&lt;/a&gt;&lt;/p&gt;
    </content:encoded>

    <pubDate>Tue, 09 Feb 2010 16:03:33 -0800</pubDate>
    <guid isPermaLink="false">http://nyquil.org/archives/1238-guid.html</guid>
    <category>google</category>
<category>google buzz</category>
<category>google chrome</category>
<category>hacking</category>
<category>howto</category>

</item>
<item>
    <title>Converting Amazon Kindle For PC Books Now Possible</title>
    <link>http://nyquil.org/archives/1235-Converting-Amazon-Kindle-For-PC-Books-Now-Possible.html</link>
    
    <comments>http://nyquil.org/archives/1235-Converting-Amazon-Kindle-For-PC-Books-Now-Possible.html#comments</comments>
    <wfw:comment>http://nyquil.org/wfwcomment.php?cid=1235</wfw:comment>

    <slash:comments>97</slash:comments>
    <wfw:commentRss>http://nyquil.org/rss.php?version=2.0&amp;type=comments&amp;cid=1235</wfw:commentRss>
    

    <author>nospam@example.com (jer@nyquil.org)</author>
    <content:encoded>
    &lt;img src="http://nyquil.org/spacer.gif" hspace="5" align="right"&gt;	&lt;p&gt;&lt;span class=&quot;caps&quot;&gt;UPDATE&lt;/span&gt; 2/11/2010: Updated the included unswindle to the latest version, fixes errors on unDRMed books.&lt;br /&gt;
&lt;span class=&quot;caps&quot;&gt;UPDATE&lt;/span&gt; 2/27/2010: Added specification that users install the 32-bit version of python 2.6 for Windows, even on 64-bit systems.&lt;br /&gt;
&lt;span class=&quot;caps&quot;&gt;UPDATE&lt;/span&gt; 4/30/2010: Added link to older version of Kindle for PC&lt;/p&gt;

	&lt;p&gt;People have been asking me if there&amp;#8217;s a way to convert Kindle books downloaded with Amazon&amp;#8217;s Kindle For PC application pretty much since the day it was released. Sadly, despite a lot of tinkering on my part, there was no elegant solution&lt;sup&gt;*&lt;/sup&gt; until now.&lt;/p&gt;

	&lt;p&gt;&lt;a href=&quot;http://i-u2665-cabbages.blogspot.com/2009/12/circumventing-kindle-for-pc-drm.html#&quot;&gt;A fantastic Kindle For PC conversion tool has been made.&lt;/a&gt; And it works really, really well. And it is significantly easier than the old &amp;#8220;Kindle-only&amp;#8221; method. &lt;/p&gt;

	&lt;p&gt;Here&amp;#8217;s how it works:&lt;/p&gt;

	&lt;p&gt;0) Install Kindle for PC. The latest version of Kindle for PC has broken the scripts, so install &lt;a href=&quot;http://dl.dropbox.com/u/2992929/KindleForPC-installer.exe&quot;&gt;this older version&lt;/a&gt;, and make sure you disable automatic updates in Kindle for PC&amp;#8217;s settings.&lt;/p&gt;

	&lt;p&gt;1) Install &lt;b&gt;32-bit&lt;/b&gt; python 2.6 for Windows from here (even if your system is 64-bit you need the 32-bit version in order for this to work) : &lt;a href=&quot;http://www.python.org/download/&quot;&gt;http://www.python.org/download/&lt;/a&gt;&lt;/p&gt;

	&lt;p&gt;2) Download &lt;a href=&quot;http://nyquil.org/uploads/unswindle.zip&quot;&gt;unswindle.pyw and mobidedrm.py via this zip file&lt;/a&gt; and unzip it somewhere on your PC&lt;/p&gt;

	&lt;p&gt;3) Open the unzipped folder and double-click unswindle.pyw&lt;/p&gt;

	&lt;p&gt;Kindle For PC will now open. &lt;/p&gt;

	&lt;p&gt;4) Select the book you want to convert.&lt;/p&gt;

	&lt;p&gt;5) When the book loads, simply exit Kindle For PC&lt;/p&gt;

	&lt;p&gt;A &amp;#8216;Save&amp;#8217; dialog will open asking you where you want to save your new decrypted .mobi file. And we&amp;#8217;re done.&lt;/p&gt;

	&lt;p&gt;(As it uses mobidedrm, it still won&amp;#8217;t work on Topaz/.tpz files, and the first one I tried happened to be one. Still, most books will work.)&lt;/p&gt;

	&lt;p&gt;&lt;hr /&gt;&lt;br /&gt;
&lt;b&gt;*&lt;/b&gt;: I did work out a scheme wherein you record video of your desktop, scroll through the book in Kindle For PC, remove all duplicate frames from the resultant video and then convert to &lt;span class=&quot;caps&quot;&gt;PDF&lt;/span&gt;, but it was rather unwieldy.&lt;/p&gt; &lt;p&gt;&lt;a href="http://nyquil.org/archives/1235-Converting-Amazon-Kindle-For-PC-Books-Now-Possible.html#comments"&gt;&lt;img src="http://nyquil.org:81/commentimage2.php?id=1235" border=0 align="right"&gt;&lt;/a&gt;&lt;/p&gt;
    </content:encoded>

    <pubDate>Wed, 23 Dec 2009 09:03:58 -0800</pubDate>
    <guid isPermaLink="false">http://nyquil.org/archives/1235-guid.html</guid>
    <category>drm</category>
<category>hacking</category>
<category>howto</category>
<category>kindle</category>

</item>
<item>
    <title>Google Apps on Open Source Android: I Propose a Work-around to Google's Licensing</title>
    <link>http://nyquil.org/archives/1232-Google-Apps-on-Open-Source-Android-I-Propose-a-Work-around-to-Googles-Licensing.html</link>
    
    <comments>http://nyquil.org/archives/1232-Google-Apps-on-Open-Source-Android-I-Propose-a-Work-around-to-Googles-Licensing.html#comments</comments>
    <wfw:comment>http://nyquil.org/wfwcomment.php?cid=1232</wfw:comment>

    <slash:comments>0</slash:comments>
    <wfw:commentRss>http://nyquil.org/rss.php?version=2.0&amp;type=comments&amp;cid=1232</wfw:commentRss>
    

    <author>nospam@example.com (jer@nyquil.org)</author>
    <content:encoded>
    &lt;img src="http://nyquil.org/spacer.gif" hspace="5" align="right"&gt;	&lt;p&gt;Lest everyone think I&amp;#8217;m a total Google Fanboy, I&amp;#8217;d like to suggest a really, really simple tactic folks like Cyanogen can take to continue Android innovations while complying 100% with the licensing of Google&amp;#8217;s &amp;#8220;experience&amp;#8221; apps.&lt;/p&gt;

	&lt;p&gt;The crux of the issue is that, without the proper license, it is illegal for Android &lt;span class=&quot;caps&quot;&gt;ROM&lt;/span&gt; developers to distribute these apps as part of their ROMs.  It&amp;#8217;d also be illegal for someone like me to host them myself so that people can simply install them after installing a custom &lt;span class=&quot;caps&quot;&gt;ROM&lt;/span&gt;.   &amp;#8220;Ok,&amp;#8221; you might say.  &amp;#8220;Then how am I supposed to &lt;i&gt;get&lt;/i&gt; these applications if it&amp;#8217;s not legal for anyone to give them to me?&amp;#8221;&lt;/p&gt;

	&lt;p&gt;Ah, but there&amp;#8217;s the catch.  There are organizations that &lt;i&gt;are&lt;/i&gt; licensed to distribute them.  T-Mobile, for instance, is probably the most widely-known, as all our phones will download updates containing the apps whenever a new Android release comes out.  Usually there&amp;#8217;s a bit of detective work involved, though, in determining the &lt;span class=&quot;caps&quot;&gt;URL&lt;/span&gt; for these updates.  But you know who &lt;i&gt;else&lt;/i&gt; is licensed to distribute them, and makes them extremely easy to find/download?  &lt;a href=&quot;http://www.htc.com/www/support/android/adp.html#s3&quot;&gt;HTC&lt;/a&gt;.&lt;/p&gt;

	&lt;p&gt;What would need to happen is that the user could themselves download the relevant firmware update file from HTC&amp;#8217;s website and save it on their SD card &amp;#8212; which is perfectly legal.  The user could then update to a Google-free firmware from someone like Cyanogen.  If this Google-free firmware update happened to check for the existence of the official Google-app-including firmware image as part of its setup procedure, and extracted the Google bits out of it, everyone could have the best of both worlds.&lt;/p&gt;

	&lt;p&gt;The &lt;span class=&quot;caps&quot;&gt;ROM&lt;/span&gt; developer would not be distributing the apps.  The organization that &lt;i&gt;is&lt;/i&gt; distributing the apps is licensed to do so.  Everyone wins.&lt;/p&gt;

 &lt;p&gt;&lt;a href="http://nyquil.org/archives/1232-Google-Apps-on-Open-Source-Android-I-Propose-a-Work-around-to-Googles-Licensing.html#comments"&gt;&lt;img src="http://nyquil.org:81/commentimage2.php?id=1232" border=0 align="right"&gt;&lt;/a&gt;&lt;/p&gt;
    </content:encoded>

    <pubDate>Sat, 26 Sep 2009 10:01:01 -0700</pubDate>
    <guid isPermaLink="false">http://nyquil.org/archives/1232-guid.html</guid>
    <category>android</category>
<category>hacking</category>
<category>i solved it</category>
<category>open source</category>

</item>
<item>
    <title>hack hack hack</title>
    <link>http://nyquil.org/archives/1159-hack-hack-hack.html</link>
    
    <comments>http://nyquil.org/archives/1159-hack-hack-hack.html#comments</comments>
    <wfw:comment>http://nyquil.org/wfwcomment.php?cid=1159</wfw:comment>

    <slash:comments>1</slash:comments>
    <wfw:commentRss>http://nyquil.org/rss.php?version=2.0&amp;type=comments&amp;cid=1159</wfw:commentRss>
    

    <author>nospam@example.com (jer@nyquil.org)</author>
    <content:encoded>
    &lt;img src="http://nyquil.org/spacer.gif" hspace="5" align="right"&gt;	&lt;p&gt;Spent today&amp;#8217;s meager amount of free time on &lt;span class=&quot;caps&quot;&gt;IRC&lt;/span&gt; conspiring with several of the best minds in the game when it comes to the sort of cat-and-mouse activities we seem to revel in playing.&lt;/p&gt;

	&lt;p&gt;We&amp;#8217;re a strange breed, us mice; for most people a new phone means freedom and mobility.  When people like US get new phones, however, the first thing we do is spend days online in chatrooms, our &lt;span class=&quot;caps&quot;&gt;USB&lt;/span&gt; cables running betwixt handsets and computers, ideas, schemes and crazy things to try typed furiously to the mice on the other side of the chat window.  Hours and days spent so that we can do things from our phones that we are already at home doing from our computers.&lt;/p&gt;

	&lt;p&gt;This irony is something that I&amp;#8217;m perfectly OK with.&lt;/p&gt; &lt;p&gt;&lt;a href="http://nyquil.org/archives/1159-hack-hack-hack.html#comments"&gt;&lt;img src="http://nyquil.org:81/commentimage2.php?id=1159" border=0 align="right"&gt;&lt;/a&gt;&lt;/p&gt;
    </content:encoded>

    <pubDate>Tue, 11 Nov 2008 21:15:35 -0800</pubDate>
    <guid isPermaLink="false">http://nyquil.org/archives/1159-guid.html</guid>
    <category>android</category>
<category>cat-and-mouse</category>
<category>hacking</category>

</item>
<item>
    <title>Hacking Google: my further adventures with Android</title>
    <link>http://nyquil.org/archives/1157-Hacking-Google-my-further-adventures-with-Android.html</link>
    
    <comments>http://nyquil.org/archives/1157-Hacking-Google-my-further-adventures-with-Android.html#comments</comments>
    <wfw:comment>http://nyquil.org/wfwcomment.php?cid=1157</wfw:comment>

    <slash:comments>2</slash:comments>
    <wfw:commentRss>http://nyquil.org/rss.php?version=2.0&amp;type=comments&amp;cid=1157</wfw:commentRss>
    

    <author>nospam@example.com (jer@nyquil.org)</author>
    <content:encoded>
    &lt;img src="http://nyquil.org/spacer.gif" hspace="5" align="right"&gt;	&lt;p&gt;So Android isn&amp;#8217;t &lt;span class=&quot;caps&quot;&gt;QUITE&lt;/span&gt; the magical open platform i had imagined.  As it turns out, T-Mobile and Google are doing all they can to ensure that the specific types of things I want to do with it stay impossible.  It&amp;#8217;s early in the game yet, but it could easily be characterized as &amp;#8220;cat-and-mouse.&amp;#8221;  Unfortunately for them, these mice are always a few steps ahead of the cat.  Plus, the fact that the cat made some really stupid mistakes out of the gate makes things a bit nicer for us mice.&lt;/p&gt;

	&lt;p&gt;MY Android phone is completely open to all the sorts of things that I want to do now, with some particular clever mice having compromised Google&amp;#8217;s latest update and used thier own security against them, but if you&amp;#8217;ve got a T-Mobile G1 and want to have the opportunity to do some of the more awesome stuff we mice are working on, it&amp;#8217;s extremely important that you don&amp;#8217;t update to the RC30 update.  There&amp;#8217;s nothing new and exciting in the update anyway. &lt;/p&gt;

	&lt;p&gt;Stay tuned&amp;#8230;&lt;/p&gt; &lt;p&gt;&lt;a href="http://nyquil.org/archives/1157-Hacking-Google-my-further-adventures-with-Android.html#comments"&gt;&lt;img src="http://nyquil.org:81/commentimage2.php?id=1157" border=0 align="right"&gt;&lt;/a&gt;&lt;/p&gt;
    </content:encoded>

    <pubDate>Tue, 11 Nov 2008 12:16:39 -0800</pubDate>
    <guid isPermaLink="false">http://nyquil.org/archives/1157-guid.html</guid>
    <category>android</category>
<category>cat-and-mouse</category>
<category>google</category>
<category>hacking</category>
<category>phones</category>

</item>
<item>
    <title>Converting Kindle Books:  a painful process that works for reading Kindle books without a Kindle</title>
    <link>http://nyquil.org/archives/1128-Converting-Kindle-Books-a-painful-process-that-works-for-reading-Kindle-books-without-a-Kindle.html</link>
    
    <comments>http://nyquil.org/archives/1128-Converting-Kindle-Books-a-painful-process-that-works-for-reading-Kindle-books-without-a-Kindle.html#comments</comments>
    <wfw:comment>http://nyquil.org/wfwcomment.php?cid=1128</wfw:comment>

    <slash:comments>144</slash:comments>
    <wfw:commentRss>http://nyquil.org/rss.php?version=2.0&amp;type=comments&amp;cid=1128</wfw:commentRss>
    

    <author>nospam@example.com (jer@nyquil.org)</author>
    <content:encoded>
    &lt;img src="http://nyquil.org/spacer.gif" hspace="5" align="right"&gt;	&lt;p&gt;&lt;b&gt;&lt;font color=&#039;red&#039;&gt;Update&lt;/font&gt;: This tutorial is largely superseded by the much nicer and easier &amp;#8216;Kindle For PC&amp;#8217; method: &lt;a href=&quot;http://nyquil.org/archives/1235-Converting-Amazon-Kindle-For-PC-Books-Now-Possible.html&quot;&gt;see it here.&lt;/a&gt;&lt;/p&gt;

	&lt;p&gt;&lt;span class=&quot;caps&quot;&gt;UPDATE&lt;/span&gt; 2: included Preston Lee&amp;#8217;s online &lt;span class=&quot;caps&quot;&gt;PID&lt;/span&gt; generator.&lt;/b&gt;&lt;/p&gt;

	&lt;p&gt;D recently bought one of those new-fangled Amazon Kindle thingies for purchasing and reading books in an electronic form.  (She loves it.)&lt;br /&gt;
&lt;br /&gt;
I like to read books in an electronic form on my iPhone, but find that it&amp;#8217;s pretty hard to come by them legally; there are many different sellers and formats, some of which have certain books but not others.  Sometimes they have the book, but not in a format I can do anything with.  It&amp;#8217;s generally easier just to illegally download them from torrent sites.&lt;br /&gt;
&lt;br /&gt;
Amazon has tons and tons of books available for Kindle, and have chosen the standard MobiPocket format as the one their reader uses, meaning it is theoretically trivial to purchase them and convert them to something else.  Except that they won&amp;#8217;t sell them to you unless you have already purchased a $400ish Kindle on which to read them.  Meaning you don&amp;#8217;t need to convert them&amp;#8230;&lt;br /&gt;
&lt;br /&gt;
In any case, now that our household has a Kindle, it frees me up to purchase books from Amazon in Kindle format without actually having a Kindle myself.  I then just remove the &lt;span class=&quot;caps&quot;&gt;DRM&lt;/span&gt; that Amazon puts in the files (to keep people from converting them, natch), and then convert them to &lt;span class=&quot;caps&quot;&gt;HTML&lt;/span&gt; or txt to read in &lt;a href=&quot;http://code.google.com/p/iphoneebooks/&quot;&gt;Books.app&lt;/a&gt; on iPhone.  Want to know how to do the same thing?&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Howto:&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
Step 1) Find someone with a Kindle.&lt;br /&gt;
&lt;br /&gt;
Step 2) On their Kindle, go to the Settings menu, and type &amp;#8216;411&amp;#8217; on the keypad.  This will bring up a little information dialog with a bunch of things in it, of which you only need the Serial. It is a 16-character string of letters and numbers.  Write it down.&lt;br /&gt;
&lt;br /&gt;
Step 3) Ask the Kindle&amp;#8217;s owner to buy a book for you.  Give them some money so you don&amp;#8217;t look like a mooch.  Once you&amp;#8217;ve given them the money, ask them to log in to their Amazon account and navigate to their &amp;#8216;&lt;a href=&quot;http://www.amazon.com/gp/ays?ie=UTF8&amp;app=download&amp;amp;path=%2Fgp%2Fays&amp;dlCategory=fiona_ebook&amp;amp;useRedirectOnSuccess=1&quot;&gt;Kindle Downloads&lt;/a&gt;&amp;#8216; page from your computer.  When they complain, mention that you&amp;#8217;ve already given them money.  The Kindle Downloads page will list all the books they&amp;#8217;ve purchased, and yours should be right at the top.  Click &amp;#8216;Download to computer&amp;#8217; and you&amp;#8217;ll get a file named &amp;#8216;Title-of-Book.azw&amp;#8217;&lt;br /&gt;
&lt;br /&gt;
Step 4) Download &lt;a href=&quot;http://nyquil.org/uploads/MobiDeDRM.zip&quot;&gt;MobiDeDRM.zip&lt;/a&gt;, which is a small suite of Python scripts that some kind soul wrote and then distributed through links that expire all the time and can be kind of a pain to track down. I&amp;#8217;ve hosted them from my site so that they won&amp;#8217;t expire. This .zip file contains mobidedrm.py, mobidedrm2.py, kindlepid.py and mobihuff.py.&lt;br /&gt;
&lt;br /&gt;
(These scripts require that you install Python on your system, which is something outside the scope of this howto.  I&amp;#8217;m on linux, but there&amp;#8217;s a Python for Windows called &amp;#8220;ActiveState Python.&amp;#8221;  Google will help.) &lt;br /&gt;
&lt;br /&gt;
&lt;/p&gt;

	&lt;p&gt;&lt;strike&gt;After unzipping the archive, open up a terminal window and pass the Kindle&amp;#8217;s serial # (which you previously wrote down) to kindlepid.py.  Something like this:&lt;br /&gt;
&lt;br /&gt;
&lt;code&gt;python kindlepid.py XXXXXXXXXXXXXXXX&lt;/code&gt;&lt;br /&gt;
&lt;br /&gt;
Where all those Xs are replaced with the Kindle serial number.  It will return something that looks like this:&lt;br /&gt;
&lt;br /&gt;
&lt;code&gt;Mobipocked PID for Kindle serial# XXXXXXXXXXXXXXXX is Z1QFCDQ*74&lt;/code&gt;&lt;br /&gt;
&lt;br /&gt;
Make note of that last 10-character gibberish.&lt;/strike&gt;  &lt;/p&gt;

	&lt;p&gt;The easiest way to get your &lt;span class=&quot;caps&quot;&gt;PID&lt;/span&gt; (or secret code used to unlock the Kindle book) is to use &lt;a href=&quot;http://kindletools.prestonlee.com&quot;&gt;Preston Lee&amp;#8217;s online Kindle &lt;span class=&quot;caps&quot;&gt;PID&lt;/span&gt; generator&lt;/a&gt;. Simply follow the instructions there.&lt;/p&gt;

	&lt;p&gt;Now that you&amp;#8217;ve got your &lt;span class=&quot;caps&quot;&gt;PID&lt;/span&gt;, we&amp;#8217;ll need to remove the &lt;span class=&quot;caps&quot;&gt;DRM&lt;/span&gt; from any books purchased for that Kindle.&lt;br /&gt;
&lt;br /&gt;
Step 5) Now it&amp;#8217;s time to remove the &lt;span class=&quot;caps&quot;&gt;DRM&lt;/span&gt;.  Do this:&lt;br /&gt;
&lt;br /&gt;
&lt;code&gt;python mobidedrm.py Title-of-Book.azw Title-of-Book.mobi Z1QFCDQ*74&lt;/code&gt;&lt;br /&gt;
&lt;br /&gt;
where my 10-character gibberish string is replaced with the one you made note of in the last step.  This will take about a minute, and when it finishes you&amp;#8217;ll see:&lt;br /&gt;
&lt;br /&gt;
&lt;code&gt;Decrypting. Please wait... done&lt;/code&gt;&lt;br /&gt;
&lt;br /&gt;
Now you will have a decrypted MobiPocket-formatted ebook that you can read in any MobiPocket reader.&lt;br /&gt;
&lt;br /&gt;
If, however, you want to convert it to &lt;span class=&quot;caps&quot;&gt;HTML&lt;/span&gt; to read on any device you wish, you&amp;#8217;ll want to install &lt;a href=&quot;https://dev.mobileread.com/trac/mobiperl/&quot;&gt;MobiPerl&lt;/a&gt;. (This, of course, will require you to install Perl.  MobiPerl&amp;#8217;s website will walk you through that.)&lt;br /&gt;
&lt;br /&gt;
6)  With MobiPerl installed, do this:&lt;br /&gt;
&lt;br /&gt;
&lt;code&gt;mobi2html Title-of-Book.mobi&lt;/code&gt;&lt;br /&gt;
&lt;br /&gt;
This will create a directory named &amp;#8216;unpacked&amp;#8217; that will contain Title-of-Book.html&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Things that can go wrong:&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
Amazon seems to compress longer books in a slightly different manner than shorter books.  If your resulting .mobi file and/or .html file are oddly gibberishy (for example, if the first line starts in the middle of a sentence, and clearly not the beginning of the book), let&amp;#8217;s go back to step 5.&lt;br /&gt;
&lt;br /&gt;
Step 5b) These &amp;#8216;huffdic-compressed&amp;#8217; books require a slightly different script to remove the &lt;span class=&quot;caps&quot;&gt;DRM&lt;/span&gt;.  Do this:&lt;br /&gt;
&lt;br /&gt;
&lt;code&gt;python mobidedrm2.py Title-of-Book.azw Title-of-Book.mobi Z1QFCDQ*74&lt;/code&gt;&lt;br /&gt;
&lt;br /&gt;
Note the &amp;#8216;2&amp;#8217; in &amp;#8216;mobidedrm2.py&amp;#8217; in this one and remember to replace my gibberish &lt;span class=&quot;caps&quot;&gt;PID&lt;/span&gt; with yours.&lt;br /&gt;
&lt;br /&gt;
6b) The &amp;#8216;huffdic-compressed&amp;#8217; files also require a different script to convert them to &lt;span class=&quot;caps&quot;&gt;HTML&lt;/span&gt;.  Do this:&lt;br /&gt;
&lt;br /&gt;
&lt;code&gt;python mobihuff.py Title-of-Book.mobi Title-of-Book.html&lt;/code&gt;&lt;br /&gt;
&lt;br /&gt;
This script will output the .html file in the directory from which you are running it.&lt;br /&gt;
&lt;br /&gt;
All in all, this is as much of a pain as it looks, but the selection and availability of books on Amazon makes it worthwhile to me.  They have far more books than The Pirate Bay does, and I feel better paying for them&lt;br /&gt;
&lt;br /&gt;
Good luck.&lt;br /&gt;

&lt;p&gt;&lt;font color=&#039;red&#039;&gt;Update&lt;/font&gt;: several readers have alerted me that there&amp;#8217;s a much newer version of mobiDeDRM available.  You can download it &lt;a href=&quot;http://nyquil.org/uploads/mobidedrm0.5.py&quot; &gt;here&lt;/a&gt;.&lt;/p&gt; &lt;p&gt;&lt;a href="http://nyquil.org/archives/1128-Converting-Kindle-Books-a-painful-process-that-works-for-reading-Kindle-books-without-a-Kindle.html#comments"&gt;&lt;img src="http://nyquil.org:81/commentimage2.php?id=1128" border=0 align="right"&gt;&lt;/a&gt;&lt;/p&gt;
    </content:encoded>

    <pubDate>Fri, 11 Jul 2008 11:33:18 -0700</pubDate>
    <guid isPermaLink="false">http://nyquil.org/archives/1128-guid.html</guid>
    <category>amazon</category>
<category>geeky</category>
<category>hacking</category>
<category>howto</category>
<category>iPhone</category>
<category>kindle</category>

</item>
<item>
    <title>iPhone Hax0ring</title>
    <link>http://nyquil.org/archives/932-iPhone-Hax0ring.html</link>
    
    <comments>http://nyquil.org/archives/932-iPhone-Hax0ring.html#comments</comments>
    <wfw:comment>http://nyquil.org/wfwcomment.php?cid=932</wfw:comment>

    <slash:comments>0</slash:comments>
    <wfw:commentRss>http://nyquil.org/rss.php?version=2.0&amp;type=comments&amp;cid=932</wfw:commentRss>
    

    <author>nospam@example.com (jer@nyquil.org)</author>
    <content:encoded>
    &lt;img src="http://nyquil.org/spacer.gif" hspace="5" align="right"&gt;	&lt;p&gt;[UPDATE:  Grr.  Comments were broken again.  I will never intentionally disable commenting on posts, so if you ever happen to be unable to leave one, I&amp;#8217;d like to hear about it :)]&lt;/p&gt;

	&lt;p&gt;Sorry that I&amp;#8217;ve been neglecting all of y&amp;#8217;all.  I&amp;#8217;ve just been hax0ring around in the inner-workings of the iPhone, and have been having so dang much fun that I haven&amp;#8217;t had time for you.&lt;sup&gt;1&lt;/sup&gt; &lt;/p&gt;

	&lt;p&gt;Tonight, for instance, I decided to see if I could take advantage of the on-phone voice mail handling to do things that no one ever intended me to.  See, you click a button to record a greeting or play voice mails, never actually having to call up a voice mail system to do anything.  I decided that I wanted to try to take an existing audio file and use that rather than recording audio through a tinny cellphone microphone.   So, having full system access to every nook and cranny of the thing, I did a little digging around and found where it stores the temporary greeting file that is created (you record it, then you have an opportunity to listen to it, &lt;span class=&quot;caps&quot;&gt;THEN&lt;/span&gt; you click &amp;#8216;save&amp;#8217; to upload it), finding it in relatively short order.&lt;sup&gt;2&lt;/sup&gt;  It is an 8000 KHz .&lt;span class=&quot;caps&quot;&gt;AMR&lt;/span&gt; file.  I don&amp;#8217;t know what that is, but &lt;span class=&quot;caps&quot;&gt;FFMPEG&lt;/span&gt; can create them, so I created my own using audio I happened to have lying around.&lt;/p&gt;

	&lt;p&gt;After recording a couple seconds of audio on the phone, I then replaced the temporary greeting file with my newly-created one, and then clicked &amp;#8216;play&amp;#8217; on the iPhone to see if it was dumb enough to just assume the file was the same one it recorded.  It was.  I then clicked &amp;#8216;save&amp;#8217; and watched it upload the audio to the voice mail system.&lt;/p&gt;

	&lt;p&gt;The same can be done with incoming messages, which should prove rather handy should anyone ever leave any mean-spirited ones.&lt;/p&gt;

	&lt;p&gt;If you&amp;#8217;d like to experience my new (temporary) voicemail greeting, go ahead and give me a ring at 3605211191 before about 6am Pacific time on Aug 16th (I&amp;#8217;ll be changing it to something a little less&amp;#8230; crazy&amp;#8230; at that time.) &lt;/p&gt;

	&lt;p&gt;Also, please feel free to leave me a message after the beep.  If I get anything good, maybe I&amp;#8217;ll post them here.&lt;/p&gt;

	&lt;p&gt;&lt;hr /&gt;&lt;br /&gt;
&lt;b&gt;1:&lt;/b&gt;  I do have a full review coming at some point in the future, as I decided to keep it rather than off-loading it.  Short review:  despite the many, many, many (many) annoying stupid things about iPhone, it&amp;#8217;s still the best (and nerdiest) phone I&amp;#8217;ve ever, ever owned.  You can have it when you pry it from my cold greasy hands.&lt;/p&gt;

	&lt;p&gt;&lt;b&gt;2:&lt;/b&gt; In case you&amp;#8217;re playing along at  home, after recording your temporary greeting, you&amp;#8217;ll find it at /var/root/Library/Voicemail/Greeting.amr on your iPhone.  Just copy your 8000 KHz .amr file over that one.&lt;/p&gt; &lt;p&gt;&lt;a href="http://nyquil.org/archives/932-iPhone-Hax0ring.html#comments"&gt;&lt;img src="http://nyquil.org:81/commentimage2.php?id=932" border=0 align="right"&gt;&lt;/a&gt;&lt;/p&gt;
    </content:encoded>

    <pubDate>Wed, 15 Aug 2007 18:51:17 -0700</pubDate>
    <guid isPermaLink="false">http://nyquil.org/archives/932-guid.html</guid>
    <category>geeky</category>
<category>hacking</category>
<category>iphone</category>
<category>nerdy</category>

</item>
<item>
    <title>patience, people: the continuing saga of freeing the iPhone</title>
    <link>http://nyquil.org/archives/892-patience,-people-the-continuing-saga-of-freeing-the-iPhone.html</link>
    
    <comments>http://nyquil.org/archives/892-patience,-people-the-continuing-saga-of-freeing-the-iPhone.html#comments</comments>
    <wfw:comment>http://nyquil.org/wfwcomment.php?cid=892</wfw:comment>

    <slash:comments>0</slash:comments>
    <wfw:commentRss>http://nyquil.org/rss.php?version=2.0&amp;type=comments&amp;cid=892</wfw:commentRss>
    

    <author>nospam@example.com (jer@nyquil.org)</author>
    <content:encoded>
    &lt;img src="http://nyquil.org/spacer.gif" hspace="5" align="right"&gt;	&lt;p&gt;The past few days I&amp;#8217;ve been haunting the iPhone haxx0r &lt;span class=&quot;caps&quot;&gt;IRC&lt;/span&gt; channels, hoping to glean some working-knowledge of what the progress of the various goals are as they happen.&lt;br /&gt;
&lt;br /&gt;
What is incredibly astounding is the level of impatience among all the non-haxx0r types that keep popping in to see what&amp;#8217;s up.&amp;#160; One guy in particular, who we&amp;#8217;ll call &amp;#8220;dave&amp;#8221; (because that&amp;#8217;s the nick he uses), repeatedly asks the same questions over and over again regarding progress. People keep pointing him to the wiki, where all the known info can be obtained, but he insists there are things we are not being told in regards to &amp;#8220;unlocking&amp;#8221; the iPhone.&amp;#160; (Dave is one of the many who want to use his iPhone on a non-AT&amp;amp;T network.)&amp;#160; I suggested to him that actually, they had already figured out the unlocking, but that Apple swooped in and &amp;#8220;got to them&amp;#8221; before they could publish the hack.&amp;#160; Cut to 24 hours later, and he&amp;#8217;s proclaiming to everyone that &amp;#8220;Apple got to&amp;#8221; the main guy, which explains why there have been no progress updates in &lt;span class=&quot;caps&quot;&gt;IRC&lt;/span&gt; or on the wiki.&lt;br /&gt;
&lt;br /&gt;
The fun thing is that the guy he just told that to hopped over to the &lt;span class=&quot;caps&quot;&gt;OTHER&lt;/span&gt; haxx0r channel and asked if it&amp;#8217;s just rumor that &amp;#8220;Apple got to him,&amp;#8221; where, of course, everyone played along.&amp;#160; &lt;br /&gt;
&lt;br /&gt;
Expect that little bit of rumor to show up on Digg and Slashdot any time now.&lt;br /&gt;
&lt;/p&gt; &lt;p&gt;&lt;a href="http://nyquil.org/archives/892-patience,-people-the-continuing-saga-of-freeing-the-iPhone.html#comments"&gt;&lt;img src="http://nyquil.org:81/commentimage2.php?id=892" border=0 align="right"&gt;&lt;/a&gt;&lt;/p&gt;
    </content:encoded>

    <pubDate>Sun, 08 Jul 2007 12:01:44 -0700</pubDate>
    <guid isPermaLink="false">http://nyquil.org/archives/892-guid.html</guid>
    <category>hacking</category>
<category>iphone</category>

</item>

</channel>
</rss>