https://github.com/rsrdjan/srsh
Secure Reverse Shell
https://github.com/rsrdjan/srsh
libcrypto libssl openbsd shell
Last synced: 2 months ago
JSON representation
Secure Reverse Shell
- Host: GitHub
- URL: https://github.com/rsrdjan/srsh
- Owner: rsrdjan
- License: bsd-3-clause
- Created: 2024-04-11T11:30:17.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2024-04-15T20:37:15.000Z (about 1 year ago)
- Last Synced: 2025-02-13T08:52:40.378Z (4 months ago)
- Topics: libcrypto, libssl, openbsd, shell
- Language: C
- Homepage:
- Size: 16.6 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
## srsh
### Secure Reverse ShellSimple TLS-enabled reverse shell framework (agent and server)
## Installation
```
git clone https://github.com/rsrdjan/srsh.git
cd srsh
make all
```
You can `make` individual components or `all`. Individual components are:`make cert` - invocates `openssl` command-line tool to generate self-signed x509 certificate and private key (both needed for `srsh-server`) in interactive mode. Certificate outputs to `cert.crt` file and private key to `priv.key` file.
`make server` - builds server
`make agent` - builds agent
`make clean` - removes object files
## Usage
#### Server
```
srsh-server -c certfile -k privkeyfile [-p port]
```
Loads `certfile` and `privkeyfile` previously generated with `make cert` and starts listening on `port`. If `port` is omitted, 1982 is the default one.#### Agent
```
srsh-agent [-p port] ip/fqdn
```
Connects to `ip/fqdn` on `port`. If `port` is omitted, 1982 is the default one. Agent forks and goes into background.## Notes
List of changes is contained in [changelog](CHANGELOG.md).
Tested on [OpenBSD](https://www.openbsd.org) and Linux. Enjoy.