RCON Flood again!BAD RCON ATTEMPT BY:
#1

Like a week ago i made a topic about my rcon getting hacked , currently , i've made my server so rcon is useless and it has no effect in-game .

BAD ATTEMPTS :
Код:
[20:54:30] BAD RCON ATTEMPT BY: 83.28.92.124
[20:54:30] BAD RCON ATTEMPT BY: 83.28.92.124
[20:54:30] BAD RCON ATTEMPT BY: 83.28.92.124
[20:54:30] BAD RCON ATTEMPT BY: 83.28.92.124
[20:54:30] BAD RCON ATTEMPT BY: 83.28.92.124
[20:54:30] BAD RCON ATTEMPT BY: 83.28.92.124
[20:54:30] BAD RCON ATTEMPT BY: 83.28.92.124
[20:54:30] BAD RCON ATTEMPT BY: 83.28.92.124
[20:54:31] BAD RCON ATTEMPT BY: 83.28.92.124
[20:54:31] BAD RCON ATTEMPT BY: 83.28.92.124
[20:54:31] BAD RCON ATTEMPT BY: 83.28.92.124
[20:54:31] BAD RCON ATTEMPT BY: 83.28.92.124
[20:54:31] BAD RCON ATTEMPT BY: 83.28.92.124
[20:54:31] BAD RCON ATTEMPT BY: 83.28.92.124
[20:54:31] BAD RCON ATTEMPT BY: 83.28.92.124
[20:54:31] BAD RCON ATTEMPT BY: 83.28.92.124
[20:54:31] BAD RCON ATTEMPT BY: 83.28.92.124
[20:54:32] BAD RCON ATTEMPT BY: 83.28.92.124
[20:54:32] BAD RCON ATTEMPT BY: 83.28.92.124
[20:54:32] BAD RCON ATTEMPT BY: 83.28.92.124
[20:54:32] BAD RCON ATTEMPT BY: 83.28.92.124
[20:54:32] BAD RCON ATTEMPT BY: 83.28.92.124
[20:54:33] BAD RCON ATTEMPT BY: 83.28.92.124
[20:54:33] BAD RCON ATTEMPT BY: 83.28.92.124
[20:54:33] BAD RCON ATTEMPT BY: 83.28.92.124
[20:54:33] BAD RCON ATTEMPT BY: 83.28.92.124
[20:54:33] BAD RCON ATTEMPT BY: 83.28.92.124
[20:54:33] BAD RCON ATTEMPT BY: 83.28.92.124
[20:54:33] BAD RCON ATTEMPT BY: 83.28.92.124
[20:54:33] BAD RCON ATTEMPT BY: 83.28.92.124
[20:54:33] BAD RCON ATTEMPT BY: 83.28.92.124
[20:54:33] BAD RCON ATTEMPT BY: 83.28.92.124
[20:54:33] BAD RCON ATTEMPT BY: 83.28.92.124
[20:54:33] BAD RCON ATTEMPT BY: 83.28.92.124
[20:54:34] BAD RCON ATTEMPT BY: 83.28.92.124
[20:54:34] BAD RCON ATTEMPT BY: 83.28.92.124
[20:54:34] BAD RCON ATTEMPT BY: 83.28.92.124
[20:54:34] BAD RCON ATTEMPT BY: 83.28.92.124
[20:54:34] BAD RCON ATTEMPT BY: 83.28.92.124
[20:54:34] BAD RCON ATTEMPT BY: 83.28.92.124
[20:54:34] BAD RCON ATTEMPT BY: 83.28.92.124
[20:54:34] BAD RCON ATTEMPT BY: 83.28.92.124
[20:54:34] BAD RCON ATTEMPT BY: 83.28.92.124
[20:54:34] BAD RCON ATTEMPT BY: 83.28.92.124
[20:54:34] BAD RCON ATTEMPT BY: 83.28.92.124
[20:54:35] BAD RCON ATTEMPT BY: 83.28.92.124
[20:54:35] BAD RCON ATTEMPT BY: 83.28.92.124
[20:54:35] BAD RCON ATTEMPT BY: 83.28.92.124
[20:54:35] BAD RCON ATTEMPT BY: 83.28.92.124
[20:54:35] BAD RCON ATTEMPT BY: 83.28.92.124
[20:54:35] BAD RCON ATTEMPT BY: 83.28.92.124
[20:54:35] BAD RCON ATTEMPT BY: 83.28.92.124
[20:54:35] BAD RCON ATTEMPT BY: 83.28.92.124
[20:54:35] BAD RCON ATTEMPT BY: 83.28.92.124
[20:54:35] BAD RCON ATTEMPT BY: 83.28.92.124
[20:54:35] BAD RCON ATTEMPT BY: 83.28.92.124
[20:54:35] BAD RCON ATTEMPT BY: 83.28.92.124
[20:54:36] BAD RCON ATTEMPT BY: 83.28.92.124
[20:54:36] BAD RCON ATTEMPT BY: 83.28.92.124
Well the server did not crash like it did previously but i think that this code has saved me:
pawn Код:
public OnRconLoginAttempt(ip[], password[], success)
{
    new playerip[16];
    new string[128];
    new hacker[MAX_PLAYER_NAME];
    for(new i = 0; i < MAX_PLAYERS; i++) //Foreach would be the better option.
    {
        if(!IsPlayerConnected(i)) continue; //Remove this if you are using foreach.
        GetPlayerIp(i, playerip, sizeof(playerip)); //Get the player's ip
        GetPlayerName(i,hacker,sizeof(hacker));
        if(strcmp(playerip, ip, true)) continue; //This will compare the ip of the attempted RCON accesser and the player's ip
        SendClientMessage(i, -1, "{FF0000}[BAN]{EEEEEE}James Bond has banned you for Failed RCON Login Attempts");
        SetTimerEx("BanPlayer", 200, false, "i", i); //Set a timer to kick the player.
        format(string,sizeof(string),"{FF0000}[BAN]{EEEEEE}James Bond has banned %s for Failed RCON Login Attempts");
        SendClientMessageToAll(COLOR_RED,string);
    }
    return 1;
}
Any ideas on how to stop the flood ? It might crash my server if i dont stop it.!

