Quote:
Originally Posted by flubu
Code:
D:\temp>python mobydedrm.py Aroundtheworldin80days.prc test.prc *******$**
MobiDeDrm v0.02. Copyright (c) 2008 The Dark Reverser
Decrypting. Please wait...
Traceback (most recent call last):
File "mobydedrm.py", line 176, in <module>
file(outfile, 'wb').write(DrmStripper(data_file, pid).getResult())
File "mobydedrm.py", line 159, in __init__
extra_size = getSizeOfTrailingDataEntries(data, len(data), extra_data_flags)
File "mobydedrm.py", line 74, in getSizeOfTrailingDataEntries
num += getSizeOfTrailingDataEntry(ptr, size - num)
File "mobydedrm.py", line 64, in getSizeOfTrailingDataEntry
v = ord(ptr[size-1])
IndexError: string index out of range
I'm having errors running the script. I have activestate python on XP and I'm trying to liberate the free Around the world in 80 days from fictionwise. The PID I have is from my laptop installation of mobipocket reader. Could it be problematic that it contains a $, which could be badly expanded as a variable at some point?
|
I could not wait and tried to run the script on both the N800 as well as my XPP-PC. Both running Python 2.5. I get the same error in both:
Quote:
C:\>c:\python25\python c:\drm\mobidedrm.py c:\drm\book1.prc c:\drm\book1-open.prc XXXXXXXXXX
MobiDeDrm v0.02. Copyright (c) 2008 The Dark Reverser
Decrypting. Please wait...
Traceback (most recent call last):
File "c:\drm\mobidedrm.py", line 176, in <module>
file(outfile, 'wb').write(DrmStripper(data_file, pid).getResult())
File "c:\drm\mobidedrm.py", line 159, in __init__
extra_size = getSizeOfTrailingDataEntries(data, len(data), extra_data_flags)
File "c:\drm\mobidedrm.py", line 74, in getSizeOfTrailingDataEntries
num += getSizeOfTrailingDataEntry(ptr, size - num)
File "c:\drm\mobidedrm.py", line 64, in getSizeOfTrailingDataEntry
v = ord(ptr[size-1])
IndexError: string index out of range
|
So it's not my system. I can say this file contains two books. But I am unsure if that really matters.