echo094 / decode-js

JS混淆代码的AST分析工具 AST analysis tool for obfuscated JS code
MIT License
570 stars 301 forks source link

obfuscator: Update mothods for handling custom codes (self-defending, debug-protection, console-output) #44

Closed echo094 closed 9 months ago

echo094 commented 9 months ago

The templates are provided as follows:

Currently, I have only deleted some incorrect codes (affects issue #34), and there is still work to be done (finished).

In this patch, the id and init of a VariableDeclarator, or the id and params of a FunctionDeclaration will be used to generate the feature pattern. If the source code matches the pattern, the chance of mistakenly removing the extra code is very low.