Shiny New E-Book Gizmo: The Amazon Kindle


View Full Version : eReader Decoder Tool


wallcraft
02-10-2008, 11:23 AM
The "Dark Reverser" has been busy this weekend. In addition to mobidedrm we now have ereader2html:
Converts eReader books to HTML
Usage:
ereader2html infile.pdb outdir "your name" credit_card_number
As pointed out by AnemicOak in the Mobipocket Decoder Tool (http://www.mobileread.com/forums/showpost.php?p=148182&postcount=27) thread, this tool would be better if it also exploded DRM-free eReader files.

Of the major e-book formats, Adobe is now apparently the most secure. Perhaps because PDF encryption has been through the DRM wars.

darkninja
02-10-2008, 01:42 PM
I made a new version, 0.02, that works better for certain files.

AnemicOak
02-10-2008, 01:49 PM
Yep, the new version works with the Fictionwise freebie that the first version errored out on.

Dajala
02-10-2008, 02:58 PM
And where will I find this tool please?

Patricia
02-10-2008, 03:00 PM
And where will I find this tool please?

We aren't able to say. If we allow links then there could be legal trouble. Do a Google search and follow any hints given in the posts.

Kurtus
02-12-2008, 04:57 PM
Still does not work with eDictionary. What a pity...

JSWolf
02-12-2008, 04:58 PM
Still does not work with eDictionary. What a pity...
Do you have .01 or .02? .02 works on more eReader format eBooks then .01.

tdproffitt
02-12-2008, 06:44 PM
Having used a Palm TX for a while as an ebook reader and just recently gotten a Cybook Gen3, I was really happy to come across Darkninja's tool! Being able to read my old ereader books on my Cybook has made me sooo very happy. I was a bit reluctant to go to an Eink device, since none of them are able to read the DRM ereader files.

I wish the book publishers would decide to drop DRM like a lot of the music industry seems to be doing. I know I'm much more likely to purchase a book or album if I know I'll be able to still read or listen to it on something if the unit I'm using now dies (or in the case of Mobipocket - if the company's web site goes down). I think that the majority of people who actually pay for something in the first place aren't going to be the people who pirate. (True in my case at least.)

Anyway, on a side note, I think I've run across a bug in the 02 version - I've gotten 'NameError: global name 'b' is not defined' (line 240) on a couple of files.

darkninja
02-13-2008, 11:40 AM
I made a blog!

http://darkreverser.wordpress.com/

There you can read about my reversing!

Dave Berk
02-13-2008, 03:01 PM
Thanks, darkninja, works a treat.

It is the most wonderful feeling, taking a drm'ed file and making it drmfree. I almost wish more format were drm'ed :)

JSWolf
02-13-2008, 10:26 PM
I made a blog!

http://darkreverser.wordpress.com/

There you can read about my reversing!
Your blog is a great idea and solves all the problems of linking to your code.

HarryT
02-14-2008, 02:34 AM
You need to be aware that, if you live if the United States, the writing and distribution of DRM-removal tools is a criminal offence under the Digital Millennium Copyright Act (DMCA). PLEASE take care - I wouldn't want to see you get into trouble over this :(.

adelheid
02-15-2008, 07:00 AM
I tried the ereader tool. Is it to be expected that it runs for a very long time (i.e. more than 5 minutes)? I tried it on a Mac, MacPython 2.5.

Edit: just downloaded version 0.3. Working as expected. Thanks!

TallMomof2
02-15-2008, 11:47 AM
I'm running a very fast Quad Core and I'm only using at most 35% of my CPU and it still can take a while especially on very big files. Over 1MB take upwards of 5 minutes and I'm running 0.3.

smaulz
02-19-2008, 11:01 AM
Okay, I must be touched in the head or something. I've downloaded 0.3, followed the instructions, and have yet to make it work. I keep getting an "incorrect name or cc#" error. I've double-checked everything, even going so far as to reset the codes on the ereader.com website, and still nothing. I'm sure I've got the correct information, I just can't make this work. Thoughts? Help?

[edit]
Skip it, I AM retarded. The underscores in the cc# were giving me trouble. All that work for nothing. :) Thanks for this, by the way! I'd pretty much kissed those books goodbye when I got my 505. It's good to have them back! THANKS!

simond
02-19-2008, 11:04 AM
I've only used it on FreeBSD so far, but the following syntax worked for me:

ereader2html MyBook.pdb dir_I_want_html_in "My Name" 1234123412341234

(obviously not cut and paste ;) )

For me it just worked, but make sure you put the name in quotes though, especially if there's a space in it

TallMomof2
02-19-2008, 01:35 PM
I was able to convert over 200 books (I spent way too much money at eReader over the years) with only 6 that failed to convert. 5 gave me an error stating that is was the wrong eReader version and the last was an out of range index error. That's excellent results.

badgoodDeb
02-19-2008, 03:37 PM
I spent way too much money at eReader over the years

Ditto!! Thanks for this tool. My eyes were going bad reading on my Palm, so now I can take my purchased books and read them on another device. Having paid good money for them, there's no way I'm going to share them with anybody else .... but it's nice to be able to read them myself.

Lomez
02-20-2008, 01:44 PM
Like TallMomof2, I've spent way too much at ereader over the years (to the tune of +200 books). My heart skipped a beat when I saw there is now a way to be able to convert them! However, I must be a moron because I just can't get it to work. Would anyone be willing to clarify for me the steps involved (besides the installation of ActivePython, which I was able to manage, despite my apparent moronic intellect...).
Thank you in advance to anyone who has the patience to give me a hand!

wallcraft
02-20-2008, 02:10 PM
We are not supposed to help with this particular command, but I suggest looking at How to make Igor's script work (http://www.mobileread.com/forums/showthread.php?t=18310) for generic python and Windows command line info. Also, don't forget the double quotes.

bwaldron
02-23-2008, 05:49 PM
I was able to convert over 200 books (I spent way too much money at eReader over the years) with only 6 that failed to convert. 5 gave me an error stating that is was the wrong eReader version and the last was an out of range index error. That's excellent results.

For the books in my collection that resulted in "wrong ereader version", I found that re-downloading them from my account page at ereader gave me books that worked.

I also have one (out of about 40) with the index out of range error.

TallMomof2
02-24-2008, 10:11 AM
I was going to try and redownload the half dozen or so books and try again but I haven't gotten around to it. Thanks for the suggestion!

mmumma
02-24-2008, 04:22 PM
I apologize for asking, but I simply cannot figure out how to make this wonderful script run. Mac OS X, Python 2.5, save the downloaded file as ereader2html.py but cannot figure out how to run from the command line. When it opens in IDLE I can run it and get the message describing the appropriate syntax, but cannot run it (and therefore use the proper syntax) from the terminal. Maybe it's an issue about proper paths, etc., but I would dearly appreciate it if an OS X user who has successfully used this script would spoon feed a dummy like me some directions. BTW, "how to make Igor's script work" does not fix my problem.....thanks in advance.

mmumma
02-25-2008, 08:33 AM
OK, nevermind, I got it. As I suspected, I was having syntax issues with the path to the files. Works like a charm. Thanks so much for this tool -- now reading on iPod touch, my latest favorite reading device!

TallMomof2
02-28-2008, 07:31 AM
I redownloaded the five or so books that didn't work and all but two converted. The two that didn't convert are bundles published by eReader so I suspect that has something to do with the problem. No big loss since they were freebies and if I want to read them I have my Palm and my Desktop.

The file that gave me the Index String error still had the error.

Still, this is a great tool!

mateo
03-22-2008, 10:10 PM
Can't get the darn thing to run here. No matter what I type, I get the same message:

: No such file or directory

so I don't think that's an error from the script. maybe i'm missing one of the dependencies. i have python 2.5 though.

TallMomof2
03-23-2008, 01:00 PM
Do you have Python in your PATH command? I'm assuming you're on a Windows machine.

JSWolf
03-23-2008, 05:57 PM
In Windows, from a command line, you type ...

filename.py options options options

Something like that.

TallMomof2
03-24-2008, 08:15 AM
Also be sure to navigate to the folder where your script is located.

badgoodDeb
03-24-2008, 12:25 PM
On a mac, my command line is:

/usr/local/bin/pythonw scriptname.py "bookname w spaces.pdb" anydir/ "Name On Card" last8digitsofcard

While I am sitting in the directory that has scriptname.py and bookname.pdb in it. "anydir" doesn't have to pre-exist. And, the code says you only need the last 8 digits of the card, so that's all I bother with.

Or <path-to>/scriptname.py if it isn't in the current path. For example: ../../scriptname.py

Argel
05-10-2008, 11:35 AM
Can I add my thanks for this wonderful tool.

One question - will it be developed so that it can deal with footnotes, which seem at present to be deleted entirely.

JSWolf
05-10-2008, 11:51 AM
If you do not have ereader2html.py, then you are out of luck. It was posted on PasteBin and is now expired. So if you don't have it, you can't get it on the net.

simond
05-10-2008, 12:01 PM
If you find his blog and read the comments then I think they were all reposted at another URL I know the ereader one at least was

