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)

any ANONYMOUS forum user 01-18-2010 04:03 AM

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.

Stream Recorder 01-18-2010 04:55 AM

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.

any ANONYMOUS forum user 01-18-2010 05:22 AM

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.

anonymous1234 04-24-2010 06:07 PM

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?

Stream Recorder 04-24-2010 10:47 PM

Re: MobiDeDRM.py - remove DRM from Mobipocket ebooks


 
Quote:

Originally Posted by anonymous1234 (Post 18541)
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.

dynalady 05-15-2010 12:08 PM

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 .

Beginner 06-11-2010 05:08 PM

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

Stream Recorder 06-12-2010 07:05 AM

Re: MobiDeDRM.py - remove DRM from Mobipocket ebooks


 
Quote:

Originally Posted by Beginner (Post 19551)
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

Beginner 06-12-2010 03:28 PM

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...

waleng 07-01-2010 03:04 PM

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?

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

Jodievt 08-27-2010 09:59 PM

Re: MobiDeDRM.py - remove DRM from Mobipocket ebooks


 
hi,

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

dmarcus48 09-05-2010 09:00 AM

Re: MobiDeDRM.py - remove DRM from Mobipocket ebooks


 
First 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.

Panayotis 09-16-2010 01:57 PM

Re: MobiDeDRM.py - remove DRM from Mobipocket ebooks


 
Hi

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!)

slayda 09-16-2010 08:10 PM

Re: MobiDeDRM.py - remove DRM from Mobipocket ebooks


 
Quote:

Originally Posted by Panayotis (Post 21503)
Hi

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!)

You can DL the Mobipocket Reader from mobipocket.com for your PC. You should then get a PID for the PC that you would provide to the seller of the DRMed .prc ebook. Use that PID with mobidedrm.py.

You can find your PC's PID in the "Help" --> "About" window of the Mobipocket Reader.

Panayotis 09-16-2010 10:56 PM

Re: MobiDeDRM.py - remove DRM from Mobipocket ebooks


 
Hi

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

slayda 09-17-2010 07:29 AM

Re: MobiDeDRM.py - remove DRM from Mobipocket ebooks


 
Quote:

Originally Posted by Panayotis (Post 21512)
Hi

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

To see if it is decrypted, i.e. DRM free, open it in Mobipocket Reader on your PC - on the left you'll see a frame with "BOOKSHELF" at the top. Just below that you'll see "ebooks". Click this & find your ebook in the bookshelf. Right click on your ebook to bring up a menu & choose "Properties", then select the "Summary" tab. At the very bottem of this window, you'll see "Encryption:" & the encryption state. If you have removed the DRM it will show "Non Encrypted"

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.

bee 09-29-2010 05:17 AM

Re: MobiDeDRM.py - remove DRM from Mobipocket ebooks


 
Thanks 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!

CluelessinMO 10-24-2010 06:32 PM

Re: MobiDeDRM.py - remove DRM from Mobipocket ebooks


 
Quote:

Originally Posted by dynalady (Post 18956)
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 .

As with this quote. I am also having problems attaching MobiDeDRM to Calibre. I get a "Invalid Plugin message"....Any help will be appreciated....
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?

Stream Recorder 10-25-2010 01:17 AM

Re: MobiDeDRM.py - remove DRM from Mobipocket ebooks


 
Quote:

Originally Posted by CluelessinMO (Post 22463)
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?

Have you installed python?

If it is installed, try to put the script and your ebooks into the pyhon directory, then run the script from this directory.

CluelessinMO 10-25-2010 07:02 AM

Re: MobiDeDRM.py - remove DRM from Mobipocket ebooks


 
Quote:

Originally Posted by Stream Recorder (Post 22465)
Have you installed python?

If it is installed, try to put the script and your ebooks into the pyhon directory, then run the script from this directory.


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 .....

Stream Recorder 10-25-2010 09:53 AM

Re: MobiDeDRM.py - remove DRM from Mobipocket ebooks


 
Quote:

Originally Posted by CluelessinMO (Post 22477)
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 .....

Open command prompt, go to the python directory, type "dir" and press Enter. Then post or PM the results of the dir command.

CluelessinMO 10-26-2010 06:57 AM

Re: MobiDeDRM.py - remove DRM from Mobipocket ebooks


 
Quote:

Originally Posted by Stream Recorder (Post 22478)
Open command prompt, go to the python directory, type "dir" and press Enter. Then post or PM the results of the dir command.

It auto.. starts with my C:\Users\'Name'
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

Stream Recorder 10-27-2010 02:43 AM

Re: MobiDeDRM.py - remove DRM from Mobipocket ebooks


 
Quote:

Originally Posted by CluelessinMO (Post 22515)
It auto.. starts with my C:\Users\'Name'
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

There is no python in this directory. You either need to add python directory to the PATH or copy your scripts and ebooks to the python directory (and then launch the script from this directory).

CluelessinMO 10-27-2010 07:43 AM

Re: MobiDeDRM.py - remove DRM from Mobipocket ebooks


 
Quote:

Originally Posted by Stream Recorder (Post 22540)
There is no python in this directory. You either need to add python directory to the PATH or copy your scripts and ebooks to the python directory (and then launch the script from this directory).

Ok, I moved the files to the Python file and now I get "Can't open file 'mobidedrm005.py': [Errno 2] No such file or directory"

I also tried 002 and got "File "mobidedrm002.py", line 19 print "bad key length!" Syntax Error: invalid syntax

Stream Recorder 10-27-2010 01:44 PM

Re: MobiDeDRM.py - remove DRM from Mobipocket ebooks


 
Quote:

Originally Posted by CluelessinMO (Post 22554)
Ok, I moved the files to the Python file and now I get "Can't open file 'mobidedrm005.py': [Errno 2] No such file or directory"

I also tried 002 and got "File "mobidedrm002.py", line 19 print "bad key length!" Syntax Error: invalid syntax

MobiDeDRM v.0.13 is available.

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.

jerreddredd 11-03-2010 06:46 AM

Re: MobiDeDRM.py - remove DRM from Mobipocket ebooks


 
Thought 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

Caspar 11-04-2010 01:18 PM

Re: MobiDeDRM.py - remove DRM from Mobipocket ebooks


 
Problem?!

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.

Stream Recorder 11-07-2010 01:18 AM

Re: MobiDeDRM.py - remove DRM from Mobipocket ebooks


 
Quote:

Originally Posted by Caspar (Post 22766)
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?

Try to use python scripts without Calibre first.

Quote:

Originally Posted by Caspar (Post 22766)
I assume that I don't need to install Python since the plugin is imported into Calibre, but is that a mistake?

IMHO you need python to launch python plug-ins.

Green Tea 11-13-2010 01:02 AM

Re: MobiDeDRM.py - remove DRM from Mobipocket ebooks


 
Can 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! :)

Stream Recorder 11-14-2010 11:07 AM

Re: MobiDeDRM.py - remove DRM from Mobipocket ebooks


 
Quote:

Originally Posted by Green Tea (Post 22962)
Can anyone help me convert this prc file to RTF?

You can remove DRM protection on a computer which was used to purchase your file only.


All times are GMT -6. The time now is 04:11 AM.