Skip to content
This repository has been archived by the owner on Jan 13, 2024. It is now read-only.

Is it possible to unpack a pkg compiled execute? #340

Closed
Extamov opened this issue Feb 1, 2018 · 9 comments
Closed

Is it possible to unpack a pkg compiled execute? #340

Extamov opened this issue Feb 1, 2018 · 9 comments

Comments

@Extamov
Copy link

Extamov commented Feb 1, 2018

No description provided.

@J05HI
Copy link

J05HI commented Feb 7, 2018

@ExtendLord
I think you can't decompile an exe

@Extamov
Copy link
Author

Extamov commented Feb 7, 2018

@J05HI It depends

You can decompile a .NET exe

And also you can do the same to executes that were created by pkg.

It is possible to view pkg(exe) files using a hex editor and you will be able to see the source code.

@J05HI
Copy link

J05HI commented Feb 7, 2018

@ExtendLord
Oh really. I can't see the real source if doing that. Only hex...

@Extamov
Copy link
Author

Extamov commented Feb 7, 2018

@J05HI If you go to a specific line, you will see the js code(Make sure that you use a hex editor that translate to letters :|)

So the JS is still visible.

You can try to search to get to that section(Where the JS code is).

@J05HI
Copy link

J05HI commented Feb 7, 2018

@ExtendLord
Which line 😅

@Extamov
Copy link
Author

Extamov commented Feb 7, 2018

@J05HI You need to find that line, it is different for each pkg(exe)

You can do that by searching(Ctrl+F)

For example search "dependencies": { . (There are more package.json's than one because the modules are also inside the pkg but the first result should be the right json)

The code itself is somewhere around.

@J05HI
Copy link

J05HI commented Feb 8, 2018

@ExtendLord
Okay thanks! :)

@dcerisano
Copy link

dcerisano commented Apr 19, 2018

Only public package source is included in the binary.

According to issue #194 you need to privatize your package manifest in order prevent your source from being included in the binary.

AFAIK, private packages are stored as tokenized V8 compilations (no source, but stack-tracing is supported).

For extra security maybe also include an obfuscator in your pre-build automation. A pirate would have to be very determined to reverse engineer tokenized obfuscation from a binary.

Also encrypting any included content/media/assets is good practice.

@hipstersmoothie
Copy link
Contributor

Duplicate of #328

@hipstersmoothie hipstersmoothie marked this as a duplicate of #328 Mar 23, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants