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 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 07:08 AM.