{"id":13540358,"url":"https://github.com/mzfr/rsh","last_synced_at":"2025-04-02T07:30:55.990Z","repository":{"id":50653266,"uuid":"222089158","full_name":"mzfr/rsh","owner":"mzfr","description":"generate reverse shell from CLI for linux and Windows.","archived":true,"fork":false,"pushed_at":"2020-09-17T06:14:38.000Z","size":91,"stargazers_count":245,"open_issues_count":1,"forks_count":28,"subscribers_count":10,"default_branch":"master","last_synced_at":"2024-11-03T05:32:42.454Z","etag":null,"topics":["awk","bash","linux","netcat","perl","php","powershell","python","reverse-shell","windows"],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mzfr.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}},"created_at":"2019-11-16T11:27:20.000Z","updated_at":"2024-11-02T08:23:27.000Z","dependencies_parsed_at":"2022-09-01T21:02:07.439Z","dependency_job_id":null,"html_url":"https://github.com/mzfr/rsh","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/mzfr%2Frsh","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mzfr%2Frsh/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mzfr%2Frsh/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mzfr%2Frsh/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mzfr","download_url":"https://codeload.github.com/mzfr/rsh/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246774320,"owners_count":20831514,"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":["awk","bash","linux","netcat","perl","php","powershell","python","reverse-shell","windows"],"created_at":"2024-08-01T09:01:47.512Z","updated_at":"2025-04-02T07:30:52.047Z","avatar_url":"https://github.com/mzfr.png","language":"Python","readme":"\u003ch1 align=\"center\"\u003ersh\u003c/h1\u003e\n\n\u003c!--- See for dropping Python 3.5 support https://devguide.python.org/#status-of-python-branches --\u003e\n[![Python Versions](https://img.shields.io/badge/python-3.5|3.6|3.7|3.8-blue.svg)](https://www.python.org/downloads/)\n[![PEP8](https://img.shields.io/badge/code%20style-pep8-orange.svg)](https://www.python.org/dev/peps/pep-0008/)\n[![Contributors](https://img.shields.io/github/contributors/mzfr/rsh.svg)](https://github.com/mzfr/rsh/graphs/contributors)\n[![Issues](https://img.shields.io/github/issues/mzfr/rsh.svg)](https://github.com/mzfr/rsh/issues)\n[![License: GPL v3](https://img.shields.io/badge/License-GPLv3-blue.svg)](https://www.gnu.org/licenses/gpl-3.0)\n[![Maintenance](https://img.shields.io/badge/Maintained%3F-yes-green.svg)](https://github.com/mzfr/rsh/graphs/commit-activity)\n\n![rsh in action](images/rsh.png)\n\n\u003cp align=\"center\"\u003e\n  \u003ca href=\"#features\"\u003eIntroduction\u003c/a\u003e •\n  \u003ca href=\"#usage\"\u003eUsage\u003c/a\u003e •\n  \u003ca href=\"#installation\"\u003eInstallation\u003c/a\u003e •\n  \u003ca href=\"#gallery\"\u003eGallery\u003c/a\u003e\n\u003c/p\u003e\n\nrsh is a tool purely written in Python 3 to easily a generate reverse shell command for Linux as well as Windows.\n\n### Features\n\nThis tools makes it easy for you to quickly generate reverse shell commands supported in both Linux and Windows, in the following languages:\n\n* bash\n    - Bash reverse shell\n    - netcat\n    - netcat OpenBSD\n    - nc.traditional\n* Python\n    - IPv4\n    - IPv6\n* Ruby\n* Perl\n* PHP\n* Powershell\n* Node.JS\n* TCLSH\n* Awk\n* Java\n\n### Usage\n\n```\nusage: rsh [-h] [-sh SH] [-listen] lhost lport\n\npositional arguments:\n  lhost       Specify local host ip\n  lport       Specify a local port\n\noptional arguments:\n  -h, --help  show this help message and exit\n  -sh SH      Specify the language to generate the reverse shell\n  -listen     Spawn a netcat listener for this shell.\n```\n\nUsing rsh is very simple. All you need to do is provide an IP and port and the type of shell that is to be generated:\n\n* `./rsh 192.168.56.1 4444 -sh bash`\n* `./rsh 192.168.56.1 4444 -sh php`\n* `./rsh 192.168.56.1 4444 -sh powershell`\n\nYou can also automatically catch the reverse shell by starting a listener when you are done. This uses netcat and listens on the port you specified for your reverse shell\n* `./rsh 192.168.56.1 4444 -sh powershell -listen`\n\n### Installation\n\nYou need to have Python 3.5 or greater installed to run rsh. Both Linux and Windows are supported.\nAlong with that rsh uses [pyfiglet](https://pypi.org/project/pyfiglet/) which you can install by running:\n\n```\npip install -r requirements.txt\n```\n\n### Gallery\n\n* __Getting bash command__\n\n![](images/rsh.png)\n\n* __Options__\n\n![](images/options.png)\n\n* __Wrong IP__ :smile:\n\n![](images/ip-err.png)\n\n* __Wrong PORT__ :smile:\n\n![](images/port-err.png)\n\n### Contribution\n\n* Report a bug\n* Fix something and open a pull request\n* Add more reverse shells\n\nIn any case feel free to open an issue\n\n## Credits\n\nAll the shell command are taken from [pentestmonkey](http://pentestmonkey.net/)\n\n## License\n\nThis project is licensed under the GPLv3 License - see the [LICENSE](LICENSE) file for details\n\n## Support\n\nIf you'd like you can buy me some coffee:\n\n\u003ca href=\"https://www.buymeacoffee.com/mzfr\" target=\"_blank\"\u003e\u003cimg src=\"https://cdn.buymeacoffee.com/buttons/default-orange.png\" alt=\"Buy Me A Coffee\" style=\"height: 51px !important;width: 217px !important;\" \u003e\u003c/a\u003e\n","funding_links":["https://www.buymeacoffee.com/mzfr"],"categories":["Python","bash","\u003ca id=\"3ed50213c2818f1455eff4e30372c542\"\u003e\u003c/a\u003e工具"],"sub_categories":["\u003ca id=\"caab36bba7fa8bb931a9133e37d397f6\"\u003e\u003c/a\u003eWindows"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmzfr%2Frsh","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmzfr%2Frsh","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmzfr%2Frsh/lists"}