{"id":19687353,"url":"https://github.com/phosphore/jsclean","last_synced_at":"2025-07-18T10:09:18.562Z","repository":{"id":68078790,"uuid":"55694779","full_name":"phosphore/jsClean","owner":"phosphore","description":"Unpacker/deobfuscator for javascript sources","archived":false,"fork":false,"pushed_at":"2016-04-07T13:29:33.000Z","size":370,"stargazers_count":6,"open_issues_count":1,"forks_count":1,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-04-29T07:41:03.083Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/phosphore.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}},"created_at":"2016-04-07T12:59:34.000Z","updated_at":"2023-08-31T19:09:44.000Z","dependencies_parsed_at":"2023-03-16T18:30:46.622Z","dependency_job_id":null,"html_url":"https://github.com/phosphore/jsClean","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/phosphore/jsClean","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/phosphore%2FjsClean","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/phosphore%2FjsClean/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/phosphore%2FjsClean/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/phosphore%2FjsClean/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/phosphore","download_url":"https://codeload.github.com/phosphore/jsClean/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/phosphore%2FjsClean/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":265738571,"owners_count":23820167,"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","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":[],"created_at":"2024-11-11T18:33:56.362Z","updated_at":"2025-07-18T10:09:18.553Z","avatar_url":"https://github.com/phosphore.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# jsClean\nUnpacker/deobfuscator for javascript sources.\n\n\nUsage example: `node jsClean.js inputfile.js --expandArray`.\n\n\nThe `--expandArray` is optional: running it without this argument will decode the strings in a readable way and format the code, but won't relocate the strings array in the input source. See below example.\n\nTaken this source:\n\n```javascript\nvar _0xae17=[\"\\x6E\\x65\\x78\\x74\\x4E\\x65\\x77\\x73\",\"\\x67\\x65\\x74\\x49\\x74\\x65\\x6D\",\"\\x73\\x65\\x74\\x49\\x74\\x65\\x6D\", \"\"]; //more...\nif(localStorage[_0xae17[1]](_0xae17[0])==undefined){localStorage[_0xae17[2]](_0xae17[0],0);} ;var valuta=_0xae17[3];var coefficient=0.1;chrome[_0xae17[17]][_0xae17[16]]({method:_0xae17[4],key:_0xae17[5]},function (_0xec46x3){valuta=_0xec46x3[_0xae17[6]];if(valuta==_0xae17[7]){chrome[_0xae17[17]][_0xae17[16]]({method:_0xae17[4],key:_0xae17[8]},function (_0xec46x3){coefficient=_0xec46x3[_0xae17[6]];if(window[_0xae17[10]][_0xae17[9]]==_0xae17[11]||window[_0xae17[10]][_0xae17[9]]==_0xae17[12]||window[_0xae17[10]][_0xae17[9]]==_0xae17[13]){setTimeout(_0xae17[14],1000*2);setTimeout(_0xae17[15],1000*4);} else {updatePrices();} ;} );} else {if(valuta==_0xae17[18]||valuta==_0xae17[19]){chrome[_0xae17[17]][_0xae17[16]]\n// and so on\n```\n\nthis script will string decode and relocate every string to its array pointer. The source after the script becomes:\n\n```javascript\nvar _0xae17 = [\"nextNews\", \"getItem\", \"setItem\", \"\"];\nif (localStorage[\"getItem\"](\"nextNews\") == undefined) {\n  localStorage[\"setItem\"](\"nextNews\", 0);\n};\nvar valuta = \"\";\nvar coefficient = 0.1;\n//and so on\n```\n\nWIP, feel free to send pull requests.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fphosphore%2Fjsclean","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fphosphore%2Fjsclean","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fphosphore%2Fjsclean/lists"}