ineptpdf icon indicating copy to clipboard operation
ineptpdf copied to clipboard

Failed To Decrypt While Fileopen works correclty.

Open SalmaBegumJSR opened this issue 6 years ago • 49 comments

Greetings sir, i am trying to decrypt a file open protected pdf file. but how much and whenever i try.. i get following response:

RetVal=Error&Error=Document%20Access%20Denied.A%20component%20required%20for%20viewing%20this%20document%20needs%20to%20be%20updated%2C%20please%20re-install%20the%20FileOpen%20plug-in.&LogUrl=https%3A%2F%2Fplugin.fileopen.com%2F&ServerSessionData=408c95cd19ce4bcc8d23f3da24442a00&DocumentSessionData=8651bc5a104447d48ebf11eeebb972da is any help is possible?

thanks in advance best regards

SalmaBegumJSR avatar Jun 08 '19 14:06 SalmaBegumJSR

I had luck decrypting a fileopen PDF but I had access to the PDF before I did it. Can you open the PDF on your PC?

m3us avatar Oct 23 '19 13:10 m3us

I currently have the same problem. The error says that plugin version needs to be updated, but I installed that recently. Of course, I can successfully open the PDF, but this script seems to fail decrypting it.

Next step would be using "PrintScreen" for each page, but this would be a cumbersome task 😄

skutter-x86 avatar Jun 09 '20 05:06 skutter-x86

I tried to figure out this issue myself, with success! 😃 You only need to modify which version of FileOpen the script is reporting to FileOpen's servers.

Edit line 2285: Choose 995 as the build number, and that's all!

skutter-x86 avatar Jun 09 '20 13:06 skutter-x86

I tried to figure out this issue myself, with success! 😃 You only need to modify which version of FileOpen the script is reporting to FileOpen's servers.

Edit line 2285: Choose 995 as the build number, and that's all!

I just spent a couple of hours searching for a solution. Thanks a million skutter-x86!!!! Your modification worked perfectly

viTRifY13 avatar Feb 23 '21 14:02 viTRifY13

I tried to figure out this issue myself, with success! 😃 You only need to modify which version of FileOpen the script is reporting to FileOpen's servers.

Edit line 2285: Choose 995 as the build number, and that's all!

Could you please let me know which code do you use and is it possible to share with me? Thanks

hasaom avatar Apr 25 '21 04:04 hasaom

I tried to figure out this issue myself, with success! 😃 You only need to modify which version of FileOpen the script is reporting to FileOpen's servers. Edit line 2285: Choose 995 as the build number, and that's all!

I just spent a couple of hours searching for a solution. Thanks a million skutter-x86!!!! Your modification worked perfectly

Could you please share with me your corrected code that I should use?

hasaom avatar Apr 25 '21 04:04 hasaom

Hi @hasaom,

I'm not sure if the fix I found will be still working. The only change I did was at line 2285: Replace this: self.fileopen['Build']='879' With that: self.fileopen['Build']='995'

If FileOpen version or build number has changed since Jun-2020, you probably need to have these numbers updated also in the Python script. When installing FileOpen you can guess the build number and use it at line 2285.

If your problem persists, maybe this solution is no longer applicable (I have not used ineptpdf since Jun-2020), or you guessed incorrectly the build number. There is high chance that FileOpen's servers have been "fixed" so that ineptpdf can no longer be used.

Just try, keep trying, and let's see what happens! 👍

EDIT: And, there is another hurdle in your path: you have to use Windows if you want to use this "fix", I think.

skutter-x86 avatar Apr 26 '21 05:04 skutter-x86

@skutter-x86, Thanks for replying to my comment. Could you please let me know where I should download the files for python code and other related materials? Thanks,

hasaom avatar Apr 26 '21 20:04 hasaom

For anyone finding this, as of June 2021 build number is 996 is working for me. 995 didn't.

tbishop9 avatar Jun 04 '21 05:06 tbishop9

Changing the build number of the script to 995 worked for me as well - thanks so much for this!

BlackDog6469 avatar Aug 26 '21 11:08 BlackDog6469

Neither 995 nor 996 seems to do the trick for me. I can open the PDF in Adobe but the script tells me:

1st preresult
RetVal=0&Error=You are not permitted to open this document.  It may be assigned to another user

