{"id":20936317,"url":"https://github.com/extrange/reverse-shell","last_synced_at":"2025-10-07T04:29:56.087Z","repository":{"id":259393416,"uuid":"869469598","full_name":"extrange/reverse-shell","owner":"extrange","description":"Setup reverse SSH shell on a machine","archived":false,"fork":false,"pushed_at":"2025-02-12T08:43:52.000Z","size":18,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-05-31T03:33:40.869Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/extrange.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2024-10-08T10:55:14.000Z","updated_at":"2025-02-12T08:43:55.000Z","dependencies_parsed_at":"2024-10-25T03:35:41.701Z","dependency_job_id":"54aafb83-b9f9-4cee-852a-16bc0eb77213","html_url":"https://github.com/extrange/reverse-shell","commit_stats":null,"previous_names":["extrange/reverse-shell"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/extrange/reverse-shell","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/extrange%2Freverse-shell","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/extrange%2Freverse-shell/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/extrange%2Freverse-shell/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/extrange%2Freverse-shell/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/extrange","download_url":"https://codeload.github.com/extrange/reverse-shell/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/extrange%2Freverse-shell/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":278721959,"owners_count":26034457,"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-10-07T02:00:06.786Z","response_time":59,"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":[],"created_at":"2024-11-18T22:19:04.371Z","updated_at":"2025-10-07T04:29:56.056Z","avatar_url":"https://github.com/extrange.png","language":"Shell","readme":"# Reverse Shell on Remote Machines\n\nSets up a reverse shell on remote machines, using an AWS internet accessible jump host.\n\nMainly for AWS Sagemaker notebooks.\n\n## Setup\n\n### Create Sagemaker Code Editor and obtain key fingerprint\n\nFirst, create an AWS Sagemaker notebook instance.\n\nThen, run the following and note the key fingerprint:\n\n```sh\nssh-keygen -t ed25519 -f ~/.ssh/id_ed25519 -N '' -q \u0026\u0026 cat ~/.ssh/id_ed25519.pub\n```\n\n### Setup AWS EC2 Jump Host\n\nCreate an AWS EC2 instance, which will be used as the jump host. Note the public DNS hostname.\n\nUnder Security Groups, add a rule allowing inbound TCP traffic on port 9999.\n\nConnect to the AWS EC2 instance and add the key fingerprint above to `~/.ssh/authorized_keys`.\n\nRun the following to allow SSH to open remotely accessible listening ports on the jump host:\n\n```sh\necho \"GatewayPorts clientspecified\" | sudo tee /etc/ssh/sshd_config.d/10-gateway-ports.conf\n```\n\n### Setup Reverse Shell\n\nIf necessary, edit the environment variables in `setup.sh` appropriately.\n\nNow, we can setup the reverse shell. Run the following on the Sagemaker Code Editor:\n\n```sh\ncurl https://raw.githubusercontent.com/extrange/reverse-shell/main/setup.sh | bash\n```\n\n### Misc\n\nTo setup a convenient host alias and execute Starship automatically, add `.ssh/ssh-config` on the local host (your computer). You can then do `ssh hcc` on your computer.","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fextrange%2Freverse-shell","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fextrange%2Freverse-shell","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fextrange%2Freverse-shell/lists"}