Help Me please
#1

someone hacking my server i dont know how
they hacking my rcon i changed it alot time but they hacks it again
they saying Auto Rcon Login tool
pls help me i want that no one can hack my server pls
Reply
#2

the solution is disable rcon in server.cfg
Reply
#3

disabled but he hacking again an again
Reply
#4

There are some solutions...
Vince said that RCON is the worst administration system. So you can follow the answer from asri.
But another way would be this:
PHP код:
public OnRconLoginAttempt(ip[],password[],success)
{
    if(
strcmp(ip"_YOUR_IP_HERE"))
    {
         new 
send[26];
         
format(send,26,"banip %s",ip);
         
SendRconCommand(send);
         
//Optionally you can also do:
         
BlockIpAddress(ip,0);
    }

Reply
#5

Quote:
Originally Posted by 10MIN
Посмотреть сообщение
There are some solutions...
Vince said that RCON is the worst administration system. So you can follow the answer from asri.
But another way would be this:
PHP код:
public OnRconLoginAttempt(ip[],password[],success)
{
    if(
strcmp(ip"_YOUR_IP_HERE"))
    {
         new 
send[26];
         
format(send,26,"banip %s",ip);
         
SendRconCommand(send);
         
//Optionally you can also do:
         
BlockIpAddress(ip,0);
    }

thnx
but i got this
PHP код:
public OnRconLoginAttempt(ip[], password[], success)
{
    if(
success)
    {
        new 
IP[32];
        for(new 
p=0;p<MAX_PLAYERS;p++)
        {
            
GetPlayerIp(p,IP,32);
            if(!
strcmp(ip,IP,true))
            {
                new 
name[24];
                
GetPlayerName(p,name,24);
                if(
strcmp(name,"[pG]SilverScripter",false)) BanEx(p,"Kicked Wrong password!");
                }
        }
        return 
1;
    }
    return 
1;

Reply
#6

You make a system to make random rcon pass
Reply
#7

I don't recommand you to use names... Because this way they will know your password after some days because you banned them when it was correct and the name wasn't "___name___"...
Using directly an IP Check will ban their IP so they won't be able to retry.
Reply
#8

Simply disable rcon in server.cfg: open your server.cfg, find the line with "rcon" and put 0.
Kick players attempting to /rcon login. I do not know if with rcon disabled the /rcon login command will be read by the server, never tried it, anyways you can do:

Код:
#include a_samp 
#include foreach

main()
{
	printf("Hello Moon!");
}

new KickStr[64];
forward Kicked(playerid); // Callback To Kick A Player

public OnRconLoginAttempt(ip[], password[], success )
{
new PlayerIP[16];
foreach(Player, i)
        {
        GetPlayerIp(i, PlayerIP, sizeof PlayerIP);
        if( !strcmp(ip, PlayerIP, true) )
        { 
        format(KickStr,sizeof KickStr, "{ff0000}Do not try to login into RCON!");
        SendClientMessage(i, -1, KickStr);
        SetTimerEx("Kicked", 750, false, "i", i);
        }
}
return 1;
}

public Kicked(playerid)
{
Kick(playerid);
return 1;
}
And after disabling RCON system, create your own Administration system, which will have an enum for players, with a variable to save a player admin level. Create your admin levels, and allow high levels to send RCON commands via the SendRconCommand function.

Код:
CMD:mapname(playerid, params[])
{
if(PlayerVariable[playerid][AdminLevel] < 2) return SendClientMessage(playerid, -1, "{ff0000}Error: You need to be admin level 2.");
new string[64];
format(string, sizeof string, "mapname %s", params);
SendRconCommand(string);
return 1;
}
Usage of this command: /mapname [TEXT].
This will change the mapname visible on the SA-MP client, it is a RCON command and it has been sent without logging into RCON.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)