A TLS encrypted Reverse Shell

Usage

``` $ trsh -h trsh 0.1.2 南浦月 nanpuyue@gmail.com A TLS encrypted Reverse Shell

USAGE: trsh [FLAGS] [OPTIONS]

FLAGS: -h, --help Prints help information -r Readonly mode (client) -n Do not verify the server certificate (client) -V, --version Prints version information

OPTIONS: -c Certificate chain file (server, required) -d Server name to verify (client) -k Private key file (server, required) -l Listen address (server, required) -s Server address to connect (client, required) ```

Server

shell script $ trsh -l 0.0.0.0:2022 -c trsh.crt -k trsh.key Server fingerprint: KjyG4ONKfTUjjsAzgEFcPpwCCaLeVtHgNqEAfWo9Oj8= Waiting for client to connect...

Client

```shell script $ trsh -r -n -s server.host:2022 Server fingerprint: KjyG4ONKfTUjjsAzgEFcPpwCCaLeVtHgNqEAfWo9Oj8= Do you want continue? [y/N] y You can use "Ctrl + C" to disconnect at any time.

```

Or you can use a certificate trusted by the system without -n.

Tips

Generate a self-signed certificate

shell script openssl genrsa -out trsh.key 2048 openssl req -new -x509 -days 365 -key trsh.key -out trsh.crt -subj "/CN=trsh"

License

This project is licensed under the [MIT license].