How can i stop this ?
Reply
#2

change the rcon password to 0 that will disable the rcon password
and use this
Код HTML:
public OnRconLoginAttempt(ip[], password[], success)
{
    new playerip[16];
    new string[128];
    new hacker[MAX_PLAYER_NAME];
    for(new i = 0; i < MAX_PLAYERS; i++) //Foreach would be the better option.
    {
        if(!IsPlayerConnected(i)) continue; //Remove this if you are using foreach.
        GetPlayerIp(i, playerip, sizeof(playerip)); //Get the player's ip
        GetPlayerName(i,hacker,sizeof(hacker));
        if(strcmp(playerip, ip, true)) continue; //This will compare the ip of the attempted RCON accesser and the player's ip
        SendClientMessage(i, -1, "{FF0000}[BAN]{EEEEEE}James Bond has banned you for Failed RCON Login Attempts");
        SetTimerEx("BanPlayer", 200, false, "i", i); //Set a timer to kick the player.
        format(string,sizeof(string),"{FF0000}[BAN]{EEEEEE}James Bond has banned %s for Failed RCON Login Attempts", ip);
        SendClientMessageToAll(COLOR_RED,string);
    }
    return 1;
}
so it can show you all the ip...
Reply
#3

rcon 0

^ In server.cfg
Reply
#4

Quote:
Originally Posted by v01d
Посмотреть сообщение
rcon 0

^ In server.cfg
This, or ban his IP in the server firewall if you got access to the firewall rules.
Reply
#5

You can use firewalling/IP denying to your advantage. Additionally, it's recommended you just plain out disable remote control over rcon. To do so just set "rcon" to 0 in your server configuration(server.cfg) file.
Reply
#6

I'm assuming from your signature and the last post that your server is with us, if so make a support ticket and we can firewall ban the ip for you.
Reply
#7

Quote:
Originally Posted by NewerthRoleplay
Посмотреть сообщение
I'm assuming from your signature and the last post that your server is with us, if so make a support ticket and we can firewall ban the ip for you.
Already done that. Im waiting for a response !.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)