View Single Post
Old 03-04-2008, 04:38 AM   #67
brecklundin
Banned
brecklundin is as sexy as a twisted cruller doughtnut.brecklundin is as sexy as a twisted cruller doughtnut.brecklundin is as sexy as a twisted cruller doughtnut.brecklundin is as sexy as a twisted cruller doughtnut.brecklundin is as sexy as a twisted cruller doughtnut.brecklundin is as sexy as a twisted cruller doughtnut.brecklundin is as sexy as a twisted cruller doughtnut.brecklundin is as sexy as a twisted cruller doughtnut.brecklundin is as sexy as a twisted cruller doughtnut.brecklundin is as sexy as a twisted cruller doughtnut.brecklundin is as sexy as a twisted cruller doughtnut.
 
Posts: 1,906
Karma: 15348
Join Date: Jun 2007
Device: mine
Quote:
Originally Posted by flubu View Post
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.
brecklundin is offline   Reply With Quote