j4k0xb / webcrack

Deobfuscate obfuscator.io, unminify and unpack bundled javascript
https://webcrack.netlify.app
MIT License
1.06k stars 126 forks source link

Error when deobfuscating some files #102

Closed nicepot closed 3 months ago

nicepot commented 3 months ago

Describe the bug

Error when deobfuscating some files

Expected Behaviour

Debofus a.txt

Code

see attachment

Logs

No response

j4k0xb commented 3 months ago

Another obfuscator injected invalid code like _0x2c1033()+=_0x18f210. This is never executed but the parser complained, now it can recover from such errors and obfuscator.io is successfully deobfuscated.

But you'll have to find a different way/tool to deal with the $1

if ($1[5762] !== $1[5762]) {
        if (_0x263127 && !_0x350490) {
          (0, _0x208788[$1[6070]])(_0x1af268, _0x1afdd7);
          return () => {
            (0, _0x3825b7[$1[6070]])(_0xfd8ea3, null);
          };
        }
      } else {
        _0x1b25b0[$1[1771]](_0x39476d, {
          [$1[6070]]: () => _0x13e75d
        });