compared to OP, the response is way much shorter. Any thoughts?

aquac avatar Sep 28 '21 09:09 aquac

Read the build number from your program list and then use that build number. My build number is 994 and it did work for me.

On Tue, Sep 28, 2021 at 9:31 AM aquac @.***> wrote:

Neither 995 nor 996 seems to do the trick for me. I can open the PDF in Adobe but the script tells me:

1st preresult RetVal=0&Error=You are not permitted to open this document. It may be assigned to another user

compared to OP, the response is way much shorter. Any thoughts?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/alaingilbert/ineptpdf/issues/1#issuecomment-929020928, or unsubscribe https://github.com/notifications/unsubscribe-auth/AT2M4GXNPYO4L4EG2FUEZGTUEGDQHANCNFSM4HWHLJFA . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

hasaom avatar Sep 30 '21 04:09 hasaom

Read the build number from your program list and then use that build number. My build number is 994 and it did work for me. On Tue, Sep 28, 2021 at 9:31 AM aquac @.***> wrote: Neither 995 nor 996 seems to do the trick for me. I can open the PDF in Adobe but the script tells me: 1st preresult RetVal=0&Error=You are not permitted to open this document. It may be assigned to another user compared to OP, the response is way much shorter. Any thoughts? — You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub <#1 (comment)>, or unsubscribe https://github.com/notifications/unsubscribe-auth/AT2M4GXNPYO4L4EG2FUEZGTUEGDQHANCNFSM4HWHLJFA . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

hello, Could you please let me know where I should download the files for python code and other related materials? Thanks,

cri9991 avatar Oct 04 '21 11:10 cri9991

Click here ineptpdf.py https://github.com/alaingilbert/ineptpdf/blob/master/ineptpdf.py and then follow the information there.

On Mon, Oct 4, 2021 at 11:50 AM cri9991 @.***> wrote:

Read the build number from your program list and then use that build number. My build number is 994 and it did work for me. … <#m_-1773230539037021269_> On Tue, Sep 28, 2021 at 9:31 AM aquac @.***> wrote: Neither 995 nor 996 seems to do the trick for me. I can open the PDF in Adobe but the script tells me: 1st preresult RetVal=0&Error=You are not permitted to open this document. It may be assigned to another user compared to OP, the response is way much shorter. Any thoughts? — You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub <#1 (comment) https://github.com/alaingilbert/ineptpdf/issues/1#issuecomment-929020928>, or unsubscribe https://github.com/notifications/unsubscribe-auth/AT2M4GXNPYO4L4EG2FUEZGTUEGDQHANCNFSM4HWHLJFA . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub .

hello, Could you please let me know where I should download the files for python code and other related materials? Thanks,

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/alaingilbert/ineptpdf/issues/1#issuecomment-933406759, or unsubscribe https://github.com/notifications/unsubscribe-auth/AT2M4GT56LIOUTJK2H2TCN3UFGIJDANCNFSM4HWHLJFA . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

hasaom avatar Oct 05 '21 03:10 hasaom

Click here ineptpdf.py https://github.com/alaingilbert/ineptpdf/blob/master/ineptpdf.py and then follow the information there. On Mon, Oct 4, 2021 at 11:50 AM cri9991 @.> wrote: Read the build number from your program list and then use that build number. My build number is 994 and it did work for me. … <#m_-1773230539037021269_> On Tue, Sep 28, 2021 at 9:31 AM aquac @.> wrote: Neither 995 nor 996 seems to do the trick for me. I can open the PDF in Adobe but the script tells me: 1st preresult RetVal=0&Error=You are not permitted to open this document. It may be assigned to another user compared to OP, the response is way much shorter. Any thoughts? — You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub <#1 (comment) <#1 (comment)>>, or unsubscribe https://github.com/notifications/unsubscribe-auth/AT2M4GXNPYO4L4EG2FUEZGTUEGDQHANCNFSM4HWHLJFA . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub . hello, Could you please let me know where I should download the files for python code and other related materials? Thanks, — You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub <#1 (comment)>, or unsubscribe https://github.com/notifications/unsubscribe-auth/AT2M4GT56LIOUTJK2H2TCN3UFGIJDANCNFSM4HWHLJFA . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

i don't found this programm

