Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Formats > PDF

Notices

Reply
 
Thread Tools Search this Thread
Old 12-28-2009, 04:52 AM   #616
mariokart64n
Junior Member
mariokart64n began at the beginning.
 
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.
mariokart64n is offline   Reply With Quote
Old 12-28-2009, 07:54 AM   #617
homerj
Junior Member
homerj began at the beginning.
 
Posts: 3
Karma: 10
Join Date: Dec 2009
Device: PDF
Quote:
Originally Posted by Skydog View Post
JohntheRipper,

I downloaded the script from a different source and it works. Although both files I have are v5, they are not exactly the same.
Would someone please PM me a link for the different source for the v5 script.
thanks
homerj is offline   Reply With Quote
Advert
Old 12-28-2009, 08:42 AM   #618
joblack
Wizard
joblack ought to be getting tired of karma fortunes by now.joblack ought to be getting tired of karma fortunes by now.joblack ought to be getting tired of karma fortunes by now.joblack ought to be getting tired of karma fortunes by now.joblack ought to be getting tired of karma fortunes by now.joblack ought to be getting tired of karma fortunes by now.joblack ought to be getting tired of karma fortunes by now.joblack ought to be getting tired of karma fortunes by now.joblack ought to be getting tired of karma fortunes by now.joblack ought to be getting tired of karma fortunes by now.joblack ought to be getting tired of karma fortunes by now.
 
