pwFoo / trsh

A TLS encrypted Reverse Shell

Home Page:https://trsh.stdio.link

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

A TLS encrypted Reverse Shell

Usage

$ 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

Server

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

Client

$ 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

openssl req -x509 -newkey rsa:2048 -days 365 -nodes -keyout trsh.key -out trsh.crt -subj '/CN=trsh'

License

This project is licensed under the MIT license.

Homepage

https://github.com/nanpuyue/trsh

About

A TLS encrypted Reverse Shell

https://trsh.stdio.link

License:MIT License


Languages

Language:Rust 100.0%