Help with bot attack
#1

I have an attack bot in my server, every bot have other Ip and other Nickname, the bot inside and exit without stoping and sending ip to crash my server, how can I block it?

here is the file samp.txt -

PHP код:
83.131.58.21 [13/04/12 21:02:09E8CA4e INGAME BAN
93.143.136.210 
[13/04/12 21:02:09B171BbD INGAME BAN
109.123.12.34 
[13/04/12 21:06:50E99EE9 BotSys
255.255.255.255 
[13/04/12 21:06:53eAA80e BotSys
84.229.167.245 
[13/04/12 21:06:55ceC8A BotSys
87.69.29.128 
[13/04/12 21:06:56EdA0 BotSys
79.177.196.93 
[13/04/12 21:06:562E86 BotSys
255.255.255.255 
[13/04/12 21:06:56CE26 BotSys
255.255.255.255 
[13/04/12 21:06:5622E6aC08 BotSys
83.131.59.250 
[13/04/12 21:06:56ebdf BotSys
94.190.193.153 
[13/04/12 21:06:57ce488c BotSys
85.202.37.241 
[13/04/12 21:06:57dDF3 BotSys
89.77.117.83 
[13/04/12 21:06:5755AAAA BotSys
255.255.255.255 
[13/04/12 21:06:574468ee BotSys
83.36.171.149 
[13/04/12 21:06:574A0Aee BotSys
255.255.255.255 
[13/04/12 21:06:572d2d222d BotSys
78.108.21.47 
[13/04/12 21:06:57684222 BotSys
255.255.255.255 
[13/04/12 21:06:579Bcb BotSys
80.131.166.60 
[13/04/12 21:06:57644CeA86 BotSys
89.172.13.107 
[13/04/12 21:06:57a04ccccc BotSys
213.118.201.78 
[13/04/12 21:06:57E5f075 BotSys
95.178.194.163 
[13/04/12 21:06:576BBB666 BotSys
71.228.55.121 
[13/04/12 21:06:57d2da75 BotSys
255.255.255.255 
[13/04/12 21:06:58dACE02 BotSys
92.102.8.13 
[13/04/12 21:06:58Cab2f68F BotSys
46.1.5.175 
[13/04/12 21:06:58ea0e BotSys
81.242.165.220 
[13/04/12 21:28:09a8ae6 Bot
78.2.20.244 
[13/04/12 21:28:115aeC048 Bot
46.176.61.203 
[13/04/12 21:28:110A1f Bot
71.239.50.222 
[13/04/12 21:28:11Cdb97531 Bot
83.131.77.178 
[13/04/12 21:28:16c8Aa Bot
255.255.255.255 
[13/04/12 21:28:1662EAEa Bot
78.183.63.247 
[13/04/12 21:28:16BcEaf5 Bot
255.255.255.255 
[13/04/12 21:28:170A4e2c0a Bot
255.255.255.255 
[13/04/12 21:28:174084 Bot
46.150.49.208 
[13/04/12 21:28:192c6eCE Bot
255.255.255.255 
[13/04/12 21:28:20cca4 Bot
178.216.136.126 
[13/04/12 21:28:20444444 Bot
255.255.255.255 
[13/04/12 21:28:23EEEEEE Bot
255.255.255.255 
[13/04/12 21:28:2493059e Bot
255.255.255.255 
[13/04/12 21:28:251427 Bot
255.255.255.255 
[13/04/12 21:28:2842Cf Bot
88.243.66.19 
[13/04/12 21:28:300caaee Bot
255.255.255.255 
[13/04/12 21:28:314EAE0E Bot
89.165.37.97 
[13/04/12 21:28:321fb7 Bot
188.129.63.186 
[13/04/12 21:28:334E4aA Bot
79.160.248.23 
[13/04/12 21:28:343D1fb3B Bot
82.81.206.116 
[13/04/12 21:28:36000b0b Bot
201.43.156.177 
[13/04/12 21:28:399EEEEEE Bot
87.97.13.178 
[13/04/12 21:28:41efEe82C Bot 
ServerLog:

PHP код:
[01:59:07Incoming connection82.141.178.106:4043
[01:59:07] [joinE840 has joined the server (8:82.141.178.106)
[
01:59:07] [partE840 has left the server (8:1)
[
01:59:11Incoming connection77.238.85.86:18938
[01:59:12] [join2B02BD has joined the server (8:255.255.255.255)
[
01:59:12] [part2B02BD has left the server (8:1)
[
01:59:18Incoming connection79.182.203.58:52682
[01:59:19] [join8C468c has joined the server (8:79.182.203.58)
[
01:59:19] [part8C468c has left the server (8:1)
[
01:59:22Incoming connection82.141.178.106:4047
[01:59:23] [joine4bC5cE has joined the server (8:82.141.178.106)
[
01:59:23] [parte4bC5cE has left the server (8:1)
[
01:59:27Incoming connection77.238.85.86:28709
[01:59:27Invalid client connecting from 77.238.85.86
[01:59:34Incoming connection79.182.203.58:61794
[01:59:35Invalid client connecting from 79.182.203.58
[01:59:38Incoming connection82.141.178.106:4048
[01:59:38] [join9ECF69AD has joined the server (8:82.141.178.106)
[
01:59:38] [part9ECF69AD has left the server (8:1)
[
01:59:42Incoming connection77.238.85.86:47407
[01:59:43Invalid client connecting from 77.238.85.86
[01:59:50Incoming connection79.182.203.58:61795
[01:59:51] [joinaaaaaaaa has joined the server (8:79.182.203.58)
[
01:59:51] [partaaaaaaaa has left the server (8:1)
[
01:59:53Incoming connection82.141.178.106:4052
[01:59:54] [join0A92B1 has joined the server (8:82.141.178.106)
[
01:59:54] [part0A92B1 has left the server (8:1)
[
02:00:00Incoming connection77.238.85.86:14970
[02:00:00] [chat] [[UsK]CoolNick[Op]]: @ קושקושוני בולבולוני לאב יו
[02:00:01] [joinC9efF06 has joined the server (8:77.238.85.86)
[
02:00:01] [partC9efF06 has left the server (8:1)
[
02:00:06Incoming connection79.182.203.58:59602
[02:00:06] [joinCA420E has joined the server (8:79.182.203.58
PLEASE I NEED IT SO MUCH !!!! just explain be good to !
Reply
#2

I got such a problem too and needs help, what about delete the bot?
Reply
#3

Is the 0.3dR2 ?
Reply
#4

Quote:
Originally Posted by Viniborn
Посмотреть сообщение
Is the 0.3dR2 ?
of course.
Reply
#5

I added server_log, help someone ?
Reply
#6

try using anti bot script
http://pastebin.com/UXznpXwx


or make below script if you don't have any npc's

pawn Код:
public OnPlayerConnect(playerid)
{
    if(IsPlayerNPC(playerid)) {
        new server_IP[16];
        format(server_IP, 16, "127.0.0.1");

        if(strcmp(ConnIP,server_IP,true) != 0) {
            Ban(playerid); // Ban is the safest thing here, as if you kick, they can still flood you with endless connections
            return 0;
        }
    }
    return 1;
}
Reply
#7

Try FilterScript :
pawn Код:
// maxips FS limits the number of players connecting from a
// single IP address.

#include <a_samp>

#define MAX_CONNECTIONS_FROM_IP     3

//---------------------------------------------

public OnFilterScriptInit()
{
    printf("\n*** Player IP limiting FS (maxips) Loaded. Max connections from 1 IP = %d\n",MAX_CONNECTIONS_FROM_IP);
}

//---------------------------------------------
// GetNumberOfPlayersOnThisIP
// Returns the number of players connecting from the
// provided IP address

stock GetNumberOfPlayersOnThisIP(test_ip[])
{
    new against_ip[32+1];
    new x = 0;
    new ip_count = 0;
    for(x=0; x<MAX_PLAYERS; x++) {
        if(IsPlayerConnected(x)) {
            GetPlayerIp(x,against_ip,32);
            if(!strcmp(against_ip,test_ip)) ip_count++;
        }
    }
    return ip_count;
}

//---------------------------------------------

public OnPlayerConnect(playerid)
{
    new connecting_ip[32+1];
    GetPlayerIp(playerid,connecting_ip,32);
    new num_players_on_ip = GetNumberOfPlayersOnThisIP(connecting_ip);
   
    if(num_players_on_ip > MAX_CONNECTIONS_FROM_IP) {
        printf("MAXIPs: Connecting player(%d) exceeded %d IP connections from %s.", playerid, MAX_CONNECTIONS_FROM_IP, connecting_ip);
        Kick(playerid);
        return 1;
    }

    return 0;
}
   
//---------------------------------------------
I use approved!
Maxips

In
PHP код:
#define MAX_CONNECTIONS_FROM_IP     3 
define how many connections you want!

Hope this helps!
Reply
#8

pawn Код:
#include <a_samp>

#define MAX_CONNECT_IN_ROW 3
#define MAX_REJOIN_TIME 4000
new ipCheck[25], IPfound, IPtime;

public OnPlayerConnect(playerid)
{
    new pIP[25];
    GetPlayerIp(playerid, pIP, 25);
    if(strcmp(ipCheck, pIP, false) == 0 && ( GetTickCount() - IPtime ) < MAX_REJOIN_TIME )
    {
        IPfound++;
        if(IPfound > MAX_CONNECT_IN_ROW)
        {
            new str[100];
            format(str, 100, "banip %s", pIP);
            SendRconCommand(str);
            Kick(playerid);
            IPfound=0;
        }
    }
    else
    {
        IPfound=0;
    }
    format(ipCheck, 25, "%s", pIP);
   
    IPtime=GetTickCount();
    return 1;
}
The code is not by me.
Reply
#9

All what you gave me here is when there is more than X connection in the same Ip, I made it alone in my server, my problam is every time they connect in other IP !! :O !!!!!! There is a solve for that ?!
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)