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)

joblack 08-21-2010 02:10 PM

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


 
aineptepub has been upgraded to 5.2. Check out Tetrachroma's blog for more information.

Stream Recorder 08-22-2010 04:07 AM

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


 
Quote:

Originally Posted by KBB (Post 20968)
I would be buying the books on my iPad. Since you obviously know way more than me, where would you suggest I buy them? It looks like Amazon and B&N have the biggest selection of books. Would I be able to buy books on my iPad from either of these and then remove make them so that I can read it on any of my readers?

Buy ebooks from a PC, not from your iPad. Then remove DRM protection and transfer your books to your iPad. If you buy an ebook from your iPad, you will need to re-download it to remove DRM on your PC.

All DRM removal tools stop working from time to time, so there are no ideal shops.

joblack 08-29-2010 10:13 PM

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


 
Quote:

Originally Posted by Stream Recorder (Post 21059)
Buy ebooks from a PC, not from your iPad. Then remove DRM protection and transfer your books to your iPad. If you buy an ebook from your iPad, you will need to re-download it to remove DRM on your PC.

All DRM removal tools stop working from time to time, so there are no ideal shops.

B&N works fine. All ADEPT epub and pdf shops work without problems. I have for Amazon Kindle books no experience - does the iPad read Mobi/Amazon ebooks?

alexthunder 09-03-2010 06:11 AM

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


 
Quote:

Originally Posted by joblack (Post 21178)
does the iPad read Mobi/Amazon ebooks?

Amazon offers Kindle 4 iPad and iPhone apps.

bud_fox 09-08-2010 10:19 AM

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


 
I seem to be having a fairly unique problem....

I can run and get a key absolutely fine - however when I run the ineptepub.pyw no input box appears.
When I run it through Python and look at the log, I get the error message
"AttributeError: function 'd2i_RSAPrivateKey' not found"

Even stranger is that when I use the ineptpdf.pyw it all works fine.

I am using;

Python 2.6.6
Pycrypto 2.1.0 (for 2.6)
ineptepub 5.2

Anyone got any ideas on why this won't work?!

Cheers

Bud

Stream Recorder 09-08-2010 01:13 PM

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


 
Quote:

Originally Posted by bud_fox (Post 21310)
I seem to be having a fairly unique problem....

I can run and get a key absolutely fine - however when I run the ineptepub.pyw no input box appears.
When I run it through Python and look at the log, I get the error message
"AttributeError: function 'd2i_RSAPrivateKey' not found"

Even stranger is that when I use the ineptpdf.pyw it all works fine.

I am using;

Python 2.6.6
Pycrypto 2.1.0 (for 2.6)
ineptepub 5.2

Anyone got any ideas on why this won't work?!

What version of ineptkey do you use? Do you use Python 2.6.6 x32 and PyCrypto 2.1.0 x32? Have you tried an older version of ineptepub?

Narc 09-19-2010 08:55 AM

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


 
I have no idea what I've just done, but it works like a charm. I just followed the instructions (and used the last program versions).

Vista users should run the installation of PyCrypto as administrator.

I don't have ADE installed but Sony's Reader Library. I tested the epubs being DRM free with Firefox add-on ePub-Catalog. Good to know that this How-To works for the newest Sony e-reader (PRS-350) as well.

Piracy is wrong, but DRM is evil! Now I'm in control of the digital content I bought and should be able to use freely.

Thanks to the community for making this possible.

epazotl 09-27-2010 01:07 AM

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


 
Argh! I too am getting the error "File name in directory and header differ. I tried unzipping and rezipping with epub zip, as previously suggested, but when I run ineptepub_v5.2.pyw on the new epub, I get the error that it is not an Adept Epub. I thought that maybe just the act of unzipping and rezipped with epub zip might have removed the DRM, but I checked and it is not so.

Tried with several different books.

Any fixes or suggestions?

orangecatguy 09-30-2010 02:44 PM

Re: How to remove DRM from sony ebooks


 
"Download ineptkey.pyw and ineptepub.pyw and put them into one directory"

FROM WHERE?

Narc 10-01-2010 08:11 AM

Re: How to remove DRM from sony ebooks


 
Quote:

Originally Posted by orangecatguy (Post 21878)
"Download ineptkey.pyw and ineptepub.pyw and put them into one directory"

FROM WHERE?

First page of this thread, post #3:

ineptkey.pyw
Code:

http://pastie.org/1030386
ineptepub.pyw 5.2
Code:

