SRAT is a very simple remote acces tool capable of remote command execution aswell as file upload and download.
To build simply execute make
. This will build both out/local
and out/remote
.
If you only wish to build one of these you can execute
make local
or
make remote
To clean out
and obj
execute
make clean
To run SRAT start by executing
./out/remote [PORT]
this will start remote
and by defult it will listen on port 8080
for new connections. The next step is to run out/local
and give it the remote IP-address and port to connect to.
./out/local <IP> <PORT>
Now everything sent will be executed as a command on the remote machine. Additional functionality is documented under Commands.
Command | Description |
---|---|
get <filename> | Download a file from remote |
put <filename> | Upload a file to remote |
- Directory of remote is not updated. To list file in subdrectory you need to run something like:
cd ./dir_name && ls
- Until serialization is fixed you may experiance bugs.
- Refactor!
- Serialize data packets
- More error handling
- Add encryption