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 Code:
http://mobi.pastebin.com/pmrvHgwP Code:
http://pastebin.com/f696ea728 Code:
http://pastebin.com/f523cbb17 download MobiDeDRM v.0.07 Code:
http://pastebin.de/1280 Code:
http://pastebin.com/m31062a97 (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. |
Re: MobiDeDRM.py - remove DRM from Mobipocket ebooksMobiDeDRM.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
|
Re: MobiDeDRM.py - remove DRM from Mobipocket ebooksThe 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.
|
Re: MobiDeDRM.py - remove DRM from Mobipocket ebooksI 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?
|
Re: MobiDeDRM.py - remove DRM from Mobipocket ebooksQuote:
|
Re: MobiDeDRM.py - remove DRM from Mobipocket ebooksQuote:
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 . |
Re: MobiDeDRM.py - remove DRM from Mobipocket ebooksHi
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 |
Re: MobiDeDRM.py - remove DRM from Mobipocket ebooksQuote:
Code:
c: |
Re: MobiDeDRM.py - remove DRM from Mobipocket ebooksYes, 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... |
Re: MobiDeDRM.py - remove DRM from Mobipocket ebooksHello, 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? |
Re: MobiDeDRM.py - remove DRM from Mobipocket ebooksQuote:
You can try to downgrade Kindle4PC and re-download your books. Alternatively you can remove DRM using Skindle. |
Re: MobiDeDRM.py - remove DRM from Mobipocket ebooksJust 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 got these messages for all of my books: Code:
Extra Data Flags = 2
Mark |
Re: MobiDeDRM.py - remove DRM from Mobipocket ebooksQuote:
|
Re: MobiDeDRM.py - remove DRM from Mobipocket ebooksQuote:
v.0.13 was posted above before Code:
http://mobi.pastebin.com/k0Hxg6iY |
Re: MobiDeDRM.py - remove DRM from Mobipocket ebooksQuote:
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! |
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. |
Re: MobiDeDRM.py - remove DRM from Mobipocket ebooksQuote:
Quote:
Instead of Code:
MobideDRM.py file name with spaces.prc file name with spaces2.prc PID Code:
MobideDRM.py "file name with spaces.prc" "file name with spaces2.prc" PID Code:
MobideDRM.py file_name_with_spaces.prc file_name_with_spaces2.prc PID |
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/). |
Re: MobiDeDRM.py - remove DRM from Mobipocket ebooksAny 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.
|
Re: MobiDeDRM.py - remove DRM from Mobipocket ebooksQuote:
|
Re: MobiDeDRM.py - remove DRM from Mobipocket ebookshi,
I've tried to put this into calibre plugin to decript all my PRC files, but when I click on the file I want and press convert it comes up with this error: WARNING: Could not convert some books: Could not convert 1 of 1 books, because no suitable source format was found. I've put all my registered PIDs in the customize field and even put \ before any $ signs but still don't know what is going on. Can anyone help? Thanks Found a solution: http://stream-recorder.com/forum/sho...41&postcount=2 |
Re: MobiDeDRM.py - remove DRM from Mobipocket ebooksFirst of all let me thanks the guys who did this, THANKS!!
I have a mac, I downloaded python and when I went into a term window, I could type python and it would find the program and go into it. I tried the command line and couldn't get it to work. So I decided try the plugin method. I downloaded the mobidedrm, copied the script into it and named the file mobidedrm_plugin.py, zipped it and added it to the plugin into Calibre, I then customized it with all my PID's from the Mobipocket Readers site, and it worked PERFECT! When I added the file to my library there was no error, and then I had to run the convert tool, and wah la! And one of my PID's have a $ in it, I didn't have to do anything. I just put them all in separated by a comma. Thanks Guys. |
Re: MobiDeDRM.py - remove DRM from Mobipocket ebooksHi
I want toremove DRM from a *.prc files in order to use it on a HTC Android Phone with FBreaderJ Firstable, i don't have any Palm device so i ask you how can i get the PID? I havent buy the prc file yet! I just have a x86 laptop with Seven Pro and a N900 device Need help Thanks a lot (the prc file is for my girlfriend cellphone!) |
Re: MobiDeDRM.py - remove DRM from Mobipocket ebooksQuote:
You can find your PC's PID in the "Help" --> "About" window of the Mobipocket Reader. |
Re: MobiDeDRM.py - remove DRM from Mobipocket ebooksHi
Thanks for the answer! So, i install Mobipocket Reader 6.2 to my Seven x86 32 bits! I have found my PID I have installed Python et wxPython 2.6 I have downloaded MobileDeDRM And i have followed the tutorial So now i have a "outfile.prc" with no DRM! I use MobiledeDRM 002.py instead of MobiledeDRM005.py (no success with 005) The pb now is how can i now if the file is really DRM free????? I have transfered the outfile.prc to my N900 and it tell me "compression format not supported"!!!! What does it mean??? For info, i can read the "free trial file.prc" given by Mobypocket, so my N900 with fbreader can read .prc files! Thanks for your help |
Re: MobiDeDRM.py - remove DRM from Mobipocket ebooksQuote:
As to the compression, Mobipocket ebooks can be compressed (I think there are two compression methods). It sounds like your file is compressed with a compression method that your N900 can't read. You can fix this with a little work. First get Calibre and convert the file to RTF format, then use MS Word to change it to .doc format. Now DL Mobipocket Creator from mobipocket.com & use the .doc file to create a .prc & be sure to choose no compression. There are probably other ways to get there but this is one way I know that will work. There is a "mobi2html.exe" if you can find it online that will convert the .prc to an HTML file which can also be input into Mobipocket Creator. This would save one conversion step but I'm only vaguely aware of this program and have no experience with it. |
Re: MobiDeDRM.py - remove DRM from Mobipocket ebooksThanks guys.
I'm on a mac, so i got the PID for my iphone added it to my diesel ebooks account re downloaded the file and it all worked fine. Decrypted file now works with stanza so I asume it will convert for Kindle as well. I'm now free to buy the books Amazon won't let me purchase from Australia. Yay! |
Re: MobiDeDRM.py - remove DRM from Mobipocket ebooksQuote:
Also, further up the post, I have tried to run the python script and I get a " 'python' is not recognized as an internal or external command, operable program or batch file. Can anyone tell me what I am doing wrong? |
Re: MobiDeDRM.py - remove DRM from Mobipocket ebooksQuote:
If it is installed, try to put the script and your ebooks into the pyhon directory, then run the script from this directory. |
Re: MobiDeDRM.py - remove DRM from Mobipocket ebooksQuote:
I have installed Python. I have tried to run the script "python mobiedrm005.py infile.prc outfile.prc PIN ...replacing the infile, outfile and PIN. I get there error as stated in my prievious post that 'python' is not a valid ..... |
Re: MobiDeDRM.py - remove DRM from Mobipocket ebooksQuote:
|
Re: MobiDeDRM.py - remove DRM from Mobipocket ebooksQuote:
Then has 5 columns Dates, Times, <DIR>, size, file names Resultes are 2 Files 36118 bytes 17 dir 88691576832 bytes free Now when I cd to the file I have my info into: I get 5 files, 2 directorys: Code.text(instructions), mobidedrm.py, mobidedrm002.py, mobidedrm005.py and the book I am trying to convert. As well as 2 directories. indicated by period, and double period. I hope this is what you were asking. I am Clueless, and the name fits. LOL |
Re: MobiDeDRM.py - remove DRM from Mobipocket ebooksQuote:
|
Re: MobiDeDRM.py - remove DRM from Mobipocket ebooksQuote:
I also tried 002 and got "File "mobidedrm002.py", line 19 print "bad key length!" Syntax Error: invalid syntax |
Re: MobiDeDRM.py - remove DRM from Mobipocket ebooksQuote:
Also try to use simple names for your ebooks like 1.prc, 1out.prc (at least replace spaces with underscores). Or put the names of your ebooks into quotes when using MobiDeDRM. |
Re: MobiDeDRM.py - remove DRM from Mobipocket ebooksThought I would add a few tips. I was using WIN XP
Use Python 2.6.6 (I had problems with 3.0 and higher working with the scripts) Rename all book file names to remove any spaces. spaces = bad for the scripts. Once Python is installed you should see windows recognize all the .py scripts and give them a mini icon (looks like a paper with yellow and blue squiggles. Create a folder and put the books to de-crypt in it along with your python scripts. I keep the path simple so I don't have to type much (c:\books) open a command prompt and navigate to this directory. Start>Run>CMD C:\Documents and Settings\user>cd \ C:\>cd books now run your python script C:\books>mobidedrm.py Encryptedbook.azw Decryptedbook.azw UVWXYZ1*2A The output should be: MobiDeDrm v0.01. Copyright (c) 2008 The Dark Reverser Decrypting. Please wait... done Substitute your book name for "encryptedbook.azw" Pay attention to the suffixes some books have ".azw.prc" Substitute the name for what ever you want to call your decrypted book for "Decryptedbook.azw" Substitute your PID for "UVWXYZ1*2A" And you are done! Hope this helps |
Re: MobiDeDRM.py - remove DRM from Mobipocket ebooksProblem?!
I have installed Mobipocket Reader - and can get the PID. I have installed Calibre version 0.7.26 on my pc. I have downloaded and imported the MobiDeDRM 0.13 in Calibre, and added the PID in the PlugIn setup. Ok, so I downloaded a Mobi format book which is DRM'ed with my PID, and I can read it in Mobipocket Reader, which is as expected. But when I try to remove the DRM using Calibre and MobiDeDRM so I can convert the book and read it on Kindle, Calibre informs me that the DRM isn't removed! What's wrong in this setup? I assume that I don't need to install Python since the plugin is imported into Calibre, but is that a mistake? Thanks in advance. |
Re: MobiDeDRM.py - remove DRM from Mobipocket ebooksQuote:
Quote:
|
Re: MobiDeDRM.py - remove DRM from Mobipocket ebooksCan anyone help me convert this prc file to RTF?
hxxp://www.mediafire.com/?k98cwl522v81ig9 I tried but when the conversion is done, the *.RTF file is only 146 pages, which is a part of source file. Thanks so much! :) |
Re: MobiDeDRM.py - remove DRM from Mobipocket ebooksQuote:
|
All times are GMT -6. The time now is 04:11 AM. |