Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Formats > Kindle Formats

Notices

Reply
 
Thread Tools Search this Thread
Old 08-06-2009, 04:32 AM   #91
pdurrant
The Grand Mouse 高貴的老鼠
pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.
 
pdurrant's Avatar
 
Posts: 71,940
Karma: 307500000
Join Date: Jul 2007
Location: Norfolk, England
Device: Kindle Voyage
Quote:
Originally Posted by Dowland View Post
Problem. The issue, at least in mobiledrm005.py, is that it accidentally repeats this operation twice (probably whoever wrote this did an unwitting double copy-paste).
This is a copying error somewhere along the way to you. The original 0.05 certainly didn't have this duplicate code.
pdurrant is offline   Reply With Quote
Old 08-09-2009, 01:01 AM   #92
Robotech_Master
Fanatic
Robotech_Master ought to be getting tired of karma fortunes by now.Robotech_Master ought to be getting tired of karma fortunes by now.Robotech_Master ought to be getting tired of karma fortunes by now.Robotech_Master ought to be getting tired of karma fortunes by now.Robotech_Master ought to be getting tired of karma fortunes by now.Robotech_Master ought to be getting tired of karma fortunes by now.Robotech_Master ought to be getting tired of karma fortunes by now.Robotech_Master ought to be getting tired of karma fortunes by now.Robotech_Master ought to be getting tired of karma fortunes by now.Robotech_Master ought to be getting tired of karma fortunes by now.Robotech_Master ought to be getting tired of karma fortunes by now.
 
Posts: 514
Karma: 2954711
Join Date: May 2006
I'm trying to extract a couple of the free Kindle books I downloaded to my iPod, just to see if I can. I jailbroke and copied them over, and tried to run mobiddrm using the key I generated from my UDID and got the following:

python2.5 mobiddrm01.py B000FCK3C8_EBOK.prc maxride.prc "KT18ZMY*6X"
MobiDeDrm v0.01. Copyright (c) 2008 The Dark Reverser
Error: no key found. maybe the PID is incorrect

I did the checksum thing and it said the key was correct. As far as I can tell, it is encrypted (at least, when I open it with FBReader, I get gibberish).

Any suggestions? Did I perhaps generate the key from the UDID wrong?
Robotech_Master is offline   Reply With Quote
Advert
Old 08-09-2009, 01:41 AM   #93
pilotbob
Grand Sorcerer
pilotbob ought to be getting tired of karma fortunes by now.pilotbob ought to be getting tired of karma fortunes by now.pilotbob ought to be getting tired of karma fortunes by now.pilotbob ought to be getting tired of karma fortunes by now.pilotbob ought to be getting tired of karma fortunes by now.pilotbob ought to be getting tired of karma fortunes by now.pilotbob ought to be getting tired of karma fortunes by now.pilotbob ought to be getting tired of karma fortunes by now.pilotbob ought to be getting tired of karma fortunes by now.pilotbob ought to be getting tired of karma fortunes by now.pilotbob ought to be getting tired of karma fortunes by now.
 
pilotbob's Avatar
 
Posts: 19,832
Karma: 11844413
Join Date: Jan 2007
Location: Tampa, FL USA
Device: Kindle Touch
Quote:
Originally Posted by Robotech_Master View Post

I did the checksum thing and it said the key was correct. As far as I can tell, it is encrypted (at least, when I open it with FBReader, I get gibberish).

Any suggestions? Did I perhaps generate the key from the UDID wrong?
It's probably content encrypted. There is a script to remove that to... somewhere. Search around.

BOb
pilotbob is offline   Reply With Quote
Old 08-09-2009, 12:02 PM   #94
wallcraft
reader
wallcraft ought to be getting tired of karma fortunes by now.wallcraft ought to be getting tired of karma fortunes by now.wallcraft ought to be getting tired of karma fortunes by now.wallcraft ought to be getting tired of karma fortunes by now.wallcraft ought to be getting tired of karma fortunes by now.wallcraft ought to be getting tired of karma fortunes by now.wallcraft ought to be getting tired of karma fortunes by now.wallcraft ought to be getting tired of karma fortunes by now.wallcraft ought to be getting tired of karma fortunes by now.wallcraft ought to be getting tired of karma fortunes by now.wallcraft ought to be getting tired of karma fortunes by now.
 
wallcraft's Avatar
 
