-
Notifications
You must be signed in to change notification settings - Fork 66
Documentation RATelServer Argument
This documentation explains the operation of the server (RATelServer.py) and its functionalities.
The functioning of the server can vary depending on past arguments, that's why I'll try to make a rather general description of the server.
When connecting a new client to the server, the client sends the first information: the token, the current RAT folder, the user rights and the user login. This step is called HANDSHAKE.
For each new client, the server assigns an ID which is presented as a session number. Once the HANDSHAKE is finished, the server stores all the information received (Session number, IP address, port, RAT path, user rights and user login) in a SQLite database.
This allows in case of network or other problems, to identify and reconnect the clients to the server.
Argument | Syntax | Example | Commant |
---|---|---|---|
-i / --ip | --ip <ip of server> |
-i 127.0.0.1 |
The ip address of the server, this is handy if you have several IP addresses. |
-p / --port | `--port `` | --port 4444 |
The listening port of the server. |
-t / --time | --time <seconds> |
--time 120 |
The number of seconds that a message is automatically sent to check if the connection is alive or dead. |
-pa /--password | --password <your password> |
--password ciscoTheBoss |
The password for encrypting and decrypting data on the network. If the password is not the same as the client then it will be impossible to decrypt the messages. |
-c / --clean | --clean |
--clean |
Cleans up all data in the SQLite database. |
-d / --display | --display |
--display |
Disables the display of client information (logout and incoming connection). |
-h / --help | --help |
--help |
show this help message |
$ /usr/bin/python3 RATelServer.py --port 8888 --password LinuxIsBestOS --time 120 --clean
This command allows to listen on port 8888, decrypt and encrypt data with the LinuxIsBestOS password, ping the client every 2 minutes and delete database data.