BAD RCON ATTEMPT - Someone tries to hack my SA:MP server
#1

Код:
[16:25:27] BAD RCON ATTEMPT BY: 125.60.172.180
[16:25:27] BAD RCON ATTEMPT BY: 125.60.172.180
[16:25:26] BAD RCON ATTEMPT BY: 125.60.172.180
[16:25:26] BAD RCON ATTEMPT BY: 125.60.172.180
[16:25:26] BAD RCON ATTEMPT BY: 125.60.172.180
[16:25:25] BAD RCON ATTEMPT BY: 125.60.172.180
[16:25:25] BAD RCON ATTEMPT BY: 125.60.172.180
[16:25:25] BAD RCON ATTEMPT BY: 125.60.172.180
[16:25:24] BAD RCON ATTEMPT BY: 125.60.172.180
[16:25:24] BAD RCON ATTEMPT BY: 125.60.172.180
[16:25:23] BAD RCON ATTEMPT BY: 125.60.172.180
[16:25:23] BAD RCON ATTEMPT BY: 125.60.172.180
[16:25:23] BAD RCON ATTEMPT BY: 125.60.172.180
[16:25:22] BAD RCON ATTEMPT BY: 125.60.172.180
[16:25:22] BAD RCON ATTEMPT BY: 125.60.172.180
[16:25:21] BAD RCON ATTEMPT BY: 125.60.172.180
[16:25:21] BAD RCON ATTEMPT BY: 125.60.172.180
[16:25:21] BAD RCON ATTEMPT BY: 125.60.172.180
[16:25:20] BAD RCON ATTEMPT BY: 125.60.172.180
[16:25:20] BAD RCON ATTEMPT BY: 125.60.172.180
[16:25:20] BAD RCON ATTEMPT BY: 125.60.172.180
[16:25:19] BAD RCON ATTEMPT BY: 125.60.172.180
[16:25:19] BAD RCON ATTEMPT BY: 125.60.172.180
[16:25:18] BAD RCON ATTEMPT BY: 125.60.172.180
[16:25:18] BAD RCON ATTEMPT BY: 125.60.172.180
[16:25:18] BAD RCON ATTEMPT BY: 125.60.172.180
[16:25:17] BAD RCON ATTEMPT BY: 125.60.172.180
[16:25:17] BAD RCON ATTEMPT BY: 125.60.172.180
[16:25:17] BAD RCON ATTEMPT BY: 125.60.172.180
[16:25:16] BAD RCON ATTEMPT BY: 125.60.172.180
[16:25:16] BAD RCON ATTEMPT BY: 125.60.172.180
[16:25:16] BAD RCON ATTEMPT BY: 125.60.172.180
[16:25:15] BAD RCON ATTEMPT BY: 125.60.172.180
[16:25:15] BAD RCON ATTEMPT BY: 125.60.172.180
[16:25:15] BAD RCON ATTEMPT BY: 125.60.172.180
[16:25:14] BAD RCON ATTEMPT BY: 125.60.172.180
[16:25:14] BAD RCON ATTEMPT BY: 125.60.172.180
[16:25:14] BAD RCON ATTEMPT BY: 125.60.172.180
[16:25:13] BAD RCON ATTEMPT BY: 125.60.172.180
[16:25:13] BAD RCON ATTEMPT BY: 125.60.172.180
[16:25:12] BAD RCON ATTEMPT BY: 125.60.172.180
[16:25:12] BAD RCON ATTEMPT BY: 125.60.172.180
[16:25:11] BAD RCON ATTEMPT BY: 125.60.172.180
[16:25:11] BAD RCON ATTEMPT BY: 125.60.172.180
[16:25:10] BAD RCON ATTEMPT BY: 125.60.172.180
[16:25:10] BAD RCON ATTEMPT BY: 125.60.172.180
[16:25:10] BAD RCON ATTEMPT BY: 125.60.172.180
[16:25:09] BAD RCON ATTEMPT BY: 125.60.172.180
[16:25:09] BAD RCON ATTEMPT BY: 125.60.172.180
[16:25:09] BAD RCON ATTEMPT BY: 125.60.172.180
[16:25:08] BAD RCON ATTEMPT BY: 125.60.172.180
[16:25:08] BAD RCON ATTEMPT BY: 125.60.172.180
[16:25:07] BAD RCON ATTEMPT BY: 125.60.172.180
[16:25:07] BAD RCON ATTEMPT BY: 125.60.172.180
[16:25:07] BAD RCON ATTEMPT BY: 125.60.172.180
[16:25:06] BAD RCON ATTEMPT BY: 125.60.172.180
[16:25:06] BAD RCON ATTEMPT BY: 125.60.172.180
...

If you suggest turning RCON off so I just want to say that I need the RCON system due the native SendRconCommand().
Reply
#2

Theres no way to avoid this.
Reply
#3

Quote:
Originally Posted by C00K13M0N$73R
Посмотреть сообщение
Theres no way to avoid this.
There is!
pawn Код:
public OnRconLoginAttempt(ip[], password[], success)
{
    new playerid;
    if(!success) return Ban(playerid);
    return 1;
}
Reply
#4

Add rcon 0 in your server.cfg and restart.
Reply
#5

Quote:
Originally Posted by Xtreme_playa
Посмотреть сообщение
Add rcon 0 in your server.cfg and restart.
Are you blind?

Quote:

If you suggest turning RCON off so I just want to say that I need the RCON system due the native SendRconCommand().

Reply
#6

Quote:
Originally Posted by Riddy
Посмотреть сообщение
Are you blind?
No am not, that disables external rcon access, not native rcon commands. Get your facts straight.
Reply
#7

You should not normally have rcon enabled, there are much better ways to authentificate users. SendRconCommand still works, you are just disabling remote access.

rcon 0 stops players logging into rcon, and thats it.
Reply
#8

Quote:
Originally Posted by Xtreme_playa
Посмотреть сообщение
No am not, that disables external rcon access, not native rcon commands. Get your facts straight.
Hmm even this native seems to work if you do "rcon 0" at "server.cfg".
Reply
#9

rcon 0 only disables REMOTE access. You will then HAVE to use the function.
Reply
#10

rcon 0 is used to disable access through programs other than SA:MP itself.


Quote:
Originally Posted by newbienoob
Посмотреть сообщение
There is!
pawn Код:
public OnRconLoginAttempt(ip[], password[], success)
{
    new playerid;
    if(!success) return Ban(playerid);
    return 1;
}
You can't just create a variable called playerid and expect it to have the correct ID.



You should put rcon 0 in server.cfg and then put this in your script:

pawn Код:
new rconAttempts[MAX_PLAYERS];

public OnPlayerConnect(playerid)
{
    rconAttempts[playerid] = 0;
    return 1;
}

public OnRconLoginAttempt(ip[], password[], success)
{
    if(!success)
    {
        new playersIP[17], playerid;

        for(; playerid < MAX_PLAYERS; playerid++)
        {
            GetPlayerIp(playerid, playersIP, 17);
            if(!strcmp(ip, playersIP))
            {
                break;
            }
        }

        rconAttempts[playerid]++;

        if(rconAttempts[playerid] >= 3)
        {
            Ban(playerid);
        }
    }

    return 1;
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)