SA-MP Forums

Go Back   SA-MP Forums > SA-MP > General

Reply
 
Thread Tools Display Modes
Old 26/06/2012, 12:51 PM   #1
RyDeR`
High-roller
 
RyDeR`'s Avatar
 
Join Date: Feb 2009
Location: Belgium
Posts: 2,929
Reputation: 700
Default Constantly getting attacks

Is there any way to block lag creating bots? I mean this time it's not about tons of bots joining and leaving the server but just one bot that's controllable with some crappy software (with commands like lag, spam, kill and much more).

I'm really getting tired of these attacks, is there any way to block these? I'm not going to tell the name of the program, but I'm pretty sure everyone with a server, that has quite some players, knows what I'm talking about. I experimented a bit with the program to find exploits, but all I did found was their state don't change on spawn (I ban them of course). However, there's a mode, in the same software, where the bots don't spawn at all so they still succeed attacking the server.

Any valid solution please? It's quite urgent, we're loosing lots of players by the day.
__________________

Sup?
RyDeR` is offline   Reply With Quote
Old 26/06/2012, 01:51 PM   #2
RyDeR`
High-roller
 
RyDeR`'s Avatar
 
Join Date: Feb 2009
Location: Belgium
Posts: 2,929
Reputation: 700
Default Re: Re : Constantly getting attacks

Quote:
Originally Posted by JonnyDeadly View Post
Perhaps you should be more specific.
That's the problem, I'm not quite sure what the bot does to create the lag. As I said, there are a few commands like spam, lag and kill. I have the solution for kill and spam, the only thing left is lag. I'm not sure what happens, but this gets printed a lot in the console:
pawn Code:
Warning: PlayerDialogResponse PlayerId: 0 dialog ID doesn't match last sent dialog ID
Warning: PlayerDialogResponse PlayerId: 0 dialog ID doesn'
t match last sent dialog ID
Warning: PlayerDialogResponse PlayerId: 0 dialog ID doesn't match last sent dialog ID
...

Quote:
Originally Posted by Vukilore View Post
I know this software, but i don't know how it works, i just wanted to help you...
It's OK, I'm sorry if that came over a bit harsh.
__________________

Sup?
RyDeR` is offline   Reply With Quote
Old 26/06/2012, 06:09 PM   #3
niCe
Huge Clucker
 
niCe's Avatar
 
Join Date: Mar 2008
Location: CZ
Posts: 390
Reputation: 424
Default Re: Constantly getting attacks

Perhaps count the number of connections made by IP addresses and if any IP connects more than 5 times in a minute, ban it.
__________________
[ENG] s2.gta-multiplayer.cz:7777 WTLS 2 (Singleplayer Features)
[ENG] s3.gta-multiplayer.cz:7777 WTLS 3 (Singleplayer Features)

- Pool, basketball, golf, Poker Texas Holdem, races and other minigames
- Video game QUB3D
- Roulette, blackjack, slots, video poker and horse-betting
- Stock market BAWSAQ
- Organizations and offices
- Missions from Big Smoke, Sweet, Zero, Cesar or Woozie!
- Gang wars
- More than 30 jobs (police, paramedic, firefighter, burglar, pimp, valet, pizza-boy and more)
- Gyms, strip clubs, clothes shops, hidden packages, oysters, spray tags, horseshoes and more
Watch the TRAILER
Servers are hosted at Evolution Host
niCe is offline   Reply With Quote
Old 26/06/2012, 07:10 PM   #4
RyDeR`
High-roller
 
RyDeR`'s Avatar
 
Join Date: Feb 2009
Location: Belgium
Posts: 2,929
Reputation: 700
Default Re: Constantly getting attacks

Quote:
Originally Posted by niCe View Post
Perhaps count the number of connections made by IP addresses and if any IP connects more than 5 times in a minute, ban it.
Already using my FloodControl.inc. It works for flooding bots, but not for these as it's just one bot, just like a normal player, and lags and spams everything.
__________________