Posts: 6,975
Karma: 5183568
Join Date: Mar 2006
Location: Mississippi, USA
Device: Kindle 3, Kobo Glo HD
Quote:
Originally Posted by Robotech_Master View Post
MobiDeDrm v0.01. Copyright (c) 2008 The Dark Reverser
This is a very old version, the latest is v0.05. One place to look for information about these scripts is in the comments to the Darkreverser's Weblog.
wallcraft is offline   Reply With Quote
Old 08-12-2009, 05:12 PM   #95
Robotech_Master
Fanatic
Robotech_Master ought to be getting tired of karma fortunes by now.Robotech_Master ought to be getting tired of karma fortunes by now.Robotech_Master ought to be getting tired of karma fortunes by now.Robotech_Master ought to be getting tired of karma fortunes by now.Robotech_Master ought to be getting tired of karma fortunes by now.Robotech_Master ought to be getting tired of karma fortunes by now.Robotech_Master ought to be getting tired of karma fortunes by now.Robotech_Master ought to be getting tired of karma fortunes by now.Robotech_Master ought to be getting tired of karma fortunes by now.Robotech_Master ought to be getting tired of karma fortunes by now.Robotech_Master ought to be getting tired of karma fortunes by now.
 
Posts: 514
Karma: 2954711
Join Date: May 2006
Still does the same thing with 0.05.
Robotech_Master is offline   Reply With Quote
Advert
Old 08-12-2009, 05:36 PM   #96
mrgiedrnkr
Enthusiast
mrgiedrnkr began at the beginning.
 
Posts: 26
Karma: 42
Join Date: Dec 2008
Device: Sony PRS-505
I did an iphone/kindle extract today and I had to put single quotes around my python generated PID. I tried no quotes, double quotes and single quotes until I got one to work.
Stacy
mrgiedrnkr is offline   Reply With Quote
Old 08-14-2009, 12:41 AM   #97
Robotech_Master
Fanatic
Robotech_Master ought to be getting tired of karma fortunes by now.Robotech_Master ought to be getting tired of karma fortunes by now.Robotech_Master ought to be getting tired of karma fortunes by now.Robotech_Master ought to be getting tired of karma fortunes by now.Robotech_Master ought to be getting tired of karma fortunes by now.Robotech_Master ought to be getting tired of karma fortunes by now.Robotech_Master ought to be getting tired of karma fortunes by now.Robotech_Master ought to be getting tired of karma fortunes by now.Robotech_Master ought to be getting tired of karma fortunes by now.Robotech_Master ought to be getting tired of karma fortunes by now.Robotech_Master ought to be getting tired of karma fortunes by now.
 
Posts: 514
Karma: 2954711
Join Date: May 2006
I tried single quotes, still got the same result.
Robotech_Master is offline   Reply With Quote
Old 08-30-2009, 10:34 PM   #98
gatorfan
Member
gatorfan began at the beginning.
 
gatorfan's Avatar
 
Posts: 20
Karma: 28
Join Date: Aug 2009
Location: Arizona
Device: Kindle, Jetbook
Quote:
Originally Posted by Dowland View Post
Here comes a lengthy post to summarize the problem and give an actual solution. Please don't hesitate to reproduce this elsewhere. And also, please don't bury this post in the thread, because then nobody will ever find it ... :-)
*

Background info. A MobiPocket PID is 10 characters: 8 characters are the actual key, and 2 characters are the checksum.

Now, before doing its deed, MobileDRM looks at the PID you gave: it controls whether the checksum and the key actually correspond. If they dont, then it gives the error message we all know ("Error: invalid PID checksum"). If they do, then it cuts away the last 2 characters of the PID, and keeps only the key for the remainder of its operation.

Problem. The issue, at least in mobiledrm005.py, is that it accidentally repeats this operation twice (probably whoever wrote this did an unwitting double copy-paste). So scenario 1: your PID is incorrect, and it gets rejected on the first check. And scenario 2: your PID is correct, it passes the first check, gets shortened to its key component, and then flunks the second check.

Solution. Remove the first block from the initialization the code (as this is Python code, you have to be very careful with the indentation), i.e. change:
Code:
	def __init__(self, data_file, pid):

		if checksumPid(pid[0:-2]) != pid:
			raise DrmException("invalid PID checksum")
		pid = pid[0:-2]

		if checksumPid(pid[0:-2]) != pid:
			raise DrmException("invalid PID checksum")
		pid = pid[0:-2]
