alaingilbert / ineptpdf

fileopen and aps pdf drm removal
64 stars 33 forks source link

Failed To Decrypt While Fileopen works correclty. #1

Open SalmaBegumJSR opened 5 years ago

SalmaBegumJSR commented 5 years ago

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

m3us commented 4 years ago

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?

skutter-x86 commented 4 years ago

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 commented 4 years ago

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!

viTRifY13 commented 3 years ago

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

hasaom commented 3 years ago

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 commented 3 years ago

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?

skutter-x86 commented 3 years ago

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.

hasaom commented 3 years ago

@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,

tbishop9 commented 3 years ago

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

BlackDog6469 commented 2 years ago

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

aquac commented 2 years ago

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?

hasaom commented 2 years ago

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.

cri9991 commented 2 years ago

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,

hasaom commented 2 years ago

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.

cri9991 commented 2 years ago

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

hasaom commented 2 years ago

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 commented 2 years ago

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.

harshpatel8687 commented 2 years ago

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

j-minster commented 2 years ago

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

hasaom commented 2 years ago

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

hasaom commented 2 years ago

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

hasaom commented 2 years ago

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

harshpatel8687 commented 2 years ago

Thank you..

On Thu, Feb 10, 2022 at 3:22 PM hasaom @.***> wrote:

@harshpatel8687 https://github.com/harshpatel8687 Here you go! pycrypto-2.6.1-2_py27.zip https://github.com/alaingilbert/ineptpdf/files/8038304/pycrypto-2.6.1-2_py27.zip

β€” Reply to this email directly, view it on GitHub https://github.com/alaingilbert/ineptpdf/issues/1#issuecomment-1034505104, or unsubscribe https://github.com/notifications/unsubscribe-auth/AXLC5GWI76O6RHFRIRJECKDU2NDQVANCNFSM4HWHLJFA . 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.

You are receiving this because you were mentioned.Message ID: @.***>

gyrex commented 2 years ago

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

viTRifY13 commented 2 years ago

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.

gyrex commented 2 years ago

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!

Jay-Finlay commented 1 year ago

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.

fedrok777 commented 1 year ago

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.

ryan4volts commented 1 year ago

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

Oriann commented 1 year ago

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.

WeAreLegion999 commented 1 year ago

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.

you need to be able to open it on the pc youre running the DeDRM on.... as in PDF should already be accessible on PC running decryption

alaingilbert commented 1 year ago

Can someone send a pdf file in here. I haven't touched this in like a decade, but I'm curious to see how it is nowadays.

Oriann commented 1 year ago

Can someone send a pdf file in here. I haven't touched this in like a decade, but I'm curious to see how it is nowadays.

Sure, here it is: 79175.pdf

alaingilbert commented 1 year ago

Can you provide me a bit of context, when I open this, I see 20 blank pages, but just to be sure, I'm supposed to see some content? I'm on macos, and it's not asking for a password or anything, there is no errors showing up as well.

Oriann commented 1 year ago

Yes you should see content, its technical norm locked with fileopen:

Preview of first page: SnΓ­mek obrazovky 2023-03-28 204508

EDIT: Also you should know that its does not use password protection but it uses third-party app authorization via remote server. I am able to unlock this file with my credentials as registered user and with installed fileopen. I unlocked this before with asp net session cookie. But it stopped working suddenly.

alaingilbert commented 1 year ago

Thanks, I'll give it a look :)

chrsharvick29 commented 9 months ago

Anyone have any luck getting past the DRM on build 998? I'm receiving "Cannot find decryption key." error. I found a workaround by using the Adobe Acrobat Pro to export the pdf to Microsoft Word but unfortunately this doesn't provide a good translation on mathematical expressions. Another workaround is to export as images. You can use Acrobat to combine the exported images into a PDF, then optimize to make the file size smaller. I'm using this option as the other would be to print and scan the doc.

viTRifY13 commented 8 months ago

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.

Upgrade your Python 2.7.x to 2.7.18 (https://www.python.org/downloads/release/python-2718/). Just use the x86 msi file (not the x64)

asi2233 commented 7 months ago

I want to remove FileOpen DRM from a PDF with the INEPTPDF 8.4.51 tool. But I always get this error message: "Error: Cannot find decryption key." Is there any known solution?

WeAreLegion999 commented 3 months ago

try the updated script @asi2233 @chrsharvick29

asi2233 commented 3 months ago

@WeAreLegion999 Can you tell me where I can get the updated script? Thanks

WeAreLegion999 commented 3 months ago

@asi2233 https://github.com/noDRM/DeDRM_tools/tree/master/Other_Tools/Tetrachroma_FileOpen_ineptpdf

add this somewhere in the very beginning of the script if youre getting an error about binascii:

import binascii

asi2233 commented 3 months ago

@WeAreLegion999 Thanks for the link. The updated script isn't working for the BSI standard. I tried it with two different standards, but encountered the same error: 'Decryption was not successful' image (3)

WeAreLegion999 commented 3 months ago

@asi2233 did you change the fileopen version in the script to the latest version 998 everywhere in the code (in line 2117 and 2171)? change line 2117 self.fileopen['Build']='878' to self.fileopen['Build']='998'

and line 2171 from self.fileopen['Build']='879' to self.fileopen['Build']='998'

WeAreLegion999 commented 3 months ago

@asi2233 i just tried with a fresh BSI standard download protected with FileOpen, and the error that you were getting was resolved by updating the 2 lines in the script to the current version as I have outlined above, so it definitely works with the BSI Standards.

asi2233 commented 3 months ago

Thank you for your help. It works after making changes to the script to comply with BSI standards. However, when I tried running the script with ANSI and BISCI standards, it produced errors. For ANSI, it showed 'Not a fileopen-encrypted file,' and for BISCI, it displayed an error 'Unexpected EOF.' Although the script still managed to generate an output file for BISCI, but the PDF file is corrupted.

On Tue, Mar 19, 2024 at 5:56β€―PM AnonymousPanda @.***> wrote:

@asi2233 https://github.com/asi2233 i just tried with a fresh BSI standard download protected with FileOpen, and the error that you were getting was resolved by updating the 2 lines in the script to the current version as I have outlined above, so it definitely works with the BSI Standards.

β€” Reply to this email directly, view it on GitHub https://github.com/alaingilbert/ineptpdf/issues/1#issuecomment-2007107312, or unsubscribe https://github.com/notifications/unsubscribe-auth/AZPN4TTWT4MFWC36UEKA6WLYZAYZFAVCNFSM4HWHLJFKU5DIOJSWCZC7NNSXTN2JONZXKZKDN5WW2ZLOOQ5TEMBQG4YTANZTGEZA . You are receiving this because you were mentioned.Message ID: @.***>

WeAreLegion999 commented 3 months ago

@asi2233 it is possible they may be protected with other forms of DRM as stated in the error message, and not FileOpen DRM. An unexpected EOF is generally caused by an incompletely compiled input PDF.

asi2233 commented 3 months ago

@WeAreLegion999 Both files are protected by FileOpen DRM, as they require the FileOpen plugin to open