Help with bot attack -
tal_peretz - 13.04.2012
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:09] E8CA4e - INGAME BAN
93.143.136.210 [13/04/12 | 21:02:09] B171BbD - INGAME BAN
109.123.12.34 [13/04/12 | 21:06:50] E99EE9 - BotSys
255.255.255.255 [13/04/12 | 21:06:53] eAA80e - BotSys
84.229.167.245 [13/04/12 | 21:06:55] ceC8A - BotSys
87.69.29.128 [13/04/12 | 21:06:56] EdA0 - BotSys
79.177.196.93 [13/04/12 | 21:06:56] 2E86 - BotSys
255.255.255.255 [13/04/12 | 21:06:56] CE26 - BotSys
255.255.255.255 [13/04/12 | 21:06:56] 22E6aC08 - BotSys
83.131.59.250 [13/04/12 | 21:06:56] ebdf - BotSys
94.190.193.153 [13/04/12 | 21:06:57] ce488c - BotSys
85.202.37.241 [13/04/12 | 21:06:57] dDF3 - BotSys
89.77.117.83 [13/04/12 | 21:06:57] 55AAAA - BotSys
255.255.255.255 [13/04/12 | 21:06:57] 4468ee - BotSys
83.36.171.149 [13/04/12 | 21:06:57] 4A0Aee - BotSys
255.255.255.255 [13/04/12 | 21:06:57] 2d2d222d - BotSys
78.108.21.47 [13/04/12 | 21:06:57] 684222 - BotSys
255.255.255.255 [13/04/12 | 21:06:57] 9Bcb - BotSys
80.131.166.60 [13/04/12 | 21:06:57] 644CeA86 - BotSys
89.172.13.107 [13/04/12 | 21:06:57] a04ccccc - BotSys
213.118.201.78 [13/04/12 | 21:06:57] E5f075 - BotSys
95.178.194.163 [13/04/12 | 21:06:57] 6BBB666 - BotSys
71.228.55.121 [13/04/12 | 21:06:57] d2da75 - BotSys
255.255.255.255 [13/04/12 | 21:06:58] dACE02 - BotSys
92.102.8.13 [13/04/12 | 21:06:58] Cab2f68F - BotSys
46.1.5.175 [13/04/12 | 21:06:58] ea0e - BotSys
81.242.165.220 [13/04/12 | 21:28:09] a8ae6 - Bot
78.2.20.244 [13/04/12 | 21:28:11] 5aeC048 - Bot
46.176.61.203 [13/04/12 | 21:28:11] 0A1f - Bot
71.239.50.222 [13/04/12 | 21:28:11] Cdb97531 - Bot
83.131.77.178 [13/04/12 | 21:28:16] c8Aa - Bot
255.255.255.255 [13/04/12 | 21:28:16] 62EAEa - Bot
78.183.63.247 [13/04/12 | 21:28:16] BcEaf5 - Bot
255.255.255.255 [13/04/12 | 21:28:17] 0A4e2c0a - Bot
255.255.255.255 [13/04/12 | 21:28:17] 4084 - Bot
46.150.49.208 [13/04/12 | 21:28:19] 2c6eCE - Bot
255.255.255.255 [13/04/12 | 21:28:20] cca4 - Bot
178.216.136.126 [13/04/12 | 21:28:20] 444444 - Bot
255.255.255.255 [13/04/12 | 21:28:23] EEEEEE - Bot
255.255.255.255 [13/04/12 | 21:28:24] 93059e - Bot
255.255.255.255 [13/04/12 | 21:28:25] 1427 - Bot
255.255.255.255 [13/04/12 | 21:28:28] 42Cf - Bot
88.243.66.19 [13/04/12 | 21:28:30] 0caaee - Bot
255.255.255.255 [13/04/12 | 21:28:31] 4EAE0E - Bot
89.165.37.97 [13/04/12 | 21:28:32] 1fb7 - Bot
188.129.63.186 [13/04/12 | 21:28:33] 4E4aA - Bot
79.160.248.23 [13/04/12 | 21:28:34] 3D1fb3B - Bot
82.81.206.116 [13/04/12 | 21:28:36] 000b0b - Bot
201.43.156.177 [13/04/12 | 21:28:39] 9EEEEEE - Bot
87.97.13.178 [13/04/12 | 21:28:41] efEe82C - Bot
ServerLog:
PHP код:
[01:59:07] Incoming connection: 82.141.178.106:4043
[01:59:07] [join] E840 has joined the server (8:82.141.178.106)
[01:59:07] [part] E840 has left the server (8:1)
[01:59:11] Incoming connection: 77.238.85.86:18938
[01:59:12] [join] 2B02BD has joined the server (8:255.255.255.255)
[01:59:12] [part] 2B02BD has left the server (8:1)
[01:59:18] Incoming connection: 79.182.203.58:52682
[01:59:19] [join] 8C468c has joined the server (8:79.182.203.58)
[01:59:19] [part] 8C468c has left the server (8:1)
[01:59:22] Incoming connection: 82.141.178.106:4047
[01:59:23] [join] e4bC5cE has joined the server (8:82.141.178.106)
[01:59:23] [part] e4bC5cE has left the server (8:1)
[01:59:27] Incoming connection: 77.238.85.86:28709
[01:59:27] Invalid client connecting from 77.238.85.86
[01:59:34] Incoming connection: 79.182.203.58:61794
[01:59:35] Invalid client connecting from 79.182.203.58
[01:59:38] Incoming connection: 82.141.178.106:4048
[01:59:38] [join] 9ECF69AD has joined the server (8:82.141.178.106)
[01:59:38] [part] 9ECF69AD has left the server (8:1)
[01:59:42] Incoming connection: 77.238.85.86:47407
[01:59:43] Invalid client connecting from 77.238.85.86
[01:59:50] Incoming connection: 79.182.203.58:61795
[01:59:51] [join] aaaaaaaa has joined the server (8:79.182.203.58)
[01:59:51] [part] aaaaaaaa has left the server (8:1)
[01:59:53] Incoming connection: 82.141.178.106:4052
[01:59:54] [join] 0A92B1 has joined the server (8:82.141.178.106)
[01:59:54] [part] 0A92B1 has left the server (8:1)
[02:00:00] Incoming connection: 77.238.85.86:14970
[02:00:00] [chat] [[UsK]CoolNick[Op]]: @ קושקושוני בולבולוני לאב יו
[02:00:01] [join] C9efF06 has joined the server (8:77.238.85.86)
[02:00:01] [part] C9efF06 has left the server (8:1)
[02:00:06] Incoming connection: 79.182.203.58:59602
[02:00:06] [join] CA420E has joined the server (8:79.182.203.58)
PLEASE I NEED IT SO MUCH !!!! just explain be good to !
Re: Help with bot attack -
CrazyChoco - 13.04.2012
I got such a problem too and needs help, what about delete the bot?
Re: Help with bot attack -
ViniBorn - 13.04.2012
Is the 0.3dR2 ?
Re: Help with bot attack -
tal_peretz - 13.04.2012
Quote:
Originally Posted by Viniborn
Is the 0.3dR2 ?
|
of course.
Re: Help with bot attack -
tal_peretz - 13.04.2012
I added server_log, help someone ?
Re: Help with bot attack -
Neo Karls - 14.04.2012
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;
}
Re: Help with bot attack -
@Riichard - 14.04.2012
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!
Re: Help with bot attack -
Kitten - 14.04.2012
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.
Re: Help with bot attack -
tal_peretz - 14.04.2012
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 ?!