nrapallo
05-10-2008, 12:02 PM
If you do not have ereader2html.py, then you are out of luck. It was posted on PasteBin and is now expired. So if you don't have it, you can't get it on the net.

Oh yes you can. Over at the comments section of the Darkreverser Weblog (http://darkreverser.wordpress.com/2008/02/13/new-blog/#comments) scroll down to the comment made by:Simon Says:
March 20, 2008 at 10:34 am

JSWolf
05-10-2008, 01:04 PM
Oh yes you can. Over at the comments section of the Darkreverser Weblog (http://darkreverser.wordpress.com/2008/02/13/new-blog/#comments) scroll down to the comment made by:Simon Says:
March 20, 2008 at 10:34 am
This is true. But MobiDeDrm 0.02 is gone. I just did a search for it and it doesn't exist. MobiDeDrm 0.01 has been reposted and is easily found. But you also need 0.02 because neither one works in all cases and 0.01 will work were 0.02 doesn't and visa-versa.

nrapallo
05-10-2008, 03:48 PM
This is true. But MobiDeDrm 0.02 is gone. I just did a search for it and it doesn't exist. MobiDeDrm 0.01 has been reposted and is easily found. But you also need 0.02 because neither one works in all cases and 0.01 will work were 0.02 doesn't and visa-versa.

Just google "the python scripts for de-drm-ing ereader and mobi are at"

All three can be found within the .zip, somewhere there :whistle:

stxopher
05-10-2008, 07:15 PM
Just google "the python scripts for de-drm-ing ereader and mobi are at"


Hmmm, interesting that if you were to Google it, the famous browser asks you if you meant to look for "the python scripts for deworming ereader and mobi are at".

Maybe they secretly hate DRM as much as the rest of us?

Argel
05-11-2008, 02:05 AM
Not being initiated into the mysteries of Python, is there a way a script such as this could be adapted simply to produce a non-protected ereader file which could be converted to Mobi by other means?

I was just wondering if this would overcome my difficulty with footnotes, which appear to be stripped out of the html output.

delphidb96
05-11-2008, 10:43 AM
Not being initiated into the mysteries of Python, is there a way a script such as this could be adapted simply to produce a non-protected ereader file which could be converted to Mobi by other means?

I was just wondering if this would overcome my difficulty with footnotes, which appear to be stripped out of the html output.

When stripping out DRM, which is what this tool is for, the best method is to do the stripping separate from the conversion to Mobi. Any decent ***-to-Mobi converter will take the results and let you make a Mobi file out of them. I use BookDesigner, but you could just as easily use Mobigen or Mobipocket Creator, or the MobiPerl tools.

What I'd like to see is someone take the MobiDeDRM and eReader2HTML python scripts and turn them into standalone Windows executable files, or maybe combine the two into one exe file.

Derek

AnemicOak
05-12-2008, 08:59 AM
What I'd like to see is someone take the MobiDeDRM and eReader2HTML python scripts and turn them into standalone Windows executable files, or maybe combine the two into one exe file.


They have (mobihuff too), they're out there on the 'darknet'.

daniesq
07-19-2008, 09:54 AM
Okay, I'm obviously not that bright. :blink: I have been trying to deDRM a book that I bought from Mobipocket (that apparently is only available in digital format- believe me, if it came in "dead tree" format, I would have bought it that way to save myself some pain.) In any case, I've been trying to run Ivan's mobdedrm script and I'm just too stupid to get it to work. When I open the resulting pdb in Isilo, all I see is gibberish.

This is what I'm inputting in ActivePython:

http://picasaweb.google.com/daniesq/Python/photo#5224732481269424162
If image doesn't show, here's the link: http://picasaweb.google.com/daniesq/Python/photo#5224732481269424162

http://picasaweb.google.com/daniesq/Python/photo#5224732487504410562
If image doesn't show, here's the link: http://picasaweb.google.com/daniesq/Python/photo#5224732487504410562

There should be images above, or links, but if not, here's the text:
mobidedrm.py('host.prc','newesthost.pdb','PID')

All scripts and books are stored in the same directory (C:\Python25\Tools\scripts). I've tried passing the arguments with and without the single quotes. The script runs and I get a resulting pdb, but like I mentioned, it's gibberish.

I've tried to step though the script but I honestly don't know enough about Python to tell you what I'm seeing. Any and all help is appreciated.

It is a sad day indeed when I have to potentially break the law to read something that I've already purchased. (By the way, the reason I'm trying to strip the DRM is so that I can read this book on my Ipod Touch. Reading on the Blackberry is doable, but I'd really like a bigger screen.)

Thanks for any help you can provide, and God bless you!! in advance.

Warm regards,

Danielle

bwaldron
07-19-2008, 11:46 AM
When I open the resulting pdb in Isilo, all I see is gibberish.

Well, there's your problem. You can't read a Mobipocket book in iSilo, with or without DRM.

(And this thread is for the eReader format, which is not relevant to either program...it is a different program/format entirely.)

daniesq
07-19-2008, 11:57 AM
Well, there's your problem. You can't read a Mobipocket book in iSilo, with or without DRM.

(And this thread is for the eReader format, which is not relevant to either program...it is a different program/format entirely.)

Well color me stupid. :smack: I will try to find the proper thread to post this in, but I have a question that I think is Ereader related - if the book successfully converted to Ereader format, shouldn't it open in Ereader? Every time I try to open it using Ereader, Ereader crashes. (If I knew what I was doing I'd be dangerous.)

Again, many, many thanks - and apologies for posting in the wrong place. :-)