Sup?
RyDeR` is offline   Reply With Quote
Old 26/06/2012, 07:20 PM   #5
DiDok
Gangsta
 
DiDok's Avatar
 
Join Date: Mar 2009
Location: Poland
Posts: 846
Reputation: 79
Default Re: Constantly getting attacks

About that dialogID lag - block every other dialog than register and login (or any dialog necessary for non-spawned) when player is not spawned and kick if player tries something with other dialogs (but if SA:MP blocks the callback from getting called, you're screwed). Making it kick after 2-3 times can stop false positives.

Also rangebanning could work but I assume haxor uses VPN...
DiDok is offline   Reply With Quote
Old 26/06/2012, 07:49 PM   #6
RyDeR`
High-roller
 
RyDeR`'s Avatar
 
Join Date: Feb 2009
Location: Belgium
Posts: 2,929
Reputation: 700
Default Re: Constantly getting attacks

Quote:
Originally Posted by DiDok View Post
About that dialogID lag - block every other dialog than register and login (or any dialog necessary for non-spawned) when player is not spawned and kick if player tries something with other dialogs (but if SA:MP blocks the callback from getting called, you're screwed). Making it kick after 2-3 times can stop false positives.

Also rangebanning could work but I assume haxor uses VPN...
Mh, OnDialogResponse is not even being called.
__________________

Sup?
RyDeR` is offline   Reply With Quote
Old 26/06/2012, 08:37 PM   #7
kaisersouse
High-roller
 
kaisersouse's Avatar
 
Join Date: Jun 2006
Location: Subaru Forester
Posts: 2,799
Reputation: 1024
Default Re: Constantly getting attacks

Quote:
Originally Posted by DiDok View Post

Also rangebanning could work but I assume haxor uses VPN...
Those anonymous proxies are usually considered to have a GeoIP class of "A1". Getting a firewall that supports blacklisting by geoip and then blocking all A1 addresses will help with that.
__________________
Life is like a box of cheap-ass no cocoa garbage dollar-store chocolate.
kaisersouse is offline   Reply With Quote
Old 27/06/2012, 09:25 AM   #8
RyDeR`
High-roller
 
RyDeR`'s Avatar
 
Join Date: Feb 2009
Location: Belgium
Posts: 2,929
Reputation: 700
Default Re: Constantly getting attacks

Quote:
Originally Posted by kaisersouse View Post
Those anonymous proxies are usually considered to have a GeoIP class of "A1". Getting a firewall that supports blacklisting by geoip and then blocking all A1 addresses will help with that.
The banning part would be no problem, I first need to detect the bots in order to ban them.
__________________

Sup?
RyDeR` is offline   Reply With Quote
Old 27/06/2012, 09:54 AM   #9
KingHual
Banned
 
Join Date: Jun 2010
Location: Bulgaria
Posts: 2,290
Reputation: 1389
Default Re: Constantly getting attacks

So, do the bots even go "ingame"? I mean, do they receive a unique playerid, or they somehow avoid it?
KingHual is offline   Reply With Quote
Old 27/06/2012, 09:58 AM   #10
RyDeR`
High-roller
 
RyDeR`'s Avatar
 
Join Date: Feb 2009
Location: Belgium
Posts: 2,929
Reputation: 700
Default Re: Constantly getting attacks

Quote:
Originally Posted by king_hual View Post
So, do the bots even go "ingame"? I mean, do they receive a unique playerid, or they somehow avoid it?
Yes, they are just like normal players controlled without even being in the game. They can even follow a player or enter a car and of course lag and make the server crash when the load gets too high.
__________________

Sup?
RyDeR` is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Crash constantly with samp 0.3c win falcko Server Support 4 12/01/2011 01:20 PM
My server is constantly crashing Hijolion Help Archive 2 24/12/2010 06:58 PM
My server is now constantly sutting down OldDirtyBastard Server Support 4 10/12/2010 09:27 PM
Crashing Constantly Need Help Fixing it Stevenaramos Client Support 1 12/09/2010 07:42 PM


All times are GMT. The time now is 12:18 PM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.