![]() |
#616 |
Junior Member
![]() Posts: 1
Karma: 10
Join Date: Dec 2009
Device: none
|
Hi. I'm having a problem.
I run the Key-retrieval script "ineptkey v3" and it pops out a adeptkey.der file I then run "ineptpdf.pyw v5" fill in where my key is, my pdf and the output path. hit decrypt, and get this Error: String required: None does anyone know what could be causing the problem? the PDF is v1.6, is 1.6 not supported? EDIT ^_^ haha omg it worked. my problem was that I had to run it on the pdf specifically in my; My Documents\My Digital Editions\ folder I was running the app on the PDF from the website server. I guess the PDF is signed with a key once you download it. Last edited by mariokart64n; 12-28-2009 at 04:57 AM. |
![]() |
![]() |
![]() |
#617 |
Junior Member
![]() Posts: 3
Karma: 10
Join Date: Dec 2009
Device: PDF
|
|
![]() |
![]() |
![]() |
#618 | |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,752
Karma: 4382688
Join Date: Jul 2006
Location: Somewhere on earth
Device: Onyx Boox Tab X C
|
Quote:
![]() PDF 1.5+ are supported but only when the pdf trailer isn't only in the xrefstream directory. |
|
![]() |
![]() |
![]() |
#619 | |
Enthusiast
![]() Posts: 28
Karma: 42
Join Date: Aug 2009
Device: none
|
Quote:
![]() Also tested with ebooks with PDF 1.6 version. Last edited by JohnTheRipper; 12-28-2009 at 09:09 AM. |
|
![]() |
![]() |
![]() |
#620 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,752
Karma: 4382688
Join Date: Jul 2006
Location: Somewhere on earth
Device: Onyx Boox Tab X C
|
|
![]() |
![]() |
![]() |
#621 |
Enthusiast
![]() Posts: 28
Karma: 42
Join Date: Aug 2009
Device: none
|
I agree with you, joblack, since this error doesn't matter what version does.
The String required: None error refers to line 789 which is str_value function. This is called in several places: a) Line 1179: in initialize_ebx function, to convert ADEPT_LICENSE in string object. After decodes it from base-64. b) Lines 1214 and 1215: in initialize_standard function, to convert owner and revision in string object. c) Lines 1218 and 1219: in initialize_standard function, to convert user and password in string object. So mariokart64n has tried to decrypt a drm'ed pdf so we're in case a). The script can't convert ADEPT_LICENSE in string format or can't find, maybe parsing is not working, because that string is included in dictionary object (located at the end of the pdf, the line where Length, EBX_HANDLER.. are placed). ![]() P.D.: Is this a "full service"? hehe. Sincerenly, I like helping people, like people helped me and incidentally, I learn more about the script for future issues. Last edited by JohnTheRipper; 12-28-2009 at 10:44 AM. |
![]() |
![]() |
![]() |
#622 | |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,752
Karma: 4382688
Join Date: Jul 2006
Location: Somewhere on earth
Device: Onyx Boox Tab X C
|
Quote:
With 'full service' is the handling of the script meant. If you would adjust the script to one click you get less control (for instance: where should my ebook be saved, which key to use) and the script might do something you haven't expected. Needless to say if you change your key (through a new ADE registration) your ebooks are worthless without the keyfile. I'm not against helping but some basic understanding is needed, but if you're too lazy for a quick read through the forum it's a redundant effort. Or less friendly RTFM (or Read the FAQS) ![]() Last edited by joblack; 12-28-2009 at 11:24 AM. |
|
![]() |
![]() |
![]() |
#623 |
Enthusiast
![]() Posts: 28
Karma: 42
Join Date: Aug 2009
Device: none
|
Totally agree...
|
![]() |
![]() |
![]() |
#624 |
Junior Member
![]() Posts: 3
Karma: 10
Join Date: Jan 2010
Device: none
|
I needed to change line 1203 in v5 (at least that's what it says at the top of the script) from:
Code:
if length and len(bookkey) != length: Code:
if length and (len(bookkey) / 2) != length: I assume it's a to/from unicode conversion problem with bookkey somewhere, so likely there is a more correct fix than the above. |
![]() |
![]() |
![]() |
#625 |
Enthusiast
![]() Posts: 28
Karma: 42
Join Date: Aug 2009
Device: none
|
|
![]() |
![]() |
![]() |
#626 | ||
Junior Member
![]() Posts: 3
Karma: 10
Join Date: Jan 2010
Device: none
|
Quote:
Quote:
CFM is /V3 EBX_ENCRYPTIONTYPE is 5. V is 4. Note that I have other pdfs with those settings that convert fine without the code change. The difference appears to be that the ones that don't convert without the change have a LENGTH parameter of 64 set in the block at the end of the pdf, whilst the ones that do have no LENGTH parameter at all. |
||
![]() |
![]() |
![]() |
#627 |
Junior Member
![]() Posts: 1
Karma: 10
Join Date: Jan 2010
Device: none
|
Hello,
I tried to unlock a protected ebook with ineptpdf.pyw v5. It works without any errors. But when I try to open the pdf File in Acrobat on some Pages it tells that the page can not be read (110). This only happens if there are images on this page (but not on all pages with images). Text-Only Pages seems to work fine. So can anyone help me to fix this Problem? Thanks! |
![]() |
![]() |
![]() |
#628 | |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,752
Karma: 4382688
Join Date: Jul 2006
Location: Somewhere on earth
Device: Onyx Boox Tab X C
|
Quote:
|
|
![]() |
![]() |
![]() |
#629 | |
Junior Member
![]() Posts: 3
Karma: 10
Join Date: Jan 2010
Device: none
|
Quote:
However for the decryption to actually work those 8 null bytes have to be present (I tested that by slicing bookkey to make it the specified 64 bits, it resulted in a pdf that came up blank except for some boxes, whereas it decrypted okay with the full bookkey including the nulls), so at least for these pdfs raising of an error when len(bookkey) != length, seems to be the wrong thing to do. |
|
![]() |
![]() |
![]() |
#630 | |
Junior Member
![]() Posts: 2
Karma: 10
Join Date: Jan 2010
Device: Kindle
|
Quote:
Now this is how I went through: First I downloaded/installed python/pycrypto. Then I got ineptkey.pyw, ineptepub.pyw(for epub files) ineptpdf.pyw v2 (for pdf files) put all them into my digital editions directory. Ran ineptkey.pyw. It found the key and saved as "ADEPTKEY.DER " in the same directory where ineptkey.pyw is. Then, I ran ineptpdf.pyw (v2 worked fine). In the dialog window I put the path to the input file(the file was in the my digital edition folder) and named a file name for the outfile file. Voila DRM Free! |
|
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Fileopen DRM for PDF circumvented | tetrachroma | 26 | 02-09-2012 07:15 AM | |
Adobe ADEPT DRM for EPUB circumvented | i♥cabbages | ePub | 969 | 08-28-2011 08:52 AM |
Barnes & Noble DRM for EPUB circumvented | i♥cabbages | ePub | 83 | 01-30-2011 02:55 PM |
iPhone adept drm for epub on the iphone | philippd | Apple Devices | 24 | 12-28-2009 02:29 PM |
Adobe PDF DRM? | valkyriesound | Sony Reader | 7 | 02-16-2007 11:25 PM |