An rust CLI app that connects to a server then opens a shell and redirects stdin/stdout through the network socket. Can be used in conjunction with the metasploit framework reverse_tcp shell listener.
Ensure rust is installed (https://www.rust-lang.org/) then run:
$ cargo build
The host and port are hard-coded towards the top of main.rs so you'll want to change these before building.
Output is written using the env_logger
crate so by default you won't see anything unless you set the "RUST_LOG" environment variable.
To see output while running use:
$ RUST_LOG=rrat cargo run
or if running an already compiled executable:
$ RUST_LOG=rrat ./rrat
Example output after running rrat
then starting a meterpreter listener.