{"id":18515638,"url":"https://github.com/asutoshpalai/de-jsfuck","last_synced_at":"2025-10-30T06:20:10.266Z","repository":{"id":83784771,"uuid":"86180123","full_name":"asutoshpalai/de-jsfuck","owner":"asutoshpalai","description":"It deobfuscates JSFuck into readable JavaScript","archived":false,"fork":false,"pushed_at":"2018-02-27T04:25:52.000Z","size":28,"stargazers_count":40,"open_issues_count":1,"forks_count":6,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-24T01:01:43.250Z","etag":null,"topics":["common-lisp","javascript","jsfuck"],"latest_commit_sha":null,"homepage":"","language":"Common Lisp","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/asutoshpalai.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":"2017-03-25T18:37:08.000Z","updated_at":"2024-12-25T10:56:34.000Z","dependencies_parsed_at":null,"dependency_job_id":"5db2e53b-151b-4217-ae4c-64d0c55c08eb","html_url":"https://github.com/asutoshpalai/de-jsfuck","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/asutoshpalai%2Fde-jsfuck","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/asutoshpalai%2Fde-jsfuck/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/asutoshpalai%2Fde-jsfuck/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/asutoshpalai%2Fde-jsfuck/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/asutoshpalai","download_url":"https://codeload.github.com/asutoshpalai/de-jsfuck/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247993837,"owners_count":21030045,"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":["common-lisp","javascript","jsfuck"],"created_at":"2024-11-06T15:48:36.747Z","updated_at":"2025-10-30T06:20:10.176Z","avatar_url":"https://github.com/asutoshpalai.png","language":"Common Lisp","funding_links":[],"categories":[],"sub_categories":[],"readme":"# de-jsfuck\n\nIt deobfuscates JSFuck into readable JavaScript.\n\n## Quick use guide\n\n_If you have already setup SBCL with Quicklisp, the you can skip installing Roswell_\n\n- Install and setup [Roswell](https://github.com/roswell/roswell#installation-dependency--usage)\n\n- Run\n\n      $ ./run.sh '\u003cFile_Name_Containg_JsFuck_Code\u003e'\n\n\n## Background details\n\nI had to get past some changing JSFuck code which injected some global variables and\nget the values of those variables. My target was to reverse a JSFuck code with only\nspecific part varying every time. So, I embarked upon the strategy of pattern matching.\nIn the end, I was able to decode almost all of the JSFuck code.\n\nThe important observations on which the code is based are\n\n- All codes began with a specific pattern which fetched `Function` of JS which\nis used to generate functions from strings.\n\n- All of them ended with () which called the generated function.\n\n- The code between them had segments enclosed within () of [], sometimes\ncontinuous, separated by +. They turned out to generate characters of the\nstring being concatenated with +.\n\nNote: _I have added only those characters which I encountered during my inspection. The\ntoken list is not complete. If you find `\u003cunknown:` section in your output, you can\nevaluate them and add them to the mapping in [jsfuck-map.lisp](https://github.com/asutoshpalai/de-jsfuck/blob/master/jsfuck-map.lisp).\nA pull request on the same will also benifit a larger audience._\n\n### TODO\n\n- Check the missing characters and add support for them too.\n\n[Blog post](http://blog.asutoshpalai.in/2017/03/jsfuck-is-bad-security-barrier.html)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fasutoshpalai%2Fde-jsfuck","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fasutoshpalai%2Fde-jsfuck","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fasutoshpalai%2Fde-jsfuck/lists"}