Audio/video stream recording forums

Attention Visitor:
You may have to register or log in before you can post:
  • Click the register link to sign up.
  • Registered members please fill in the form below and click the "Log in" button.
To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Audio/video stream recording forums > Other discussions > Removing DRM protection from eBooks
Register FAQ Members List Calendar Mark Forums Read

Reply Post New Thread
 
Thread Tools Display Modes
  #1  
Old 01-18-2010, 05:03 AM
any ANONYMOUS forum user any ANONYMOUS forum user is offline
any user of the forum who preferred to post anonymously
 
Join Date: Aug 2011
Location: Server of stream-recorder.com
Posts: 211
any ANONYMOUS forum user is on a distinguished road
Default

MobiDeDRM.py - remove DRM from Mobipocket ebooks (unDRM MOBI and PRC files)


Mobi and PRC are the default ebook formats used by the MobiPocket. In 2005, the company was aquired by Amazon, and now Amazon Kindle works with these files. Most of these encrypted files are a real pain if you want to throw them on different devices or use other software.

How to remove DRM from MOBI and PRC files so that you can read them on any device you have.
Note: Distributing copyrighted content is illegal!

Get the latest version of MobiDeDRM from darkreverser

Or

Download ebook DRM Tools Archive including MobiDeDRM:
ebook DRM removal tools archive

download MobiDeDRM v.0.16
Code:
http://www.mediafire.com/?ot2tyglfdzo
download MobiDeDRM v.0.13
Code:
http://mobi.pastebin.com/pmrvHgwP
download MobiDeDRM v.0.09
Code:
http://pastebin.com/f696ea728
download MobiDeDRM v.0.08
Code:
http://pastebin.com/f523cbb17

download MobiDeDRM v.0.07
Code:
http://pastebin.de/1280
download MobiDeDRM v.0.07 (works both as a Calibre plug-in and standalone)
Code:
http://pastebin.com/m31062a97
Download the file and rename it to mobidedrm.py
(To create a Calibre plugin, rename this file so that the filename ends in '_plugin.py', put it into a ZIP file and import into Calibre using its plugin configuration GUI).

When properly run with your correct PID, it will remove the DRM from the book and allow you to use Calibre to convert it to whatever format you want.
Reply With Quote
  #2  
Old 01-18-2010, 05:55 AM
Stream Recorder
 
Posts: n/a
Default

Re: MobiDeDRM.py - remove DRM from Mobipocket ebooks


MobiDeDRM.py is a tool that has been able to break nearly every mobi/prc encryption is MobiDeDrm, courtesy of Paul Durrant.

How to remove DRM from MOBI and PRC files
  1. Download and install Python and wxPython

    MobiDeDrm scripts should run on any OS, given you've got the right files installed. So, before we can get started, you'll have to download Python and a Python extension module like wxPython.

    In both steps 1 and 2, choose the Python and wxPython module according to your operating system.

    After these applications are installed, Python scripts should run flawlessly on Windows, Mac and Linux.
  2. Find Your PID

    Your PID is the personal key that your reader uses to encrypt and read the file. This key is needed to permanently strip the DRM from MOBI / PRC ebooks.

    Because MobiPocket is designed to be used with different devices, the PIDs are out in the open for the user to grab. If your ebook is hosted on another device (i.e. Kindle), simply sync it up with the software before you proceed.


    In MobiPocket on your desktop, go to Devices, and you'll see the PID of said reader in Details. Note that a PID is both device and ebook-specific. Upon transfering your ebook, the PID is also altered, so you'll need the PID of the right device or the decryption will fail.

    When buying a Mobi ebook online, you're most often asked for your PID before downloading. Obviously, this is the PID you'll need to use. However, sometimes the process is turned around.

    If you're asked for the store username and password upon adding the book, it hasn't and won't be matched with your PID. Instead, you'll first need to transfer the ebook to another device (e.g. Calibre or Windows Mobile) and use that PID.
  3. Remove DRM protection

    Once we have the right PID, most of the work is already behind us. We'll now deploy the scripts to permanently remove the encryption. For accessibility, it's advised to put your eBook and the python scripts in the same folder.


    First, open the Terminal or command screen.

    In Windows XP, go to Start – Run, type cmd and hit enter. In Vista, go to Start, type cmd in the search box and hit enter.

    The Terminal application is located in /Applications/Utilities for Mac OS X.

    And if you're using Linux, you'll probably know the location. In most distributions, this will also be located at Applications/Utilities.


    Next, you navigate to the folder containing your files. To do this, type cd, followed by the full file path to your folder, and hit enter. In my case, that'll make for
    Code:
    cd /home/admin/ebook
    If your filepath contains spaces, put single quotes ( ‘ ) around it.


    Now, all you need to do is run the script. Type
    Code:
    python mobidedrm009.py infile.mobi outfile.mobi PID
    and hit enter. Substitute "infile.mobi", "outfile.mobi" and "PID" with the appropriate filenames, file extensions and the PID respectively. In my case:
    Code:
    python mobidedrm009.py ebook.prc free_ebook.prc 1234567$ab
    If you're experiencing trouble, try putting your PID between single quotes ( ' ) or using one of the previous script versions (e.g. mobidedrm006.py). Some ebooks refuse to work with the later versions (strangely) but work perfectly well with the first one.
  4. If all went well, you'll now be the proud owner of another, unencrypted version of your ebook.
  5. You can sync this with any device you want without too much of a hassle, or convert it to an easier to use format like pdf, rtf or html. Calibre is one of the best tool to convert ebooks.
