that allows for remote command execution on a target machine.
- Establishes a reverse shell connection between a client and server.
- Executes commands on the client and receives the output on the server.
- Allows changing the working directory on the client machine.
- Supports basic command execution and file system navigation.
- Linux operating system
clang
compiler (or any C compiler of your choice)
-
Compile the server and client programs:
make ./server <server_ip> <port> ./client
The client will automatically connect to the server using the specified IP address and port.
Once connected, you can execute commands on the client machine by entering them on the server console. The output of the command will be displayed on the server.
To change the working directory on the client, use the cd command followed by the desired directory path:
cd /path/to/directory
The server will update and display the current working directory of the client.
To exit the reverse shell, enter the command exit on the server console.