17.06.2015, 15:52
Ultimate RCON security
Version: r1
sup everyone,Version: r1
so this is a simple script that will prevent your server's RCON from any possibilites to steal its password. It does two things:
1. Punishes player (kicks or bans, depending on the settings set in the file) if he exceeds the warnings limit for trying to login into RCON with wrong password
2. Changes the RCON password immediatly every 3 invalid tries to login in.
Settings
I've tried to make the script as easy to understand and effiecient as I could think of. There are several settings in the file you might want to change:pawn Код:
#define MAX_RCON_LENGHT 32 // What is the max lenght for a new RCON password?
#define MAX_RCON_WARNINGS 5 // How many times a player can input a wrong RCON password before he gets punished?
#define MAX_WRONG_INPUTS 3 // How many wrong RCON password inputs are needed for a new password?
#define PUNISHMENT 1 // How should a player, who exceeded the MAX_RCON_WARNINGS limit, should be punished? 1 - ban, 2 - kick.
Other features
This script also has a 'rcon whitelist'. If the player's name is in the list, he can see the RCON password using /rcon_password command. I've did this because as I said, this script will change the RCON password to a random one if there'll be several invalid tries to login into RCON.Download
Version: r1 (release date: 06.17.15)Link: Pastebin (indentation is wrong somewhy)
Link: Solidfiles
If you have any questions and/or ideas, feel free to discuss. I've tested it alone and looks like it works just fine.