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

How to remove DRM from sony ebooks (BBeB and EPUB) with ineptkey.pyw, inepepub.pyw

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

Stream Recorder 03-11-2010 01:51 AM

Re: How to remove DRM from sony ebooks (BBeB and EPUB)


 
ineptkey.pyw, version 4.3
Code:

http://pastebin.com/f6ffa029
ineptepub.pyw, version 4
Code:

http://pastebin.com/f5c0ce06b
Note that ineptkey.pyw, version 4.3 and ineptepub.pyw, version 4 can't be used together.

foghat 03-20-2010 11:51 AM

Re: How to remove DRM from sony ebooks (BBeB and EPUB)


 
Hi,

When I double click the ineptkey.pyw, I keep getting an error that states:
---------------------------
ADEPT Key
---------------------------
This script requires PyCrypto, which must be installed separately. Read the top-of-script comment for details.
---------------------------
OK
---------------------------

Thing is, I have installed PyCrypto (pycrypto-2.1.0.win32-py2.6.zip) - during the installation, it correctly finds my python 2.6 installation. I see the pycrpto files at:

C:\Python26\Lib\site-packages\Crypto

Not sure if it makes a difference, but I have tried running ineptkey.pyw from the python 26 directory and The Crypto directory, same error. I have tried rebooting as well.

I am running win7 64bit - not sure if that is causing any issues. Anyone have any thoughts?

Stream Recorder 03-20-2010 12:15 PM

Re: How to remove DRM from sony ebooks (BBeB and EPUB)


 
Quote:

Originally Posted by foghat (Post 17402)
This script requires PyCrypto, which must be installed separately.
....
Thing is, I have installed PyCrypto (pycrypto-2.1.0.win32-py2.6.zip) - during the installation, it correctly finds my python 2.6 installation. .
....
I am running win7 64bit - not sure if that is causing any issues. Anyone have any thoughts?

win7 64bit, so you can try to use pycrypto-2.0.1.win-amd64-py2.6.exe instead of pycrypto-2.1.0.win32-py2.6.zip.

But I recommend to use pyhton x32 with pycrypto x32.

foghat 03-20-2010 12:37 PM

Re: How to remove DRM from sony ebooks (BBeB and EPUB)


 
^ Thanks. I looked for a 64bit version, but didn't see it at the bottom there. But now found it and installed it.

So, now I can get one step further, inptkey.pyw runs, but now I get the following error:

Code:

Traceback (most recent call last):
  File "D:\Users\username\Documents\Documents\ebooks\epub drm removal\ineptkey.pyw", line 230, in main
    retrieve_key(keypath)
  File "D:\Users\username\Documents\Documents\ebooks\epub drm removal\ineptkey.pyw", line 149, in retrieve_key
    vendor = cpuid0()
  File "D:\Users\username\Documents\Documents\ebooks\epub drm removal\ineptkey.pyw", line 112, in cpuid0
    cpuid0__(buffer)
WindowsError: exception: access violation writing 0x0000000002447740

Thoughts?

When you say, "But I recommend to use pyhton x32 with pycrypto x32"

Do you mean install the 32 bit versions on a 64bit machine or that I should try find a 32bit machine to do this on?

Stream Recorder 03-20-2010 12:43 PM

Re: How to remove DRM from sony ebooks (BBeB and EPUB)


 
Quote:

Originally Posted by foghat (Post 17404)
Do you mean install the 32 bit versions on a 64bit machine or that I should try find a 32bit machine to do this on?

32bit python with 32bit pycrypto was tested on Windows 7 64 bit. This combination should work just fine.

foghat 03-20-2010 01:50 PM

Re: How to remove DRM from sony ebooks (BBeB and EPUB)


 
Thanks,

Getting closer and closer...

So, I installed the 32 bit versions and now I can retrieve my key fine. I have my encrypted epub, which I can view in Adobe Digital Editions.

However, when I run ineptepub.pyw, I get the following error:

Code:

Error: list assignment index out of range
Any thoughts?

foghat 03-20-2010 02:04 PM

Re: How to remove DRM from sony ebooks (BBeB and EPUB)


 
figured it out. I had to use version 2 of ineptepub.pyw.

Version 4 was giving me the error.

lovebooks 04-01-2010 05:33 PM

Re: How to remove DRM from sony ebooks (BBeB and EPUB)


 
I had read through the thread and am still having problems.

I have:
-Windows 7
-Python 2.65 (read that v 3.01 wasn't working)
-pycrypto 2.01
-ineptkey 3
-ineptpub 2
- adobe digital edition 1.72 (couldn't find older version)

Thanks for any suggestions you may have

lovebooks 04-01-2010 05:48 PM

Re: How to remove DRM from sony ebooks (BBeB and EPUB)


 
Okay I downloaded ineptkey 4.3 and ineptpub 4 but now I get the following error message "error: list assignment index out of range"

Stream Recorder 04-01-2010 11:03 PM

Re: How to remove DRM from sony ebooks (BBeB and EPUB)


 
Quote:

Originally Posted by lovebooks (Post 17815)
I had read through the thread and am still having problems.

I have:
-Windows 7
-Python 2.65 (read that v 3.01 wasn't working)
-pycrypto 2.01
-ineptkey 3
-ineptpub 2
- adobe digital edition 1.72 (couldn't find older version)

Make sure to use Python x32, Pycrypto x32.

You should be able to download ADE 1.71 from
http://stream-recorder.com/forum/sho...93&postcount=3

Quote:

Originally Posted by lovebooks (Post 17816)
Okay I downloaded ineptkey 4.3 and ineptpub 4 but now I get the following error message "error: list assignment index out of range"

ineptepub v.4 does not work with ineptkey v.4 (mentioned by foghat above).

Try to use aineptepub.pyw, version 4.1 (with ineptkey v.4). It should work with both ADE 1.71 and ADE 1.72
Code:

http://pastebin.com/f4a7c338a
aineptepub.pyw removes protection from whole folders of EPUB eBooks (rather than a single EPUB file).

Alternatively you can use ineptepub.pyw v.2 with ineptkey v.4.


All times are GMT -6. The time now is 08:10 PM.