Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to parse executable file when using pkg #6

Open
StratISaurus opened this issue Sep 22, 2022 · 1 comment
Open

Unable to parse executable file when using pkg #6

StratISaurus opened this issue Sep 22, 2022 · 1 comment

Comments

@StratISaurus
Copy link

I have a number of executable files created using pkg. None of them seem to work with Authenticode-JS. I get ERR_OUT_OF_RANGE node:internal/buffer:86 when parsing either of my exe's and a friendly error of "Unable to parse executable file"

@StratISaurus
Copy link
Author

StratISaurus commented Sep 22, 2022

logging the buffer looks like the issue may be related to a previous issue:
<Buffer 2e 74 65 78 74 00 00 00 a0 8a 0f 01 00 10 00 00 00 8c 0f 01 00 04 00 00 00 00 00 00 00 00 00 00 00 00 00 00 20 00 00 60> <Buffer 2e 72 64 61 74 61 00 00 44 83 e2 00 00 a0 0f 01 00 84 e2 00 00 90 0f 01 00 00 00 00 00 00 00 00 00 00 00 00 40 00 00 40> <Buffer 2e 64 61 74 61 00 00 00 4c 89 2d 00 00 30 f2 01 00 da 02 00 00 14 f2 01 00 00 00 00 00 00 00 00 00 00 00 00 40 00 00 c0> <Buffer 2e 70 64 61 74 61 00 00 98 d9 0c 00 00 c0 1f 02 00 da 0c 00 00 ee f4 01 00 00 00 00 00 00 00 00 00 00 00 00 40 00 00 40> <Buffer 5f 52 44 41 54 41 00 00 f4 00 00 00 00 a0 2c 02 00 02 00 00 00 c8 01 02 00 00 00 00 00 00 00 00 00 00 00 00 40 00 00 40> Unable to parse executable file: ../../install.exe

I tried both fixes listed here: #3 (comment)

Those both seem to get a little further but then throw the Out of Range exception:
<Buffer 2e 74 65 78 74 00 00 00 a0 8a 0f 01 00 10 00 00 00 8c 0f 01 00 04 00 00 00 00 00 00 00 00 00 00 00 00 00 00 20 00 00 60> <Buffer 2e 72 64 61 74 61 00 00 44 83 e2 00 00 a0 0f 01 00 84 e2 00 00 90 0f 01 00 00 00 00 00 00 00 00 00 00 00 00 40 00 00 40> <Buffer 2e 64 61 74 61 00 00 00 4c 89 2d 00 00 30 f2 01 00 da 02 00 00 14 f2 01 00 00 00 00 00 00 00 00 00 00 00 00 40 00 00 c0> <Buffer 2e 70 64 61 74 61 00 00 98 d9 0c 00 00 c0 1f 02 00 da 0c 00 00 ee f4 01 00 00 00 00 00 00 00 00 00 00 00 00 40 00 00 40> <Buffer 5f 52 44 41 54 41 00 00 f4 00 00 00 00 a0 2c 02 00 02 00 00 00 c8 01 02 00 00 00 00 00 00 00 00 00 00 00 00 40 00 00 40> <Buffer 2e 72 73 72 63 00 00 00 78 2a 02 00 00 b0 2c 02 00 2c 02 00 00 ca 01 02 00 00 00 00 00 00 00 00 00 00 00 00 40 00 00 40> <Buffer 2e 72 65 6c 6f 63 00 00 78 c2 01 00 00 e0 2e 02 00 c4 01 00 00 f6 03 02 00 00 00 00 00 00 00 00 00 00 00 00 40 00 00 42> node:internal/buffer:86 throw new ERR_OUT_OF_RANGE(type || 'offset', ^

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant