Bot Attack.
#1

Look:

Код:
[17:14:29] [join] FujFujFuj_eIC5 has joined the server (15:83.9.187.241)
[17:14:29] [join] FujFujFuj_HHvX has joined the server (15:83.9.187.241)
[17:14:29] [join] FujFujFuj_A6YJ has joined the server (15:83.9.187.241)
[17:14:29] [join] FujFujFuj_w15h has joined the server (15:83.9.187.241)
[17:14:30] [join] FujFujFuj_7UaC has joined the server (15:83.9.187.241)
[17:14:30] [join] FujFujFuj_V7Cl has joined the server (15:83.9.187.241)
[17:14:30] [join] FujFujFuj_FsXt has joined the server (15:83.9.187.241)
[17:14:30] [join] FujFujFuj_UZ9M has joined the server (15:83.9.187.241)
[17:14:30] [join] FujFujFuj_M5jI has joined the server (15:83.9.187.241)
[17:14:30] [join] FujFujFuj_U1Ib has joined the server (15:83.9.187.241)
[17:14:30] [join] FujFujFuj_wTLy has joined the server (15:83.9.187.241)
[17:14:30] [join] FujFujFuj_tTjT has joined the server (15:83.9.187.241)
[17:14:30] [join] FujFujFuj_nJaF has joined the server (15:83.9.187.241)
[17:14:30] [join] FujFujFuj_2qcm has joined the server (15:83.9.187.241)
[17:14:30] [join] FujFujFuj_VR6H has joined the server (15:83.9.187.241)
[17:14:30] [join] FujFujFuj_9JWf has joined the server (15:83.9.187.241)
[17:14:30] [join] FujFujFuj_TyOn has joined the server (15:83.9.187.241)
[17:14:30] [join] FujFujFuj_Y6Qk has joined the server (15:83.9.187.241)
[17:14:30] [join] FujFujFuj_5Ogm has joined the server (15:83.9.187.241)
[17:14:30] Invalid client connecting from 83.9.187.241
[17:14:30] Invalid client connecting from 83.9.187.241
[17:14:30] Invalid client connecting from 83.9.187.241
[17:14:30] Invalid client connecting from 83.9.187.241
[17:14:30] Invalid client connecting from 83.9.187.241
[17:14:30] Invalid client connecting from 83.9.187.241
[17:14:30] Invalid client connecting from 83.9.187.241
[17:14:30] Invalid client connecting from 83.9.187.241
[17:14:30] Invalid client connecting from 83.9.187.241
[17:14:30] Invalid client connecting from 83.9.187.241
[17:14:30] Invalid client connecting from 83.9.187.241
[17:14:30] Invalid client connecting from 83.9.187.241
[17:14:30] Invalid client connecting from 83.9.187.241
[17:14:30] Invalid client connecting from 83.9.187.241
[17:14:30] Invalid client connecting from 83.9.187.241
[17:14:30] Invalid client connecting from 83.9.187.241
[17:14:30] Invalid client connecting from 83.9.187.241
[17:14:30] Invalid client connecting from 83.9.187.241
[17:14:30] Invalid client connecting from 83.9.187.241
[17:14:30] Invalid client connecting from 83.9.187.241
[17:14:30] Invalid client connecting from 83.9.187.241
[17:14:30] Invalid client connecting from 83.9.187.241
[17:14:30] Invalid client connecting from 83.9.187.241
[17:14:30] Invalid client connecting from 83.9.187.241
[17:14:30] Invalid client connecting from 83.9.187.241
[17:14:30] Invalid client connecting from 83.9.187.241
The same IP, the same ID, mass connections (over 6000, 10 sec)
After a few seconds, the server gets the Crash
Server Version: 0.3d R2

Logs: http://gpp-serv.eu/inne/server_log.rar

Can somehow fix this?
Reply
#2

Ban / rangeban the IP address.
Reply
#3

I wrote like this code work?

http://pastebin.com/60knZ27B

Ideally, in future versions it was itself protected.

#Edit. Don't work.
Reply
#4

Make it so more than 3 (or 5 or 10) people with the same IP on server = ipban, don't look at connection times
Reply
#5

Detail is that the player is probably connected because the players have already reached a record 4000, and the server has only 300 slots from 150+ players. SAMP limit is 800.

New code:

Код:
public OnPlayerConnect(playerid)
{
    if(CountIP(PlayerIP(playerid)) >= 5)
  	{
   		BanEx(playerid, "Bot");
   		
   		format(str, sizeof str, "banip %s", PlayerIP(playerid));
   		SendRconCommand(str);
  	}
	return 1;
}
Reply
#6

A bot will still be able to join and quit many times. (so there will always be only one player of that same IP connected at the same time.
You'll also need to check if an ip has already joined the server in less than 5 seconds ago.
Because normal players can't reconnect in faster than 5 seconds.

Also think about the fact that if brothers go play on the same server, they might connect at the same, so you'll have to limit the ip ban for +2 connections. (or more)
Reply
#7

Don't work, next:

http://gpp-serv.eu/inne/server_log2.rar

Код:
[12:14:39] Incoming connection: 91.218.208.69:1690
[12:14:39] Incoming connection: 178.55.140.238:56785
[12:14:39] Incoming connection: 89.229.248.96:2510
[12:14:39] Incoming connection: 178.37.158.9:62525
[12:14:39] Incoming connection: 178.72.99.122:60911
[12:14:39] Incoming connection: 77.252.186.141:2783
[12:14:39] Incoming connection: 159.205.141.249:16668
[12:14:39] Incoming connection: 194.106.104.38:57005
[12:14:39] Incoming connection: 178.204.108.91:2331
[12:14:39] Incoming connection: 62.141.205.57:4053
[12:14:39] Incoming connection: 81.219.216.36:58618
[12:14:39] Incoming connection: 31.147.84.178:1518
[12:14:39] Incoming connection: 94.231.55.120:58132
[12:14:39] Incoming connection: 78.131.142.226:2657
[12:14:39] Incoming connection: 83.22.4.101:61976
[12:14:39] Incoming connection: 188.47.234.96:10455
[12:14:39] Incoming connection: 87.205.201.150:2974
[12:14:39] Incoming connection: 83.8.66.17:56974
[12:14:39] Incoming connection: 83.10.204.83:4778
[12:14:39] Incoming connection: 93.194.93.176:64266
[12:14:39] Incoming connection: 84.38.80.43:2508
[12:14:39] Incoming connection: 83.21.105.237:1277
[12:14:39] Incoming connection: 213.80.208.87:55277
[12:14:39] Incoming connection: 91.233.197.172:56495
[12:14:39] Incoming connection: 87.205.94.170:51484
[12:14:39] Incoming connection: 193.107.251.132:57219
[12:14:39] Incoming connection: 79.163.62.212:1177
[12:14:39] Incoming connection: 41.35.149.226:61722
[12:14:39] [chat] [[EPS]SzpajdeR]: ! z kim?
[12:14:39] Incoming connection: 89.69.219.49:56733
[12:14:39] Incoming connection: 83.19.176.10:64110
[12:14:39] Incoming connection: 85.221.221.13:64053
[12:14:39] Incoming connection: 85.221.220.75:1387
[12:14:39] Incoming connection: 92.83.227.116:1243
[12:14:39] Incoming connection: 81.210.117.138:63743
[12:14:39] Incoming connection: 82.160.125.27:62705
[12:14:39] Incoming connection: 83.9.83.201:2211
[12:14:39] Incoming connection: 77.255.128.252:12904
[12:14:39] Incoming connection: 178.159.167.6:1193
[12:14:39] Incoming connection: 83.24.247.30:61156
[12:14:39] Incoming connection: 83.27.8.233:1119
[12:14:39] Incoming connection: 79.135.169.191:11261
[12:14:39] Incoming connection: 83.21.147.242:12857
[12:14:39] Incoming connection: 46.171.24.90:65531
[12:14:39] Incoming connection: 109.110.199.202:59735
[12:14:39] Incoming connection: 89.75.53.37:61871
[12:14:39] Incoming connection: 178.37.37.220:55185
[12:14:39] Incoming connection: 79.186.185.15:2617
[12:14:39] Incoming connection: 77.254.112.204:55676
[12:14:39] Incoming connection: 79.185.149.83:1342
[12:14:39] Incoming connection: 83.20.239.39:4321
[12:14:39] Incoming connection: 83.24.249.171:15732
[12:14:39] Incoming connection: 88.199.126.186:3105
[12:14:39] Incoming connection: 196.206.12.45:10261
[12:14:39] Incoming connection: 83.26.205.73:3156
[12:14:39] Incoming connection: 95.178.90.49:4196
[12:14:39] Incoming connection: 217.11.163.246:50134
[12:14:39] Incoming connection: 83.11.65.237:4901
[12:14:39] Incoming connection: 188.47.93.145:1352
[12:14:39] Incoming connection: 95.42.253.105:1091
[12:14:39] Incoming connection: 89.231.244.185:3631
[12:14:39] Incoming connection: 194.117.241.147:2416
[12:14:39] Incoming connection: 77.77.52.191:1409
[12:14:39] Incoming connection: 176.97.53.162:49702
[12:14:39] Incoming connection: 78.88.168.111:1181
[12:14:39] Incoming connection: 79.185.239.63:3648
Код:
[12:14:44] Packet was modified, sent by id: 0, ip: 178.123.230.118:1669
[12:14:44] Packet was modified, sent by id: 109, ip: 213.5.139.134:64710
[12:14:44] Packet was modified, sent by id: 38, ip: 95.51.0.170:1553
[12:14:44] Packet was modified, sent by id: 69, ip: 79.184.11.1:2049
[12:14:44] Packet was modified, sent by id: 69, ip: 79.184.11.1:2049
[12:14:44] Packet was modified, sent by id: 69, ip: 79.184.11.1:2049
[12:14:44] Packet was modified, sent by id: 146, ip: 83.6.104.205:34733
[12:14:44] Packet was modified, sent by id: 69, ip: 79.184.11.1:2049
[12:14:44] Packet was modified, sent by id: 146, ip: 83.6.104.205:34733
[12:14:44] Packet was modified, sent by id: 69, ip: 79.184.11.1:2049
[12:14:44] Packet was modified, sent by id: 3, ip: 188.47.13.205:1616
[12:14:44] Packet was modified, sent by id: 69, ip: 79.184.11.1:2049
[12:14:44] Packet was modified, sent by id: 19, ip: 62.133.151.132:50769
[12:14:44] Packet was modified, sent by id: 69, ip: 79.184.11.1:2049
[12:14:44] Packet was modified, sent by id: 0, ip: 178.123.230.118:1669
[12:14:44] Packet was modified, sent by id: 127, ip: 178.36.156.125:2474
[12:14:44] Packet was modified, sent by id: 69, ip: 79.184.11.1:2049
[12:14:44] Packet was modified, sent by id: 38, ip: 95.51.0.170:1553
[12:14:44] Packet was modified, sent by id: 146, ip: 83.6.104.205:34733
[12:14:44] Incoming connection: 83.6.104.205:34747
[12:14:45] Packet was modified, sent by id: 69, ip: 79.184.11.1:2049
[12:14:45] Packet was modified, sent by id: 80, ip: 83.9.27.224:27593
[12:14:45] Packet was modified, sent by id: 3, ip: 188.47.13.205:1616
[12:14:45] Packet was modified, sent by id: 28, ip: 89.75.52.75:4966
[12:14:45] Packet was modified, sent by id: 109, ip: 213.5.139.134:64710
[12:14:45] Packet was modified, sent by id: 19, ip: 62.133.151.132:50769
[12:14:45] Packet was modified, sent by id: 69, ip: 79.184.11.1:2049
[12:14:45] Incoming connection: 188.147.104.238:4842
[12:14:45] [join] alex_panfilov has joined the server (102:217.66.146.193)
[12:14:45] Packet was modified, sent by id: 0, ip: 178.123.230.118:1669
[12:14:45] Packet was modified, sent by id: 146, ip: 83.6.104.205:34733
[12:14:45] Packet was modified, sent by id: 69, ip: 79.184.11.1:2049
[12:14:45] Packet was modified, sent by id: 69, ip: 79.184.11.1:2049
[12:14:45] Packet was modified, sent by id: 69, ip: 79.184.11.1:2049
[12:14:45] Packet was modified, sent by id: 69, ip: 79.184.11.1:2049
[12:14:45] Packet was modified, sent by id: 69, ip: 79.184.11.1:2049
[12:14:45] Packet was modified, sent by id: 38, ip: 95.51.0.170:1553
[12:14:45] [join] Vricoo has joined the server (213:83.26.205.73)
[12:14:45] Packet was modified, sent by id: 69, ip: 79.184.11.1:2049
[12:14:45] Packet was modified, sent by id: 3, ip: 188.47.13.205:1616
[12:14:45] Packet was modified, sent by id: 80, ip: 83.9.27.224:27593
[12:14:45] Packet was modified, sent by id: 19, ip: 62.133.151.132:50769
[12:14:45] Packet was modified, sent by id: 69, ip: 79.184.11.1:2049
[12:14:45] Packet was modified, sent by id: 127, ip: 178.36.156.125:2474
[12:14:45] Packet was modified, sent by id: 69, ip: 79.184.11.1:2049
[12:14:45] Packet was modified, sent by id: 0, ip: 178.123.230.118:1669
[12:14:45] Packet was modified, sent by id: 146, ip: 83.6.104.205:34733
[12:14:45] [join] Bandzior1 has joined the server (204:89.75.53.37)
[12:14:45] Packet was modified, sent by id: 38, ip: 95.51.0.170:1553
[12:14:45] Packet was modified, sent by id: 28, ip: 89.75.52.75:4966
And server get crash.

Scroll to down in server_log.txt.
Reply
#8

Код:
[12:46:42] Incoming connection: 91.210.243.54:4078
[12:46:48] Incoming connection: 91.210.243.54:4079
[12:46:49] Incoming connection: 82.160.171.128:49263
[12:46:50] Incoming connection: 178.183.250.97:62790
[12:46:56] Incoming connection: 213.25.140.179:4630
[12:47:15] Incoming connection: 89.171.164.77:3076
[12:47:17] Incoming connection: 178.183.250.97:65176
[12:47:18] Incoming connection: 95.49.189.67:12334
[12:47:18] Incoming connection: 79.191.201.82:2774
[12:47:19] Incoming connection: 80.136.31.127:62881
[12:47:20] Incoming connection: 89.22.37.177:2747
[12:47:22] Incoming connection: 83.9.187.23:58566
[12:47:28] Incoming connection: 83.9.187.23:58567
[12:47:28] Incoming connection: 81.219.216.36:58900
[12:47:30] Incoming connection: 91.210.243.54:4082
[12:47:33] Incoming connection: 83.131.76.123:49440
[12:47:36] Incoming connection: 188.47.58.215:1273
[12:47:40] Incoming connection: 31.63.138.42:17307
[12:47:41] Incoming connection: 83.31.18.52:61864
[12:47:43] Incoming connection: 83.5.49.100:61152
[12:47:43] Incoming connection: 83.6.182.32:2580
[12:47:43] Incoming connection: 83.31.18.52:1217
[12:47:44] Incoming connection: 87.204.163.61:1734
[12:47:44] Incoming connection: 83.21.243.92:64319
[12:47:45] Incoming connection: 82.160.171.128:50780
[12:47:51] Incoming connection: 79.110.206.148:61289
[12:47:53] Incoming connection: 83.9.187.23:57754
[12:47:53] Incoming connection: 31.42.20.2:1914
[12:47:56] Incoming connection: 95.49.189.67:12354
[12:47:56] Incoming connection: 83.27.193.89:4017
[12:47:57] Incoming connection: 31.42.29.30:1413
[12:47:58] Incoming connection: 83.7.66.8:2585
[12:47:59] Incoming connection: 79.135.175.210:2774
[12:48:04] Incoming connection: 85.221.172.190:1264
[12:48:05] Incoming connection: 93.154.135.45:1694
[12:48:06] Incoming connection: 78.54.53.33:50536
[12:48:09] Incoming connection: 83.238.142.242:64365
[12:48:11] Incoming connection: 83.10.204.83:4966
[12:48:11] Incoming connection: 83.26.168.164:3272
[12:48:11] Incoming connection: 31.128.25.12:1047
[12:48:12] Incoming connection: 83.10.52.155:1110
[12:48:12] Incoming connection: 178.183.250.97:65177
[12:48:13] Incoming connection: 83.27.8.233:1482
[12:48:14] Incoming connection: 164.127.227.232:63911
[12:48:14] Incoming connection: 83.26.132.94:3854
[12:48:15] Incoming connection: 95.49.109.59:2242
[12:48:17] Incoming connection: 89.171.164.77:3094
[12:48:17] Incoming connection: 31.63.138.42:17317
[12:48:20] Incoming connection: 79.110.206.148:61290
[12:48:20] Incoming connection: 91.150.178.154:27304
[12:48:24] Incoming connection: 46.171.24.90:56154
[12:48:25] Incoming connection: 87.207.241.20:63228
[12:48:25] Incoming connection: 83.31.18.52:61865
[12:48:26] Incoming connection: 83.31.18.52:1218
[12:48:27] Incoming connection: 95.49.189.67:12399
[12:48:28] Incoming connection: 79.185.156.178:10254
[12:48:30] Incoming connection: 77.254.29.204:1597
[12:48:31] Incoming connection: 46.63.32.214:1176
[12:48:32] Incoming connection: 77.254.231.101:1971
[12:48:33] Incoming connection: 178.37.158.9:64182
[12:48:38] Incoming connection: 46.63.32.214:1030
[12:48:39] Incoming connection: 89.228.172.65:3227
[12:48:39] Incoming connection: 83.5.49.100:61372
[12:48:43] Incoming connection: 31.63.184.48:49908
[12:48:45] Incoming connection: 188.47.234.96:11064
[12:48:45] Incoming connection: 78.8.19.61:60431
[12:48:46] Incoming connection: 83.11.65.237:1035
[12:48:46] Incoming connection: 83.4.139.57:10704
[12:48:46] Incoming connection: 79.135.175.210:2776
[12:48:47] Incoming connection: 83.21.243.92:64320
[12:48:47] Incoming connection: 77.254.112.204:52384
[12:48:49] Incoming connection: 87.205.94.74:64996
[12:48:49] Incoming connection: 46.63.32.214:1170
[12:48:51] Incoming connection: 83.27.8.233:1484
[12:48:52] Incoming connection: 83.238.142.242:57475
[12:48:55] Incoming connection: 95.49.189.67:12446
[12:48:55] Incoming connection: 83.26.168.164:3274
[12:48:56] Incoming connection: 83.31.18.52:61866
[12:48:56] Incoming connection: 178.183.250.97:57587
[12:48:56] Incoming connection: 79.191.117.104:1395
[12:48:57] Incoming connection: 46.63.32.214:1152
[12:48:58] Incoming connection: 83.6.182.32:2691
[12:48:59] Incoming connection: 79.163.26.244:65045
[12:49:00] Incoming connection: 85.237.185.119:14881
[12:49:00] Incoming connection: 93.154.139.114:1727
[12:49:00] Incoming connection: 83.10.52.155:1111
[12:49:01] Incoming connection: 83.9.187.23:57755
[12:49:02] Incoming connection: 84.38.96.62:61691
[12:49:04] Incoming connection: 31.131.76.171:23235
[12:49:04] Incoming connection: 83.24.237.88:50331
[12:49:04] Incoming connection: 79.184.11.1:2097
[12:49:07] Incoming connection: 77.254.231.101:1972
[12:49:07] Incoming connection: 83.9.187.23:55432
[12:49:08] Incoming connection: 164.127.92.202:54713
[12:49:08] Incoming connection: 87.207.241.20:63246
[12:49:09] Incoming connection: 78.62.208.32:62965
[12:49:10] Incoming connection: 89.22.37.177:3090
[12:49:11] Incoming connection: 79.185.199.120:53880
[12:49:11] Incoming connection: 31.42.20.2:1937
[12:49:11] Incoming connection: 83.25.161.97:1071
[12:49:12] Incoming connection: 89.73.126.8:7256
[12:49:14] Incoming connection: 83.19.176.10:65299
[12:49:19] Incoming connection: 83.11.65.237:1037
[12:49:21] Incoming connection: 87.207.245.254:1222
[12:49:22] Incoming connection: 178.122.250.23:13887
[12:49:24] Incoming connection: 79.175.211.57:55708
[12:49:24] Incoming connection: 77.254.29.204:1598
[12:49:25] Incoming connection: 83.10.210.12:4856
[12:49:26] Incoming connection: 37.8.197.138:62497
[12:49:26] Incoming connection: 82.160.171.128:50781
[12:49:29] Incoming connection: 188.47.21.31:2550
[12:49:30] Incoming connection: 91.150.178.154:27329
[12:49:31] Incoming connection: 31.42.29.30:1434
[12:49:31] Incoming connection: 79.163.26.244:65046
[12:49:31] Incoming connection: 83.4.139.57:10709
[12:49:31] Incoming connection: 87.205.94.74:50141
[12:49:32] Incoming connection: 176.97.53.162:51453
[12:49:33] Incoming connection: 79.185.10.198:1236
[12:49:38] Incoming connection: 85.167.204.196:22535
[12:49:41] Incoming connection: 83.6.182.32:2713
[12:49:43] Incoming connection: 62.141.205.57:4737
[12:49:44] Incoming connection: 84.38.80.43:2788
[12:49:44] Incoming connection: 85.221.250.157:18000
[12:49:46] Incoming connection: 89.73.126.8:7257
Lag and crash.

Kalcor, can you do something?
Reply
#9

Ok, right there you have a big problem mate
My server also gets attacked every day now with te same sort of bots.
Since OnPlayerConnect is never called, you can't detect if someone is attacking your server in pawn code.

I've also been searching for a fix for a while but no luck :/

Banning them also won't work because (in your last post) the connecting IP constantly changes.
If you find a solution for this, please also tell me!
Reply
#10

Quote:
Originally Posted by ғαιιοцт
Посмотреть сообщение
Ok, right there you have a big problem mate
My server also gets attacked every day now with te same sort of bots.
Since OnPlayerConnect is never called, you can't detect if someone is attacking your server in pawn code.

I've also been searching for a fix for a while but no luck :/

Banning them also won't work because (in your last post) the connecting IP constantly changes.
If you find a solution for this, please also tell me!
Your not the only one experiencing the problem of OnPlayerConnect not being called.
I tried making a custom script for my SAN-RP and I have to put the script on hold because of OnPlayerConnect not calling.

Please Kalcor fix this problem.
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)