to:
Code:
	def __init__(self, data_file, pid):

		if checksumPid(pid[0:-2]) != pid:
			raise DrmException("invalid PID checksum")
		pid = pid[0:-2]
That line that appears twice "pid = pid[0:-2]", is what shortens the PID (it means "take all but the last two characters of this string and replace the original").

Outro. It may very well be that your PID is actually incorrect, and you should browse this thread for ways to find out.

Also: opening the book after buying it unnecessary (except if your vendor does some non-standard thing I've never heard about). If this seems like it works, than a possible explanation is that opening the book actually removes the DRM (and then running MobileDRM on it gives the appearance that it actually worked ...).

Finally: no, I've never seen (valid) MobiPocket PIDs with anything but uppercase alphanumerical characters...
After a week of trying to figure out exactly what I was doing wrong, including searching different internet sites, the above post solved my problem.

I thank you and my blood pressure thanks you!
gatorfan is offline   Reply With Quote
Old 09-01-2009, 12:19 PM   #99
Dan de V
Avid Reader
Dan de V can tell if an avocado is ripe without touching it.Dan de V can tell if an avocado is ripe without touching it.Dan de V can tell if an avocado is ripe without touching it.Dan de V can tell if an avocado is ripe without touching it.Dan de V can tell if an avocado is ripe without touching it.Dan de V can tell if an avocado is ripe without touching it.Dan de V can tell if an avocado is ripe without touching it.Dan de V can tell if an avocado is ripe without touching it.Dan de V can tell if an avocado is ripe without touching it.Dan de V can tell if an avocado is ripe without touching it.Dan de V can tell if an avocado is ripe without touching it.
 
Dan de V's Avatar
 
Posts: 17
Karma: 130530
Join Date: Mar 2008
Location: Cairo
Device: PRS 350 & HTC Legend
Dowland,
Thank you very much for summarizing the issue so well. I have read through pages and pages of posts to try and fix my "invalid PID checksum" problem with my copy of mobidedrm005. Even the 1st 6 pages of this thread....shows I should read backwards on threads here )

Being of suspicious mind I now wonder if the repeat code has been deliberately added to discourage people from trying to strip the DRM off mobi files.......I might hurriedly add that I actually got the faulty mobidedrm005 script from another site!
Dan de V is offline   Reply With Quote
Old 09-01-2009, 02:24 PM   #100
Sydney's Mom
Wizard
Sydney's Mom ought to be getting tired of karma fortunes by now.Sydney's Mom ought to be getting tired of karma fortunes by now.Sydney's Mom ought to be getting tired of karma fortunes by now.Sydney's Mom ought to be getting tired of karma fortunes by now.Sydney's Mom ought to be getting tired of karma fortunes by now.Sydney's Mom ought to be getting tired of karma fortunes by now.Sydney's Mom ought to be getting tired of karma fortunes by now.Sydney's Mom ought to be getting tired of karma fortunes by now.Sydney's Mom ought to be getting tired of karma fortunes by now.Sydney's Mom ought to be getting tired of karma fortunes by now.Sydney's Mom ought to be getting tired of karma fortunes by now.
 
Sydney's Mom's Avatar
 
Posts: 2,895
Karma: 6995721
Join Date: Dec 2008
Location: Idaho, on the side of a mountain
Device: Kindle Oasis, Fire 3d Gen and 5th Gen and Samsung Tab S
Ooh, and I thought I was paranoid!
Sydney's Mom is offline   Reply With Quote
Old 09-07-2009, 10:46 AM   #101
sahmad88
Zealot
sahmad88 will become famous soon enoughsahmad88 will become famous soon enoughsahmad88 will become famous soon enoughsahmad88 will become famous soon enoughsahmad88 will become famous soon enoughsahmad88 will become famous soon enough
 
sahmad88's Avatar
 
Posts: 120
Karma: 567
Join Date: Feb 2009
Device: nook color
Quote:
Originally Posted by Robotech_Master View Post
I tried single quotes, still got the same result.
I have this exact same problem. Here is a bit of background. I had a MacBook Pro with Leopard on it. And I had an iPhone. Everything worked fine at this point. Then my iPhone had a display problem and they replaced it. Then my MacBook had some hardware failure in the first 30 days, and they replaced that. I now have Snow Leopard on my mac.

