Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mzfr/rsh
generate reverse shell from CLI for linux and Windows.
https://github.com/mzfr/rsh
awk bash linux netcat perl php powershell python reverse-shell windows
Last synced: 3 days ago
JSON representation
generate reverse shell from CLI for linux and Windows.
- Host: GitHub
- URL: https://github.com/mzfr/rsh
- Owner: mzfr
- License: gpl-3.0
- Archived: true
- Created: 2019-11-16T11:27:20.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2020-09-17T06:14:38.000Z (about 4 years ago)
- Last Synced: 2024-08-01T09:26:30.426Z (3 months ago)
- Topics: awk, bash, linux, netcat, perl, php, powershell, python, reverse-shell, windows
- Language: Python
- Size: 88.9 KB
- Stars: 247
- Watchers: 10
- Forks: 29
- Open Issues: 1
-
Metadata Files:
- Readme: Readme.md
- License: LICENSE
Awesome Lists containing this project
README
rsh
[![Python Versions](https://img.shields.io/badge/python-3.5|3.6|3.7|3.8-blue.svg)](https://www.python.org/downloads/)
[![PEP8](https://img.shields.io/badge/code%20style-pep8-orange.svg)](https://www.python.org/dev/peps/pep-0008/)
[![Contributors](https://img.shields.io/github/contributors/mzfr/rsh.svg)](https://github.com/mzfr/rsh/graphs/contributors)
[![Issues](https://img.shields.io/github/issues/mzfr/rsh.svg)](https://github.com/mzfr/rsh/issues)
[![License: GPL v3](https://img.shields.io/badge/License-GPLv3-blue.svg)](https://www.gnu.org/licenses/gpl-3.0)
[![Maintenance](https://img.shields.io/badge/Maintained%3F-yes-green.svg)](https://github.com/mzfr/rsh/graphs/commit-activity)![rsh in action](images/rsh.png)
Introduction •
Usage •
Installation •
Galleryrsh is a tool purely written in Python 3 to easily a generate reverse shell command for Linux as well as Windows.
### Features
This tools makes it easy for you to quickly generate reverse shell commands supported in both Linux and Windows, in the following languages:
* bash
- Bash reverse shell
- netcat
- netcat OpenBSD
- nc.traditional
* Python
- IPv4
- IPv6
* Ruby
* Perl
* PHP
* Powershell
* Node.JS
* TCLSH
* Awk
* Java### Usage
```
usage: rsh [-h] [-sh SH] [-listen] lhost lportpositional arguments:
lhost Specify local host ip
lport Specify a local portoptional arguments:
-h, --help show this help message and exit
-sh SH Specify the language to generate the reverse shell
-listen Spawn a netcat listener for this shell.
```Using 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:
* `./rsh 192.168.56.1 4444 -sh bash`
* `./rsh 192.168.56.1 4444 -sh php`
* `./rsh 192.168.56.1 4444 -sh powershell`You 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
* `./rsh 192.168.56.1 4444 -sh powershell -listen`### Installation
You need to have Python 3.5 or greater installed to run rsh. Both Linux and Windows are supported.
Along with that rsh uses [pyfiglet](https://pypi.org/project/pyfiglet/) which you can install by running:```
pip install -r requirements.txt
```### Gallery
* __Getting bash command__
![](images/rsh.png)
* __Options__
![](images/options.png)
* __Wrong IP__ :smile:
![](images/ip-err.png)
* __Wrong PORT__ :smile:
![](images/port-err.png)
### Contribution
* Report a bug
* Fix something and open a pull request
* Add more reverse shellsIn any case feel free to open an issue
## Credits
All the shell command are taken from [pentestmonkey](http://pentestmonkey.net/)
## License
This project is licensed under the GPLv3 License - see the [LICENSE](LICENSE) file for details
## Support
If you'd like you can buy me some coffee: