echo094 / decode-js

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

visitor(split-variable-declaration): 执行后作用域binding异常 #124

Closed echo094 closed 1 month ago

echo094 commented 1 month ago

佬,最新的版本我解密 https://raw.githubusercontent.com/sudojia/scripts/refs/heads/script/sudojia_shuifei.js 还是和这个issue一样的错误耶

Originally posted by @the-best-richer in https://github.com/echo094/decode-js/issues/111#issuecomment-2363278749

echo094 commented 1 month ago

在这个visitor中使用了insertBefore操作(并且插入的内容是变量声明),因此在操作完成后需要刷新作用域,否则被移动的变量将无法正确检索。

the-best-richer commented 1 month ago

好,谢谢echo佬