Reply With Quote
  #3  
Old 01-18-2010, 06:22 AM
any ANONYMOUS forum user any ANONYMOUS forum user is offline
any user of the forum who preferred to post anonymously
 
Join Date: Aug 2011
Location: Server of stream-recorder.com
Posts: 211
any ANONYMOUS forum user is on a distinguished road
Default

Re: MobiDeDRM.py - remove DRM from Mobipocket ebooks


The native Kindle format (azw) is in fact just the Mobipocket DRM format with a few extra flags/bits set (this has long been known). So if you know the PID of your Kindle (which you can get from the serial number in most cases) you can decrpyt them. So there is already a script that converts AZW books to mobi format and then of course the mobidedrm script to decrypt them.
Reply With Quote
  #4  
Old 04-24-2010, 07:07 PM
anonymous1234 anonymous1234 is offline
Junior Member
 
Join Date: Mar 2010
Posts: 3
anonymous1234 is on a distinguished road
Default

Re: MobiDeDRM.py - remove DRM from Mobipocket ebooks


I removed drm on a bunch of mobipocket books a few weeks ago and everything worked great. I tried it again tonight with some new books and suddenly it doesn't work anymore. I have 2 PIDs, one for my pc and one for my blackberry but neither one works. I could not find version 6 to try so I tried v 13 but that didn't work at all and gave me another error. Can anyone give me some suggestions please?
Reply With Quote
  #5  
Old 04-24-2010, 11:47 PM
Stream Recorder
 
Posts: n/a
Default

Re: MobiDeDRM.py - remove DRM from Mobipocket ebooks


Quote:
Originally Posted by anonymous1234 View Post
I removed drm on a bunch of mobipocket books a few weeks ago and everything worked great. I tried it again tonight with some new books and suddenly it doesn't work anymore. I have 2 PIDs, one for my pc and one for my blackberry but neither one works. I could not find version 6 to try so I tried v 13 but that didn't work at all and gave me another error. Can anyone give me some suggestions please?
Quote the exact error. And try to find similar questions in the Dark Reverser blog.
Reply With Quote
  #6  
Old 05-15-2010, 01:08 PM
dynalady dynalady is offline
Junior Member
 
Join Date: May 2010
Posts: 1
dynalady is on a distinguished road
Default

Re: MobiDeDRM.py - remove DRM from Mobipocket ebooks


Quote:
Download the file and rename it to mobidedrm.py
(To create a Calibre plugin, rename this file so that the filename ends in '_plugin.py', put it into a ZIP file and import into Calibre using its plugin configuration GUI).

When properly run with your correct PID, it will remove the DRM from the book and allow you to use Calibre to convert it to whatever format you want.
I'm not sure what I did wrong, but it isn't working.

