Audio/video stream recording forums (http://stream-recorder.com/forum/index.php)
-   Removing DRM protection from eBooks (http://stream-recorder.com/forum/forumdisplay.php?f=63)
-   -  

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

(http://stream-recorder.com/forum/showthread.php?t=5429)

Stream Recorder 07-01-2010 10:57 PM

Re: MobiDeDRM.py - remove DRM from Mobipocket ebooks


 
Quote:

Originally Posted by waleng (Post 19940)
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?

Any book downloaded after 2.5.2, even those bought before and downloaded from Manage Your Kindle, will not work with Mobidedrm.

You can try to downgrade Kindle4PC and re-download your books. Alternatively you can remove DRM using Skindle.

mchassy 07-31-2010 04:12 AM

Re: MobiDeDRM.py - remove DRM from Mobipocket ebooks


 
Just hopping on to this thread. I have a Kindle 2, I use Mac, and I am trying to dedrm my kindle books. I've had my Kindle since November. I just installed Calibre on my Mac and then re downloaded all of my books from Manage Your Kindle.
I imported all of them into the Calibre library. No problem.

Now I would like to dedrm them in to normal mobi format and add those versions to my Calibre library as well. I tried to add the mobidedrm_plugin.py (in a zip) file as an addin, but Calibre did not seem to accept it.
I didn't want to spend too much time on this, and I know scripting fairly well, so I copied all my AZW files into a folder along with the mobidedrm.py file.
I wrote a .sh file with a line for each book in the following format:
Code:

python mobidedrm.py "Book.azw" "Book.mobi" 'MYPID'
I used the double quotes around the book names, because they often have spaces.

I got these messages for all of my books:
Code:

Extra Data Flags = 2
Error: no key found. maybe the PID is incorrect

I read through all of this thread:
  • One messages says to use the V.06 of the script - but that version is not published in the thread :-(
  • Then I found this on the last message on the thread.
    Quote:

    Any book downloaded after 2.5.2, even those bought before and downloaded from Manage Your Kindle, will not work with Mobidedrm.
  • What are you referring to as 2.5.2? Is the DRM version? Does that mean that this script is not working on the latest version of DRM that Amazon has put into place?
  • You mention the Skindle tool afterwards, but that is only for PC. Is there an equivalent for Mac?
Thanks for any info.

Mark

Stream Recorder 08-02-2010 01:37 AM

Re: MobiDeDRM.py - remove DRM from Mobipocket ebooks


 
Quote:

Originally Posted by mchassy (Post 20558)
What are you referring to as 2.5.2? Is the DRM version?

This is a version of Kindle Software (this was mentioned above)

Stream Recorder 08-02-2010 01:40 AM

Re: MobiDeDRM.py - remove DRM from Mobipocket ebooks


 
Quote:

Originally Posted by mchassy (Post 20558)
One messages says to use the V.06 of the script - but that version is not published in the thread :-(

You should always try the latest version first.
v.0.13 was posted above before
Code:

http://mobi.pastebin.com/k0Hxg6iY

Trester 08-02-2010 02:26 PM

Re: MobiDeDRM.py - remove DRM from Mobipocket ebooks


 
Quote:

Originally Posted by Stream Recorder (Post 20594)
You should always try the latest version first.
v.0.13 was posted above before
Code:

http://mobi.pastebin.com/k0Hxg6iY

I've spent a lot of time on this, and I still can't get it to work. I've downloaded/saved v.0.13 to a py file. In the CMD window I type:

MobideDRM.py blood.prc blood2.prc XNXNNXX$XX

and get the following error message:
File "C:\Python31\MobideDRM.py", line 57
print "bad key length!"

Line 56 says: if len(key)!=16: (if fail goto 57)

The PID is from Mobipocket Reader (v 6.2 Build 608). I am also concerned that the PID contains a "$" character, which seems as though it would fail the script logic.

I have also tried using single quotation marks on the PID, with no success.

Any help would be appreciated!

mchassy 08-02-2010 02:35 PM

Re: MobiDeDRM.py - remove DRM from Mobipocket ebooks


 
@Steam Recorder
Yes I saw you were referring to the kindle software afterward.
For the script : tried both the v.0.06 and the v.0.13 and both fail in the same way.
I think your suggestion to try using the MobiPocket Reader is the key.
I will check on that and get back to you.

Stream Recorder 08-02-2010 11:16 PM

Re: MobiDeDRM.py - remove DRM from Mobipocket ebooks


 
Quote:

Originally Posted by Trester (Post 20613)
I've spent a lot of time on this, and I still can't get it to work. I've downloaded/saved v.0.13 to a py file. In the CMD window I type:

MobideDRM.py blood.prc blood2.prc R7X46LB$DV

and get the following error message:
File "C:\Python31\MobideDRM.py", line 57
print "bad key length!"

Line 56 says: if len(key)!=16: (if fail goto 57)

Try to take the last two digits off the PID, cutting it from 10 symbols to 8.

Quote:

Originally Posted by Trester (Post 20613)
I have also tried using single quotation marks on the PID, with no success.

It is a good idea to make sure your filenames doesn't contain spaces.

Instead of
Code:

MobideDRM.py file name with spaces.prc file name with spaces2.prc PID
use
Code:

MobideDRM.py "file name with spaces.prc" "file name with spaces2.prc" PID
or rename your files and use
Code:

MobideDRM.py file_name_with_spaces.prc file_name_with_spaces2.prc PID

mchassy 08-02-2010 11:54 PM

Re: MobiDeDRM.py - remove DRM from Mobipocket ebooks


 
@Stream Recorder
Ok, I went back and looked at the beginning of this post.
Are you saying that I have one PID *from Amazon* and another when I import my AZW file into Calibre?
In either case, is it possible to view the PID using Calibre (or some other tool) to verify that I'm using the correct one? I got mine from the website which generates it (http://kindletools.prestonlee.com/).

Dan247 08-11-2010 01:22 AM

Re: MobiDeDRM.py - remove DRM from Mobipocket ebooks


 
Any idea when MobiDeDRM might be upgraded to handle the 2.5.2 Kindle software release? I too am getting the "no key found maybe the pid is incorrect" error message when I try to run it, no matter which version of MobiDeDRM I try.

Stream Recorder 08-11-2010 05:03 AM

Re: MobiDeDRM.py - remove DRM from Mobipocket ebooks


 
Quote:

Originally Posted by mchassy (Post 20619)
@Stream Recorder
Ok, I went back and looked at the beginning of this post.
Are you saying that I have one PID *from Amazon* and another when I import my AZW file into Calibre?

http://stream-recorder.com/forum/sho...67&postcount=2


All times are GMT -6. The time now is 03:58 AM.