asarfix
v0.1.0
Published
Fixes/Decrypts asar archives protected by asarmor and asarbreak
Downloads
56
Readme
asarfix
Fixes/Decrypts asar archives protected by asarmor and asarbreak.
npx asarfix app.asar -o out.asar
npx asar extract out.asar out
Decryption
Asarmor uses AES-128-CBC to encrypt .js
files in the asar archive.
The encryption key is stored in one of these binaries:
- electron-forge:
resources/app.asar.unpacked/.vite/build/main.node
- electron-builder:
resources/app.asar.unpacked/dist/main.node
npx asarfix app.asar -o out.asar -b <path to main.node>
The key may also be available in plaintext: node_modules/asarmor/src/encryption/key.txt
.
Bypass Debugging Protection
It checks process.argv, but we can also debug by using the NODE_OPTIONS=--inspect
environment variable.