{"id":14637964,"url":"https://github.com/echo094/decode-js","last_synced_at":"2025-09-07T06:31:24.765Z","repository":{"id":108750269,"uuid":"535991695","full_name":"echo094/decode-js","owner":"echo094","description":"JS混淆代码的AST分析工具 AST analysis tool for obfuscated JS code","archived":false,"fork":false,"pushed_at":"2025-06-22T07:13:57.000Z","size":349,"stargazers_count":881,"open_issues_count":7,"forks_count":366,"subscribers_count":8,"default_branch":"main","last_synced_at":"2025-06-22T08:21:02.132Z","etag":null,"topics":["javascript-deobfuscator","obfuscator"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/echo094.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2022-09-13T06:37:40.000Z","updated_at":"2025-06-22T07:14:01.000Z","dependencies_parsed_at":"2024-02-06T06:28:13.142Z","dependency_job_id":"0b7b1d66-ae38-4680-a8c8-b0bd39e81a8d","html_url":"https://github.com/echo094/decode-js","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/echo094/decode-js","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/echo094%2Fdecode-js","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/echo094%2Fdecode-js/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/echo094%2Fdecode-js/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/echo094%2Fdecode-js/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/echo094","download_url":"https://codeload.github.com/echo094/decode-js/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/echo094%2Fdecode-js/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":274005341,"owners_count":25205934,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-09-07T02:00:09.463Z","response_time":67,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["javascript-deobfuscator","obfuscator"],"created_at":"2024-09-10T02:01:27.817Z","updated_at":"2025-09-07T06:31:24.750Z","avatar_url":"https://github.com/echo094.png","language":"JavaScript","readme":"# decode-js\n\n基于 Babel 的 AST 分析器和处理器，可以处理以下情况：\n\n* stringArray（包括添加了旋转操作，以及嵌套调用的情况）\n* 死代码\n* 控制流扁平化（switch）\n* 局部代码变换（Object表达式、字符串分割等）\n* 自定义代码（自保护，禁止控制台调试，禁止控制台输出）\n\nAn AST analyzer and processor based on Babel that can handle the following situations:\n\n* stringArray (including Rotate, Wrappers, and ChainedCalls)\n* deadCode\n* controlFlowFlattening (switch)\n* transformer (ObjectExpression, SplitString, and etc.)\n* customCode (self-defending, debug-protection, console-output)\n\n## 使用 Usage\n\n**如果在安装和运行过程中出现问题，请先排查[isolated-vm](https://github.com/laverdet/isolated-vm?tab=readme-ov-file#requirements)的安装和使用要求**\n\n**If problems occur during installation and execution, please check the requirements of [isolated-vm](https://github.com/laverdet/isolated-vm?tab=readme-ov-file#requirements) first**\n\n1. 准备一个nodejs环境 (22.x以上)\n\n   Prepare a nodejs environment (\u003e=22.x)\n   \n2. 通过`npm i`安装依赖\n   \n   Install the dependencies via `npm i`\n   \n3. 按如下方式运行插件：\n\n   Run the plugins as follows:\n\n```shell\n# pre-defined command\nnpm run xxx\n# or full command\nnpm run decode -- -t type [-i input.js] [-o output.js]\n```\n\n`xxx`为预定义的指令，见[package.json](package.json)中的`scripts`字段。\n\n`xxx` are predefined commands, see the `scripts` field in [package.json](package.json).\n\n`type`：\n* common (高频局部混淆)\n* jjencode (sojson.com 版本)\n* sojson\n* sojsonv7\n* obfuscator\n\n默认输入文件为`input.js`，文件中不能包含除混淆代码以外的内容（例如非混淆代码）。\n\nThe default input file is `input.js`. The file cannot contain additional codes other than obfuscated code (such as non-obfuscated code).\n\n默认输出文件为`output.js`。\n\nThe default output file is `output.js`. \n\n## Related Projects\n\n* [cilame/v_jstools](https://github.com/cilame/v_jstools)\n* [j4k0xb/webcrack](https://github.com/j4k0xb/webcrack)\n* [NXY666/Jsjiemi](https://github.com/NXY666/Jsjiemi)\n\n\n","funding_links":[],"categories":["JavaScript"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fecho094%2Fdecode-js","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fecho094%2Fdecode-js","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fecho094%2Fdecode-js/lists"}