Server Attacked by Hacker
#1

Hello,
Yesterday a Guy is trying to troll all players.
He copy my name, now everyone thinks that i'm the fake one.
Phew i ban it.

Before he left he say something

"I will hack your server"

and Today a guy name Shit_Server access my rcon pass.
Making himself Level 5 Clan Owner

Guys how can i disable the OnRconLoginAttempt to non-owners?
Reply
#2

pawn Код:
public OnRconLoginAttempt(ip[], password[], success)
{
    new PlayerNome[MAX_PLAYER_NAME], PlayerIP[16];
    if(success)
    {
        for(new i; i < MAX_PLAYERS; i++)
        {
            GetPlayerIp(i, PlayerIP ,16);
            if(strcmp(PlayerIP, ip))
            continue;

            GetPlayerName(i, PlayerNome, sizeof(PlayerNome));
            if(!strcmp(PlayerNome, "Nickname", true) || !strcmp(PlayerNome, "Nickname2", true)) // Change the nickname's to your nickname.
            {
                SendClientMessage(i, 0xFF0000FF, "[RCON Warn]: Login Success");
            }
            else
            {
                SendClientMessage(i, 0xFF0000FF, "[RCON Warn]: Rcon Login Failed , you not owner.");
                Kick(i);
            }
            break;
        }
    }
    return 1;
}
Try, change the nickname's to your and you friend nickname's.
Reply
#3

nvm miss read ~ Delete
Reply
#4

pawn Код:
public OnRconLoginAttempt(ip[], password[], success)
{
    new string[256];
    for(new i = 0; i < MAX_PLAYERS; i++)
    {
        if(success)
        {
            if(PlayerAdminLevel[i] < 3)
            {
                Kick(i);
            }
        }
    }
    return 1;
}
Replace the following line with your script's admin level variable identifier:
pawn Код:
if(PlayerAdminLevel[i] < 3)
Reply
#5

Quote:
Originally Posted by Skavanovski
Посмотреть сообщение
pawn Код:
public OnRconLoginAttempt(ip[], password[], success)
{
    new string[256];
    for(new i = 0; i < MAX_PLAYERS; i++)
    {
        if(success)
        {
            if(PlayerAdminLevel[i] < 3)
            {
                Kick(i);
            }
        }
    }
    return 1;
}
Replace the following line with your script's admin level variable identifier:
pawn Код:
if(PlayerAdminLevel[i] < 3)
From my understanding, it will kick everyone in the server who is not an admin. Also, why did you create a string?
Reply
#6

I will try Funeral code.

I will edit this post when the code work.
Reply
#7

Funeral.
Didn't work

pawn Код:
public OnRconLoginAttempt(ip[], password[], success)
{
    new str[128];
    if(success)
    {
        foreach(Player, i)
        {
            if(strcmp(IP, ip))
            continue;

            if(strcmp(GetpName(i), "[iP]Justine", true) == 0
            || strfind(GetpName(i), "Avi", false) != 1
            || strfind(GetpName(i), "Anonymous", false) != 1)
            {
                SendClientMessage(i, COLOR_GREEN, "*** You are the owner, You are now login as RCON Admin ***");
            }
            else
            {
                format(str, sizeof(str), "%s(%d) has been kicked by Anticheat for Rcon Accessing (Not Owner)", GetpName(i), i);
                SendClientMessageToAll(COLOR_RED, str);
                SendClientMessage(i, COLOR_RED, "*** You are not the owner, You are kick from the server ***");
                Kick(i);
            }
            break;
        }
    }
    return 1;
}
Reply
#8

https://sampforum.blast.hk/showthread.php?tid=332797
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)