I generated a new PID from my new iPhone. Now I can't get it to work at all, and I get the exact same error that Robotech Master gets: Error: no key found. maybe the PID is incorrect

I have tried this on a book that worked before. The only problem is, I don't have the original file. When my mac failed, at that point I didn't have a backup. So I am not sure if there is something new that is being done on Kindle books to try to defeat this.

Thank you all for your help.
sahmad88 is offline   Reply With Quote
Old 09-27-2009, 02:40 AM   #102
Juliette
I eat books
Juliette , Klaatu Barada Niktu!Juliette , Klaatu Barada Niktu!Juliette , Klaatu Barada Niktu!Juliette , Klaatu Barada Niktu!Juliette , Klaatu Barada Niktu!Juliette , Klaatu Barada Niktu!Juliette , Klaatu Barada Niktu!Juliette , Klaatu Barada Niktu!Juliette , Klaatu Barada Niktu!Juliette , Klaatu Barada Niktu!Juliette , Klaatu Barada Niktu!
 
Juliette's Avatar
 
Posts: 601
Karma: 5124
Join Date: Jun 2009
Location: Milan, Italy
Device: Gen3 PRS-505 PRS-600 PB360 PB302 K2 Opus BebookMini OnyxBoox K3 KDXG
Quote:
Originally Posted by pdurrant View Post
Some PanMcMillan ebooks are DRM free. Check to see if it really does have DRM first?
Saved my life (and my sanity). Thanks!
Juliette is offline   Reply With Quote
Old 09-28-2009, 06:39 PM   #103
kevindorsey
Evangelist
kevindorsey has a complete set of Star Wars action figures.kevindorsey has a complete set of Star Wars action figures.kevindorsey has a complete set of Star Wars action figures.
 
Posts: 488
Karma: 258
Join Date: Mar 2009
Device: kindle
Quote:
Originally Posted by Juliette View Post
Saved my life (and my sanity). Thanks!
LOL. We need our sanity.
kevindorsey is offline   Reply With Quote
Old 10-13-2009, 12:14 AM   #104
Riptide
Member
Riptide began at the beginning.
 
Posts: 12
Karma: 10
Join Date: Oct 2009
Location: Northern Canada
Device: Kindle
Unfortunately, this hasn't corrected my issue...

Running the checksum script (pg 5), it tells me my Mobipocket PID ABCDEFG*HI is correct.

Yet trying to enter the script with single quotes, double quotes, no quotes, dropping the last two digits (and again trying with the different quotes), has all produced the same result.

I know this is a DRM protected ebook (caliber said so)...

Windows Vista
Python 2.6.3

Idea's?

Last edited by Riptide; 10-13-2009 at 12:19 AM.
Riptide is offline   Reply With Quote
Old 10-13-2009, 07:36 AM   #105
pdurrant
The Grand Mouse 高貴的老鼠
pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.
 
pdurrant's Avatar
 
Posts: 71,940
Karma: 307500000
Join Date: Jul 2007
Location: Norfolk, England
Device: Kindle Voyage
It might be a content protected, but not PID protected eBook. There's a thread here somewhere detailing the changes needed to decode this kind of content. Unlikely if it's one you bought though - it's usually only applied (no idea why) to free ebooks.

Quote:
Originally Posted by Riptide View Post
Unfortunately, this hasn't corrected my issue...

Running the checksum script (pg 5), it tells me my Mobipocket PID ABCDEFG*HI is correct.

Yet trying to enter the script with single quotes, double quotes, no quotes, dropping the last two digits (and again trying with the different quotes), has all produced the same result.

I know this is a DRM protected ebook (caliber said so)...

Windows Vista
Python 2.6.3

Idea's?
pdurrant is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
"dx" is not a valid search keyword sushovande Feedback 6 08-15-2010 09:20 PM
PRS-600 "Internal content invalid. Formatting" 600 crash (is it dead ?) zelda_pinwheel Sony Reader 93 02-18-2010 05:27 PM
Classic "Invalid Update" shrktank Barnes & Noble NOOK 4 02-14-2010 06:58 PM
Error help: "Invalid input object: NoneType" MichaelGray ePub 1 02-14-2010 09:16 AM
Error message : "Invalid Format" " Do you want to format your internal memory" narbeauchamp Sony Reader 11 07-22-2009 12:39 PM


All times are GMT -4. The time now is 01:35 PM.


MobileRead.com is a privately owned, operated and funded community.