http://pastie.org/1032773

KBB 10-02-2010 02:24 PM

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


 
I just got a new computer. Does this work on a Mac? If so, how?

dinker99 10-20-2010 03:05 AM

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


 
I just viewed the book in Calibre and printed it to PDF using CutePDF, seems a lot simpler.

Stream Recorder 10-20-2010 10:08 AM

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


 
Quote:

Originally Posted by dinker99 (Post 22375)
I just viewed the book in Calibre and printed it to PDF using CutePDF, seems a lot simpler.

Are you sure the file you tried had any DRM protection?

dinker99 10-21-2010 01:01 PM

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


 
Quote:

Originally Posted by Stream Recorder (Post 22383)
Are you sure the file you tried had any DRM protection?

Well, Calibre wouldn`t convert it to a PDF and the Adobe PDF printer didn`t produce any output. I also had success by using Calibre to print to a TIF and then running that through Omnipage Professional.

Stream Recorder 10-22-2010 03:40 AM

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


 
Quote:

Originally Posted by dinker99 (Post 22410)
I also had success by using Calibre to print to a TIF and then running that through Omnipage Professional.

I use Abbyy Finereader and freeware Cuneiform instead. The problem is that using OCR takes too much time and is not 100% perfect.

atomic_monkey 10-23-2010 06:10 PM

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


 
Like a lot of people in this thread, I know nothing about computers. I downloaded Adobe Digital Editions, Python, PyCrypto, ineptkey.pyw.txt, aineptepub.pyw.txt, and put both scripts (i.e. both txt files) into a single folder.

I have no idea how to do steps 7 and 8. You computer whizziz mistakenly think they are self-explanatory. There are not:

7. Run ineptkey.pyw
8. Run ineptepub.pyw

How do I "run" them? I've extracted the text file, but what do I do with it? I tried copying-and-pasting them into Windows Command Prompt/DOS. That did nothing.

I see that Python has its own command prompt window. I figured I'm supposed to copy the script text into that, but that's impossible. When I'm in the Python command window it appears that "right clicking" is disabled -- I am not able to call up the option to paste something. Futhermore, there is no drop down menu in Python command prompt that gives me a "paste" option. So short of retyping the entire script, it is impossible for me to enter it into Python.

What am I doing wrong?

Thank.

Drisanna 10-24-2010 06:14 AM

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


 
You should just need to rename the .txt files to change the extension to .pyw. Then in explorer, double click on the file name. That runs them, as they are already associated with Python.

Hope this helps.

atomic_monkey 10-24-2010 08:26 AM

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


 
Quote:

Originally Posted by Drisanna (Post 22455)
You should just need to rename the .txt files to change the extension to .pyw. Then in explorer, double click on the file name. That runs them, as they are already associated with Python.

Hope this helps.

Thanks. The definiately hepled.

I ran the first script successfully ("key successfully retrieved to adeptkey.der"). I ran the second script and it pulled up the "Automated Inept ePub Decyrpter" window.

But when I try to de-DRM the book I'm getting an error message. It says "Error in: [book title] problem decrytping session key".

What am I doing wrong? Thanks.

Stream Recorder 10-24-2010 10:04 AM

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


 
Quote:

Originally Posted by atomic_monkey (Post 22456)
But when I try to de-DRM the book I'm getting an error message. It says "Error in: [book title] problem decrytping session key".

ineptepub.pyw error: Problem decrypting session key

atomic_monkey 10-26-2010 11:04 PM

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


 
Quote:

Originally Posted by Stream Recorder (Post 22459)

Thanks. But before I give this a try, let me make sure I am going down the right path.

I know there are (at least) two different threads in this forum for removing DRM from .epub files. There's this thread and there's one for .epub books bought from Barnes and Noble.

The book I'm trying to crack is on my Nook. However, I didn't buy it directly from Barnes and Noble. I bought it from a British site (pickabook.com). I assume that means I should be using the DRM-cracking method detailed in this thread, not the method from the Barnes and Noble .epub thread. Is that right?

Thanks again.

Stream Recorder 10-27-2010 02:24 AM

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


 
Quote:

Originally Posted by atomic_monkey (Post 22534)
The book I'm trying to crack is on my Nook. However, I didn't buy it directly from Barnes and Noble. I bought it from a British site (pickabook.com). I assume that means I should be using the DRM-cracking method detailed in this thread, not the method from the Barnes and Noble .epub thread. Is that right?

