$ trsh -h
trsh 0.1.3
南浦月 <nanpuyue@gmail.com>
A TLS encrypted Reverse Shell
USAGE:
trsh [OPTIONS]
OPTIONS:
-c <FILE> Certificate chain file (server, required)
-d <DOMAIN> Server name to verify (client)
-h, --help Print help information
-k <FILE> Private key file (server, required)
-l <IP:PORT> Listen address (server, required)
-n Do not verify the server certificate (client)
-r Readonly mode (client)
-s <HOST:PORT> Server address to connect (client, required)
-V, --version Print version information
$ trsh -l 0.0.0.0:2022 -c trsh.crt -k trsh.key
Server fingerprint: KjyG4ONKfTUjjsAzgEFcPpwCCaLeVtHgNqEAfWo9Oj8=
Waiting for client to connect...
$ 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
.
openssl req -x509 -newkey rsa:2048 -days 365 -nodes -keyout trsh.key -out trsh.crt -subj '/CN=trsh'
This project is licensed under the MIT license.