I have Mac OSX so it will read the python script. I downloaded MobiDeDRM v.0.13 and saved it in a file on my hard drive. Renamed it to mobidedrm_plugin.py. I think the problem may be where I put it in Calibre. I went to preferences, plugins, add and selected the zip and hit ok. It didn't convert the drmd book I was trying to open. Should I put the plugin in a specific plugin type folder? If so, which one? Is there some other way to import the plugin to Calibre? Can you tell I don't know much about how all this works? I just want to be able to read the free library book on my new Kindle .
Reply With Quote
  #7  
Old 06-11-2010, 06:08 PM
Beginner Beginner is offline
Junior Member
 
Join Date: Jun 2010
Posts: 2
Beginner is on a distinguished road
Cool

Re: MobiDeDRM.py - remove DRM from Mobipocket ebooks


Hi

Okay, as you might get from my name, I am complete dufus when it comes to computers. I've tried to follow your excellent instructions, installing python 2.6, creating a nice little folder c:/python26, and in it, put mobimedrm.py as well as the e-book I am trying to free up.

However, when I try to run the script as you set out, I keep getting the error message that there's no such file or folder as mobimedrm.py.

What am I doing wrong? I have absolutely no idea what I'm doing - all I know is that I'm beyond frustrated that I can no longer read a bunch of books that I have legally purchased simply because the developers have declined to adapt the software for the iphone or ipad.

Thanks in advance for any help you can give me
Reply With Quote
  #8  
Old 06-12-2010, 08:05 AM
Stream Recorder
 
Posts: n/a
Default

Re: MobiDeDRM.py - remove DRM from Mobipocket ebooks


Quote:
Originally Posted by Beginner View Post
Hi

Okay, as you might get from my name, I am complete dufus when it comes to computers. I've tried to follow your excellent instructions, installing python 2.6, creating a nice little folder c:/python26, and in it, put mobimedrm.py as well as the e-book I am trying to free up.

However, when I try to run the script as you set out, I keep getting the error message that there's no such file or folder as mobimedrm.py.

What am I doing wrong? I have absolutely no idea what I'm doing - all I know is that I'm beyond frustrated that I can no longer read a bunch of books that I have legally purchased simply because the developers have declined to adapt the software for the iphone or ipad.

Thanks in advance for any help you can give me
You need to run the script from the folder where it resides. Use cd command to go to the directory with the script and with your ebook. For example:
Code:
c:
cd \ebooks
will allow you to enter the c:\ebooks directory from the command line
Reply With Quote
  #9  
Old 06-12-2010, 04:28 PM
Beginner Beginner is offline
Junior Member
 
Join Date: Jun 2010
Posts: 2
Beginner is on a distinguished road
Cool

Re: MobiDeDRM.py - remove DRM from Mobipocket ebooks


Yes, I had done that (instead of moving/copying python scripts to my ebook folder, I had done it the other way around, moving the test ebook to the Python folder).

I found my error, though - the Python extensions were in Python26/Scripts, instead of Python26/Tools/Scripts. So basically, I copied everything everywhere, hoping that the system would find it wherever it needed it!

And... it worked! Thank you, thank you to all you kind people who take the time to put these instructions up.

Let's hope that the remainder of the books work too...
Reply With Quote
  #10  
Old 07-01-2010, 04:04 PM
waleng waleng is offline
Junior Member
 
Join Date: Jul 2010
Posts: 3
waleng is on a distinguished road
Default

Re: MobiDeDRM.py - remove DRM from Mobipocket ebooks


Hello, everyone!

I'm having a bit of a problem here. Is anyone of you having errors removing the DRM from your purchased books after the latest Kindle Software Update? I had no problems cracking the books that I bought before updating to 2.5.2 but had a hard time with the later ones. I think Amazon has decided to change their codes. Do you guys have a workaround for this?
Reply With Quote
Reply Post New Thread
Tags: , , , , , , , , , , , , ,



Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -6. The time now is 05:47 AM.


Powered by All-streaming-media.com; 2006-2011
vB forum hacked with Zoints add-ons