I don't really know, but I suggest you to try the method for Barnes and Noble .EPUB books first.

phdnofuddy 10-29-2010 09:25 PM

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


 
I read the entire thread, followed all instructions, installed Python 2.6 and PyCrypto successfully or so it seemed.
I saved the code for ineptkey.pyw and ineptepub.pyw together in a C:FreeEpub directory.

I double-click on ineptkey.pyw and get nothing. Help please?

Not sure if this helps, but in Explorer the "type" attribute said "Python file (no console)" when I first saved the code pasted into Notepad as a .pyw file and in the "open with" dialog, the file was associated with "pythonw".

I also used "open with" dialog to change the default program to "python" and the type attribute changed to "PYW File", but still nothing on double-click, except the python command window opened briefly and then disappeared.

Ideas?

Windows 7 Pro
Python 2.6.5 32-bit
PyCrypto 2.0.1 32-bit
ineptkey 5.2
ineptepub 5


Thanks!

Stream Recorder 10-30-2010 12:50 AM

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


 
Quote:

Originally Posted by phdnofuddy (Post 22619)
I double-click on ineptkey.pyw and get nothing. Help please?

Not sure if this helps, but in Explorer the "type" attribute said "Python file (no console)" when I first saved the code pasted into Notepad as a .pyw file and in the "open with" dialog, the file was associated with "pythonw".

I also used "open with" dialog to change the default program to "python" and the type attribute changed to "PYW File", but still nothing on double-click, except the python command window opened briefly and then disappeared.

PYW files are used in Windows to indicate a script needs to be run using PYTHONW.EXE instead of PYTHON.EXE in order to prevent a DOS console from popping up to display the output. So you need to use PYTHONW.EXE for opening your PYW files.

KBB 10-30-2010 07:29 PM

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


 
Does this work using a Mac? I have all the files on my old PC, but I want to get rid of it and start downloading and freeing my new books only on my Mac.

phdnofuddy 10-31-2010 05:54 PM

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


 
@Stream Recorder - thanks, but I tried to double click when the file was associated with pythonw AND python - neither worked. Thought I explained in my post, but obviously that bit wasn't clear.

Anyone have a suggestion of something I haven't tried that might make it work?

Stream Recorder 11-01-2010 12:22 AM

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


 
Quote:

Originally Posted by phdnofuddy (Post 22659)
@Stream Recorder - thanks, but I tried to double click when the file was associated with pythonw AND python - neither worked. Thought I explained in my post, but obviously that bit wasn't clear.

Try to download from pastie.org, not to copy-paste (Just hit the download link). And make sure to save ineptkey.pyw as a file with a .PYW extension (not .PY, not .TXT,...).

yarnin 11-04-2010 07:28 PM

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


 
Hello

after reading all the pages on this forum and excuting the steps i am still hitting a dead-end.

i am using the following:

-win 7 Pro
-Python 2.7
-crypto 2.3
-ineptkey_v43
-ineptepub(v4.1)

i managed to creat the .der file
but whenever i am trying to run the ineptepub csript -nothing happen
i am not seeing any box in which to enter the book or select anything else...

can anyone list the correct set of Versions to use in order to remove the Adobe DRM from an epub file ?
pluse,

-where do you see the log ?
-when running the phytonw.exe nothing happen but when i run the Pyhoton.exe i am getting a command line in which i am able to execute the first script but not the other...


please help - as i am getting no help from the Adobe support department
make me mad to realize i paid for a book that i cant read ....


please help

Thank you.

Stream Recorder 11-05-2010 12:54 PM

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


 
Quote:

Originally Posted by yarnin (Post 22779)
can anyone list the correct set of Versions to use in order to remove the Adobe DRM from an epub file ?
pluse,

ineptepub.pyw 5.2 was reported to work well.

or-reader-2011 11-21-2010 03:06 PM

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


 
I have ineptepub version 5.2 and pycrypto installed... when attempting to decrypt, I receive the error:

Error: File name in directory "..." and header "..." differ.

I haven't found this answered elsewhere in the forum. Can anyone advise on how to respond to this error message?

or-reader-2011 11-21-2010 03:33 PM

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


 
Never mind, it was a corrupt zip file. I didn't see my exact error in the thread, but after digging around I tried to re-zip the file and it worked without a problem.

Related thread:
ineptepub.py error: zipfile.BadZipfile: File name in directory OPS/ and header differ

Stream Ripper 11-21-2010 11:40 PM

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


 
Quote:

