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

Remove Kindle DRM in Linux: FindPID to read Amazon .PRC/.AZW book on Sony Reader

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

drsquash 05-11-2011 03:51 PM

Re: Remove Kindle DRM in Linux: FindPID to read Amazon .PRC/.AZW book on Sony Reader


 
Yes, it seems that it cannot work on linux easily. The tools rely on windows and its libraries. k4pcutils.py seems to need

ctypes.windll.crypt32.CryptUnprotectData

and I do not think there is a linux equivalent. I managed to hardcode into the code the kindle.info file, but I can't find the crypt32 module for linux.

but i do not give up (yet).

drsquash 05-15-2011 11:19 AM

Re: Remove Kindle DRM in Linux: FindPID to read Amazon .PRC/.AZW book on Sony Reader


 
I tried another way. I installed Calibre in wine1.3. It installs, but I cannot add books (it seems there is a bug when running multiprocessing python code on wine, here ). So I went for the command line version in wine. I installed python, that happens to be a 32bit version. I found the kindle.info file and I ran the k4pc calibre plugin from command line (that is from python interpreter). I added a few print here and there in the mobidedrm.py code to check where it was, and it looks like now it at least generates a few PIDs, but at the end I get the same error message that says that probably the PID was not right...

if anybody has any idea on this, please let me know.

Also, I am getting interested in this drm stuff. Where can I find some info, other then the python programs, on how the drm is put into the prc/azw files?

/dr

ps:I gave up porting k4pcutils.py to Linux. It might make sense to use cdll and wine to import the wine kernel32.dll.so and the other libraries. By I am python ignorant, and I am not even sure this is the way to go.


All times are GMT -6. The time now is 09:13 PM.