Posts: 1,752
Karma: 4382688
Join Date: Jul 2006
Location: Somewhere on earth
Device: Onyx Boox Tab X C
Quote:
Originally Posted by mariokart64n View Post
EDIT
^_^ haha omg it worked.
my problem was that I had to run it on the pdf specifically in my;
y Documents\My Digital Editions\ folder
Yeah a little bit self work is expected (you could imagine a script which only says 'Go' but ... - the Automated Inept PDF (aineptpdf) does more for itself but isn't hopped to v5 yet *hehe*).

PDF 1.5+ are supported but only when the pdf trailer isn't only in the xrefstream directory.
joblack is offline   Reply With Quote
Old 12-28-2009, 09:06 AM   #619
JohnTheRipper
Enthusiast
JohnTheRipper began at the beginning.
 
Posts: 28
Karma: 42
Join Date: Aug 2009
Device: none
Quote:
Originally Posted by joblack View Post
Yeah a little bit self work is expected (you could imagine a script which only says 'Go' but ... - the Automated Inept PDF (aineptpdf) does more for itself but isn't hopped to v5 yet *hehe*).

PDF 1.5+ are supported but only when the pdf trailer isn't only in the xrefstream directory.
Let me extend your answer, 'cos mines are PDF 1.4. So latest version is PDF1.4+ supporting.

Also tested with ebooks with PDF 1.6 version.

Last edited by JohnTheRipper; 12-28-2009 at 09:09 AM.
JohnTheRipper is offline   Reply With Quote
Old 12-28-2009, 09:53 AM   #620
joblack
Wizard
joblack ought to be getting tired of karma fortunes by now.joblack ought to be getting tired of karma fortunes by now.joblack ought to be getting tired of karma fortunes by now.joblack ought to be getting tired of karma fortunes by now.joblack ought to be getting tired of karma fortunes by now.joblack ought to be getting tired of karma fortunes by now.joblack ought to be getting tired of karma fortunes by now.joblack ought to be getting tired of karma fortunes by now.joblack ought to be getting tired of karma fortunes by now.joblack ought to be getting tired of karma fortunes by now.joblack ought to be getting tired of karma fortunes by now.
 
Posts: 1,752
Karma: 4382688
Join Date: Jul 2006
Location: Somewhere on earth
Device: Onyx Boox Tab X C
Quote:
Originally Posted by JohnTheRipper View Post
Let me extend your answer, 'cos mines are PDF 1.4. So latest version is PDF1.4+ supporting.

Also tested with ebooks with PDF 1.6 version.
The version doesn't matter that much - it works with 1.7 if the xref directory stream isn't available.
joblack is offline   Reply With Quote
Advert
Old 12-28-2009, 10:25 AM   #621
JohnTheRipper
Enthusiast
JohnTheRipper began at the beginning.
 
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.
JohnTheRipper is offline   Reply With Quote
Old 12-28-2009, 11:21 AM   #622
joblack
Wizard
joblack ought to be getting tired of karma fortunes by now.joblack ought to be getting tired of karma fortunes by now.joblack ought to be getting tired of karma fortunes by now.joblack ought to be getting tired of karma fortunes by now.joblack ought to be getting tired of karma fortunes by now.joblack ought to be getting tired of karma fortunes by now.joblack ought to be getting tired of karma fortunes by now.joblack ought to be getting tired of karma fortunes by now.joblack ought to be getting tired of karma fortunes by now.joblack ought to be getting tired of karma fortunes by now.joblack ought to be getting tired of karma fortunes by now.
 
Posts: 1,752
Karma: 4382688
Join Date: Jul 2006
Location: Somewhere on earth
Device: Onyx Boox Tab X C
Quote:
Originally Posted by JohnTheRipper View Post
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.
The ADEPT_LICENSE is the encryption info directory. If you can't find neither that or the other incidence perhaps your ebook isn't encrypted after all? Or the parsing doesn't work - in any way it might be interesting to take a deeper look in it.

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.
joblack is offline   Reply With Quote
Old 12-28-2009, 11:23 AM   #623
JohnTheRipper
Enthusiast
JohnTheRipper began at the beginning.
 
Posts: 28
Karma: 42
Join Date: Aug 2009
Device: none
Totally agree...
JohnTheRipper is offline   Reply With Quote
Old 01-04-2010, 12:19 PM   #624
zarras
Junior Member
zarras began at the beginning.
 
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:
to:

Code:
if length and (len(bookkey) / 2) != length:
...to stop the 'error decrypting book session key' error with a number of pdfs I have. They converted fine once I did that.

I assume it's a to/from unicode conversion problem with bookkey somewhere, so likely there is a more correct fix than the above.
zarras is offline   Reply With Quote
Old 01-04-2010, 04:25 PM   #625
JohnTheRipper
Enthusiast
JohnTheRipper began at the beginning.
 
Posts: 28
Karma: 42
Join Date: Aug 2009
Device: none
Quote:
Originally Posted by zarras View Post
I needed to change line 1203 in v5 (at least that's what it says at the top of the script) from:
Do you have problems with the vanilla version? or the recently modified?
What PDF version are your PDFs? (you can easily see it opening them with a text editor)
JohnTheRipper is offline   Reply With Quote
Old 01-05-2010, 08:27 AM   #626
zarras
Junior Member
zarras began at the beginning.
 
Posts: 3
Karma: 10
Join Date: Jan 2010
Device: none
Quote:
Originally Posted by JohnTheRipper View Post
Do you have problems with the vanilla version? or the recently modified?
'Fraid I'm not sure how to tell which one of vanilla or modified I have. I do have the same problem with v3. I don't know whether a similar change in v3 to the one I made in v5 would fix the problem there as I haven't tried it. Python is 2.6.4.

Quote:
What PDF version are your PDFs? (you can easily see it opening them with a text editor)
PDF Version at the top is 1.6.
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.
zarras is offline   Reply With Quote
Old 01-05-2010, 02:28 PM   #627
baum123
Junior Member
baum123 began at the beginning.
 
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!
baum123 is offline   Reply With Quote
Old 01-05-2010, 08:01 PM   #628
joblack
Wizard
joblack ought to be getting tired of karma fortunes by now.joblack ought to be getting tired of karma fortunes by now.joblack ought to be getting tired of karma fortunes by now.joblack ought to be getting tired of karma fortunes by now.joblack ought to be getting tired of karma fortunes by now.joblack ought to be getting tired of karma fortunes by now.joblack ought to be getting tired of karma fortunes by now.joblack ought to be getting tired of karma fortunes by now.joblack ought to be getting tired of karma fortunes by now.joblack ought to be getting tired of karma fortunes by now.joblack ought to be getting tired of karma fortunes by now.
 
Posts: 1,752
Karma: 4382688
Join Date: Jul 2006
Location: Somewhere on earth
Device: Onyx Boox Tab X C
Quote:
Originally Posted by zarras View Post
'Fraid I'm not sure how to tell which one of vanilla or modified I have. I do have the same problem with v3. I don't know whether a similar change in v3 to the one I made in v5 would fix the problem there as I haven't tried it. Python is 2.6.4.



PDF Version at the top is 1.6.
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.
Might be a new problem - without further investigation it isn't possible to tell more.
joblack is offline   Reply With Quote
Old 01-06-2010, 04:57 PM   #629
zarras
Junior Member
zarras began at the beginning.
 
Posts: 3
Karma: 10
Join Date: Jan 2010
Device: none
Quote:
Originally Posted by joblack View Post
Might be a new problem - without further investigation it isn't possible to tell more.
I've done some more poking about, and in these cases the bookkey recovered in PDFDocument.initialize_ebx() is 16 bytes long, but only the first 8 bytes actually have values, the last 8 bytes are all null. So the length is arguably the 64 bits specified.

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.
zarras is offline   Reply With Quote
Old 01-08-2010, 11:06 PM   #630
ReBook
Junior Member
ReBook began at the beginning.
 
Posts: 2
Karma: 10
Join Date: Jan 2010
Device: Kindle
Quote:
Originally Posted by mariokart64n View Post
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.
Thank you, help me along my way too

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!
ReBook is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Fileopen DRM for PDF circumvented tetrachroma PDF 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


All times are GMT -4. The time now is 09:43 PM.


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