Originally Posted by or-reader-2011 (Post 23139)
Never mind, it was a corrupt zip file. I didn't see my exact error in the thread, but after digging around I tried to re-zip the file and it worked without a problem.

Thanks for your response and I'm glad you got it working! :)

baxna 11-26-2010 02:38 AM

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


 
Hi there, this doesn't seem to be working for me... maybe you can tell me what I'm doing wrong?

On my WinXP laptop, I installed the following:
  1. Adobe Digital Editions
  2. python-2.7.msi
  3. pycrypto-2.1.0.win32-py2.7.exe
  4. ineptkey.pyw (tried version 4.3 and 5)
  5. ineptepub.pyw (version 4.1)

Then I copied the 2 pyw files into the folder where my Sony Reader books are located. I double-clicked on the ineptkey.pyw file... and absolutely nothing happened. My mouse cursor changed to an hourglass for a split-second, but that's it. I don't see any adeptkey.der anywhere??

Thanks.

Stream Recorder 11-26-2010 10:13 AM

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


 
Quote:

Originally Posted by baxna (Post 23217)
I double-clicked on the ineptkey.pyw file... and absolutely nothing happened. My mouse cursor changed to an hourglass for a split-second, but that's it. I don't see any adeptkey.der anywhere??

Make sure
1. to download python scripts, not copy-paste them
2. to rename downloaded .TXT files into .PYW files.

If this doesn't help, then open Python, then go to File -> Open and open your .PYW script.

baxna 11-26-2010 05:12 PM

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


 
Thanks for the suggestions. I tried downloading the scripts again, and made sure the file extensions are showing so I can see what type of file it really is. Also, clicking on the Python program does nothing... should an interface window open or something happen? Also, I can click on the Python command line app and that opens, could you tell me how to accomplish all this with the command line?

Stream Recorder 11-26-2010 09:55 PM

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


 
baxna, could you please right click on ineptkey.pyw and open the file properties and make a screenshot of them?

Make sure again that you use Python x32, not x64.

Also please try the following:
  1. Open Command Prompt(run cmd.exe).
  2. Change the directory to where you saved the pyw scripts
    i.e.
    Code:

    cd c:/undrm_tools/
  3. Run ineptkey.pyw by invoking python first as follows:
    Code:

    python ineptkey.pyw
    If that does not work, then try running it with pythonw as follows:
    Code:

    pythonw ineptkey.pyw

After running your scripts by invoking python or pythonw, you should get at least an error message that can be used to find out what is going wrong.

Stream Recorder 11-26-2010 11:24 PM

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


 
Quote:

Originally Posted by KBB (Post 21919)
I just got a new computer. Does this work on a Mac?

Try to use the following:
DeDRM AppleScript for Mac OS X 10.5, 10.6

baxna 11-26-2010 11:55 PM

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


 
I think I've got what you're looking for:



Code:

python ineptkey.pyw
File "ineptkey.pyw", line 279 with open(keypath, 'wb') as f:
SyntaxError: invalid syntax

Any thoughts?

klist 11-27-2010 01:40 AM

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


 
I have a problem removing a drm of an epub.

I have python 2.7 installed and pycrpypto for 2.7.

Then i take ineptkey version 4.3 and ineptepub 5.2 from pastie.

It makes the key.der file but when i open the pastie.pyw (ineptepub) and click on "decrypt" i get the error: Problem decrypting Session Key

What is my fault?
I have win 7 32 bit

Thanks a lot

Stream Recorder 12-02-2010 11:33 AM

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


 
Quote:

Originally Posted by baxna (Post 23241)
Code:

python ineptkey.pyw
File "ineptkey.pyw", line 279 with open(keypath, 'wb') as f:
SyntaxError: invalid syntax


Python is white space sensitive. Make sure you download the ineptkey.pyw, not copy-paste it.

Stream Recorder 12-02-2010 11:37 AM

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


 
Quote:

Originally Posted by klist (Post 23242)
I have a problem removing a drm of an epub.

I have python 2.7 installed and pycrpypto for 2.7.

Then i take ineptkey version 4.3 and ineptepub 5.2 from pastie.

It makes the key.der file but when i open the pastie.pyw (ineptepub) and click on "decrypt" i get the error: Problem decrypting Session Key

What is my fault?
I have win 7 32 bit

ineptepub.pyw error: Problem decrypting session key


All times are GMT -6. The time now is 12:36 AM.