"PyCrypto from http://www.voidspace.org.uk/python/modules.shtml#pycrypto".

because voidspace is not available where can I find it? thanks

cri9991 avatar Oct 06 '21 06:10 cri9991

For anyone finding this, as of June 2021 build number is 996 is working for me. 995 didn't.

Could you please share the PyCrypto installation file with me? I am not able to find it.

hasaom avatar Nov 13 '21 00:11 hasaom

Changing the build number of the script to 995 worked for me as well - thanks so much for this!

Could you please share the installatio file for PyCrypto that works with this code? I was not able to find it.

hasaom avatar Nov 13 '21 01:11 hasaom

@hasaom did u find out tthe pycrypto file ? Could help me where i can find out that file ?

harshpatel8687 avatar Jan 17 '22 23:01 harshpatel8687

For anyone finding this, as of June 2021 build number is 996 is working for me. 995 didn't.

Could you please share the PyCrypto installation file with me? I am not able to find it.

@hasaom did u find out tthe pycrypto file ? Could help me where i can find out that file ?

pip install pycryptodome

j-minster avatar Feb 10 '22 04:02 j-minster

@j-minster Here you go! pycrypto-2.6.1-2_py27.zip

hasaom avatar Feb 10 '22 05:02 hasaom

@harshpatel8687 Here you go! pycrypto-2.6.1-2_py27.zip

hasaom avatar Feb 10 '22 05:02 hasaom

@cri9991 Here you go! pycrypto-2.6.1-2_py27.zip

hasaom avatar Feb 10 '22 05:02 hasaom

I've changed the build number to 998 but I'm getting the following error message when opening the file in Acrobat after it's been decrypted:

There was an error opening the document. The root object is missing or invalid.

This is the output from the debug file:

Edit: Removed debug info in case it reveals private or copyright information

gyrex avatar Jul 04 '22 15:07 gyrex

Try opening the pdf in Microsoft Edge, use the highlighter tool and highlight a random section, save the pdf (it fixes the file structure). Reopen the freshly saved file in Adobe Acrobat and delete the highlighted section and save.

viTRifY13 avatar Jul 04 '22 15:07 viTRifY13

Try opening the pdf in Microsoft Edge, use the highlighter tool and highlight a random section, save the pdf (it fixes the file structure). Reopen the freshly saved file in Adobe Acrobat and delete the highlighted section and save.

You little ripper - worked perfectly! Thanks!

gyrex avatar Jul 04 '22 16:07 gyrex

Try opening the pdf in Microsoft Edge, use the highlighter tool and highlight a random section, save the pdf (it fixes the file structure). Reopen the freshly saved file in Adobe Acrobat and delete the highlighted section and save.

You little ripper - worked perfectly! Thanks!

I'm sorry to bother you. Can you please elaborate on how you did it. I'm not sure what I'm missing but my build code is 998 and I am still getting an error 'Decryption was not successful, Document access denied'

What plugins did you install, what are the links, which python version ect

If you could make a short step guide I'd appreciate it so much.

Jay-Finlay avatar Jul 13 '22 23:07 Jay-Finlay

Hi! I've used the script ineptpdf_8.4.51.pyw for two years with success. Now ineptpdf_8.4.51.pyw doesn't work anymore. The error is on line nr. 1779: raise ADEPTError('No internet connection or a blocking firewall!')

I've tried the script on many different PCs that I'm sure it worked correctly, and now none of them work anymore. I've tried in my office, at home, by cell using tethering, and the script doesn't work. So internet works correctly, and is not a firewall issue.

I modified line nr. 2285 with my FileOpen build: the 998. nothing changes...

the answer of remote server is: RetVal=0&Error=SettingReq Unsupported Request.

Can you help me?

Thank you for your help.

fedrok777 avatar Jan 10 '23 11:01 fedrok777

I had a very different issue. Mine is that I am supplied with a register.pdf as well as the target locked one. Once I run Register, FileOpen works fine with the target one. But when trying to decrypt I get "Document Access Denied." "This machine is not registered for access to this document." image

ryan4volts avatar Jan 20 '23 02:01 ryan4volts

Looks like hole closed...mine end with error that I have reached maximum devices allowed to view this file. If somebody wont update this then its dead script.

Oriann avatar Jan 23 '23 20:01 Oriann