Danielle

Okay, this conversation never happened. (Waves arm in amnesia-inducing Jedi gesture.) The script was working the whole time - I ran the mobi2html script on the now drm-free book and it converted just fine. Please forgive my massive ignorance and carry on - nothin to see here. :-)

Danielle

bwaldron
07-19-2008, 12:19 PM
Well color me stupid. :smack: I will try to find the proper thread to post this in, but I have a question that I think is Ereader related - if the book successfully converted to Ereader format, shouldn't it open in Ereader? Every time I try to open it using Ereader, Ereader crashes. (If I knew what I was doing I'd be dangerous.)

You used mobidedrm.py -- even though you named the file with a .pdb extension, that program doesn't create an ereader file, it strips the DRM from a Mobipocket file -- which is what you bought from Mobipocket.

You can read the book with the Mobipocket reader, or you can use the mobi2html program (from Mobiperl (https://dev.mobileread.com/trac/mobiperl/wiki)) to turn the newly-unprotected Mobipocket book into HTML, which you can then convert to iSilo (using iSiloX) if you like.

bmwvan
08-27-2008, 04:15 PM
Folks, I'm still a little lost. Where can I get Igor's scripts? I find lots of work he has done, but nothing that applies to ereader2html.

Help! Please!

pwalker8
09-01-2008, 04:21 PM
Does this tools work for unencrypted eReader books? I have two eReader files, one that I purchased and one that was a free download (swiss family robinson). When I look at my books on eReader site, the one I purchased says no unlock code needed and the freebie has "....9999 My Name" (with the last 4 digits of my credit card for the 9999 and my real name for My Name). When I try to run the program, I get the incorrect eReader version 10 (error 1) error message. I get the same error message on both files. Is this suppose to work? If so, any ideas what I'm doing wrong? I already tried re-downloading the files. Any help would be appreciated.
thanks

slayda
09-01-2008, 04:54 PM
Did you download & install the Active Python? That is a Python script and requires Python to be installed on your computer.

FizzyWater
09-01-2008, 05:09 PM
For me, this tool worked for every eReader book I purchased, and almost none of the eReader books that had been offered as "freebies" over the years on that site.

I've so loved being able to read my eReader books on my Sony (after converting them), that I haven't been bothered that a small handful don't convert. Especially, since eReader's giveaways have almost all been classics, and I can get them elsewhere for free (including here!)

(And if Astak ever gets around to releasing its new e-Ink devices, I won't even have to convert my books any more....)

JSWolf
09-01-2008, 05:25 PM
Folks, I'm still a little lost. Where can I get Igor's scripts? I find lots of work he has done, but nothing that applies to ereader2html.

Help! Please!
Igorsk didn't write eReader2HTML.py. That's why you cannot find it where his other work is. I suggest google searching for it.

pwalker8
09-01-2008, 06:19 PM
yep, python is there and runs the script just fine. It just doesn't convert the book to html.

JSWolf
09-01-2008, 06:37 PM
yep, python is there and runs the script just fine. It just doesn't convert the book to html.

Did you use the last 8 digits of the credit card used to register the eBook?

pwalker8
09-01-2008, 09:04 PM
Yep, I used the cmd line
python eReader2html.py ereader_file dest_dir "my name" cc_number

JSWolf
09-02-2008, 07:58 AM
Yep, I used the cmd line
python eReader2html.py ereader_file dest_dir "my name" cc_number
eReader2html.py origfile.pdb temp\ "name used in book" last8digitstofCC

No need for Python on the command line.

pwalker8
09-02-2008, 07:57 PM
It's on a Mac, i.e. Unix, which is why I included the python. I tried it the way you suggest and get the same error. The name that I use is the name that was listed on the eReader download page next to the book, though I don't know what to use with the one that says no key required.