javascript-deobfuscator
javascript-deobfuscator copied to clipboard
General purpose JavaScript deobfuscator
Hello! I try to deobfuscate a file that have private fields (hash char #): [here docs on mozilla](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Classes/Private_class_fields) ``` ..............node_modules\shift-parser\dist\tokenizer.js:1536 throw this.createILLEGAL(); ^ Error: [1:6801]: Unexpected "#" Console error: index:...
excuse me I get an infinite wait when I try to remove proxy functions In this recursive function -> replaceProxyFunctionUsages Can a recursion depth limit be added? Otherwise, we really...
See #22 - there's 2 variables that are aliases of the same thing. Can they be detected and simplified?
https://github.com/ben-sb/javascript-deobfuscator/issues/20#issue-1224057554 If ever possible to deal with somehow updating the parser, this may be an interesting idea.
The following snippet does not simplify ```js function _0x1661() { "#execute"; return ["str1", "str2"]; } const foo = _0x1661()[0]; ``` [FunctionExecutor.replaceFunctionCalls()](https://github.com/ben-sb/javascript-deobfuscator/blob/master/src/modifications/execution/functionExecutor.ts#L126) tries to replace the call by a literal value...
I have this very long JS script: https://bloxdcdn.bloxdhop.io/static/js/main.445ebc5f.js Please don't ask what I'm doing with it. I don't know how JS works; I need to deobfuscate it to give it...
Uncaught Error: [3118:33]: Unexpected token "{" https://github.com/ben-sb/javascript-deobfuscator/files/13258048/2.txt
I wanted to help out and started digging into the cause of #36. Although I was unable to locate the core issue ( I believe the deobfuscation would actually finish,...
```js function foo(){ var bar; return 42; } console.log(foo()) ``` # Expected: ```js console.log(42); ``` # Actual: unchanged
```js var foo; foo = [42]; console.log(foo[0]); ``` should be handled identically with ```js var foo = [42]; console.log(foo[0]); ``` and be deobfuscated to ```js console.log(42); ```