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

Decompile exe file #901

Closed
ffbboy30 opened this issue May 31, 2021 · 5 comments
Closed

Decompile exe file #901

ffbboy30 opened this issue May 31, 2021 · 5 comments
Labels

Comments

@ffbboy30
Copy link

Hi,

I'm looking to find a solution to decompile an exe file.
With an Hex editor I can see the file start with MZ and contain node.js or java file.
I've tried to decompress with 7zip.
Do you have some idea ? Thanks

@ffbboy30
Copy link
Author

ffbboy30 commented Jun 2, 2021

I've made a error with my question .
When I compile it not works the same as norma, it works a little bit speeder than my VS code.
That why I'm looking to go back to compare.
If it is not possible I don't care , it's a tiny problem.

I've another question in the exe I've found
"./node_modules/ws/package.json":[58874,1234]
58874 is the offset ?
1234 the size file ?

What that it means ?

@calebboyd calebboyd added question and removed feature labels Jun 2, 2021
@calebboyd
Copy link
Member

I've another question in the exe I've found
"./node_modules/ws/package.json":[58874,1234]

That line represents an entry in the nexe virtual file system manifest (its an implementation detail, the offset in the blob (not the binary itself) and byte length)

this.index[name] = existingEntry || [this.offset, size]

At build time your application's dependencies (on the build machine) are combined into an uncompressed blob and appended to the end of a mostly normal node.js binary.

When I compile it not works the same as norma, it works a little bit speeder than my VS code.

The file system calls are likely faster because the reads can share a descriptor as they seek through the blob.

@ffbboy30
Copy link
Author

ffbboy30 commented Jun 3, 2021

So if the file are listed correctly in the exe , Is possible to go back from the exe to the project to compare the both code if they are the same ?
Thanks

@calebboyd
Copy link
Member

Yes, it's possible. But the methodology for doing so is not documented and subject to break.

@calebboyd
Copy link
Member

Moving to a discussion thread - #914

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

No branches or pull requests

2 participants