{"id":13478692,"url":"https://github.com/evilsocket/jscythe","last_synced_at":"2025-04-06T09:08:09.955Z","repository":{"id":58160009,"uuid":"530346947","full_name":"evilsocket/jscythe","owner":"evilsocket","description":"Abuse the node.js inspector mechanism in order to force any node.js/electron/v8 based process to execute arbitrary javascript code.","archived":false,"fork":false,"pushed_at":"2024-09-09T23:26:29.000Z","size":47,"stargazers_count":326,"open_issues_count":1,"forks_count":25,"subscribers_count":7,"default_branch":"main","last_synced_at":"2025-03-30T07:08:46.437Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/evilsocket.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":"2022-08-29T18:35:53.000Z","updated_at":"2025-03-24T00:17:29.000Z","dependencies_parsed_at":"2024-12-02T02:38:31.934Z","dependency_job_id":null,"html_url":"https://github.com/evilsocket/jscythe","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/evilsocket%2Fjscythe","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/evilsocket%2Fjscythe/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/evilsocket%2Fjscythe/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/evilsocket%2Fjscythe/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/evilsocket","download_url":"https://codeload.github.com/evilsocket/jscythe/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247457801,"owners_count":20941906,"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-07-31T16:02:00.919Z","updated_at":"2025-04-06T09:08:09.937Z","avatar_url":"https://github.com/evilsocket.png","language":"Rust","readme":"jscythe abuses the node.js [inspector mechanism](https://nodejs.org/en/docs/guides/debugging-getting-started/) in order to force any node.js/electron/v8 based process to execute arbitrary javascript code, even if their debugging capabilities are disabled.\n\n![vscode](https://i.imgur.com/MmUupgZ.jpg)\n\nTested and working against Visual Studio Code, Discord, any Node.js application and more!\n\n## How\n\n1. Locate the target process.\n2. Send `SIGUSR1` signal to the process, this will enable the debugger on a port (depending on the software, sometimes it's random, sometimes it's not).\n3. Determine debugging port by diffing open ports before and after sending `SIGUSR1`.\n4. Get the websocket debugging URL and session id from `http://localhost:\u003cport\u003e/json`.\n5. Send a `Runtime.evaluate` request with the provided code.\n6. Profit.\n\n## Building\n\n```sh\ncargo build --release\n```\n\n## Running \n\nTarget a specific process and execute a basic expression:\n\n```sh\n./target/release/jscythe --pid 666 --code \"5 - 3 + 2\"\n```\n\nExecute code from a file:\n\n```sh\n./target/release/jscythe --pid 666 --script example_script.js\n```\n\nThe `example_script.js` can require any node module and execute any code, like:\n\n```js\nrequire('child_process').spawnSync('/System/Applications/Calculator.app/Contents/MacOS/Calculator', { encoding : 'utf8' }).stdout\n```\n\nSearch process by expression:\n\n```sh\n./target/release/jscythe --search extensionHost --script example_script.js\n```\n\n## Other options\n\nRun `jscythe --help` for the complete list of options. \n\n## License\n\nThis project is made with ♥  by [@evilsocket](https://twitter.com/evilsocket) and it is released under the GPL3 license.","funding_links":[],"categories":["Rust","其他_安全与渗透"],"sub_categories":["网络服务_其他"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fevilsocket%2Fjscythe","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fevilsocket%2Fjscythe","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fevilsocket%2Fjscythe/lists"}