PDA

View Full Version : Make Anti-DDoS


NeroX98
20/10/2013, 08:51 PM
Hi guys...

My server is easy target for hackers... They use Fake-Kills to restart my server.
[22:30:25] [kill] X killed Jack_Mixed UZI
[22:30:25] [kill] x killed Jack_Mixed MP5
[22:30:25] [kill] x killed Jack_Mixed AK47
[22:30:25] [kill] x killed Jack_Mixed M4
[22:30:25] [kill] x killed Jack_Mixed Heat Seaker
[22:30:25] [kill] x killed Jack_Mixed Flamethrower
[22:30:25] [kill] x killed Jack_Mixed Minigun
[22:30:25] [kill] x killed Jack_Mixed Bomb
[22:30:25] [kill] x killed Jack_Mixed Spray Can
[22:30:25] [kill] x killed Jack_Mixed
[22:30:25] [kill] x killed Jack_Mixed Brass Knuckles
[22:30:25] [kill] x killed Jack_Mixed Golf Club
[22:30:25] [kill] x killed Jack_Mixed Nite Stick
[22:30:25] [kill] x killed Jack_Mixed Knife
[22:30:25] [kill] x killed Jack_Mixed Baseball Bat
[22:30:25] [kill] x killed Jack_Mixed Shovel
[22:30:25] [kill] x killed Jack_Mixed Pool Cue
[22:30:25] [kill] x killed Jack_Mixed Katana
[22:30:25] [kill] x killed Jack_Mixed Chainsaw
[22:30:25] [kill] x killed Jack_Mixed Dildo
[22:30:25] [kill] x killed Jack_Mixed Dildo
[22:30:25] [kill] x killed Jack_Mixed Vibrator
[22:30:25] [kill] x killed Jack_Mixed Vibrator
[22:30:25] [kill] x killed Jack_Mixed Flowers
[22:30:25] [kill] x killed Jack_Mixed Cane
[22:30:25] [kill] x killed Jack_Mixed Grenade
[22:30:25] [kill] x killed Jack_Mixed Teargas

That x is names of the player, and Jack_Mixed is hacker.
Any idea how to stop this except adding his ip to banlist... Something like if someone got killed too much times to kick him or can someone give me example code ?

ReV.
20/10/2013, 09:03 PM
This isn't a DDoS, its called 'fake-kill', it can be easily patched within the script. You can easily find the snippet using the search feature.

NeroX98
20/10/2013, 09:09 PM
so what should i search... this is from my gamemode ????

I know that, that player hacked/crashed my server...

martin3644
20/10/2013, 10:40 PM
"Anti-Fake Kill"

http://forum.sa-mp.com/showthread.php?t=444603

daniscape
21/10/2013, 08:03 AM
You should buy a ddos protection, but that can easily be expensive so i recomend you to rent a host or something. Its cheaper and the big companies has ddos protection.

iZN
21/10/2013, 08:21 AM
You should buy a ddos protection, but that can easily be expensive so i recomend you to rent a host or something. Its cheaper and the big companies has ddos protection.

What the fuck are you talking about? It is FAKE-KILL through cheat tools. This is not called DDoS.

BigETI
21/10/2013, 08:25 AM
This is not "Denial of Service" (DoS), neither "Distributed Denial of Service" (DDoS).

NeroX98
21/10/2013, 09:07 AM
So guys is this Anti Fake-Kill system good ?
new antifakekill[MAX_PLAYERS];
public OnPlayerDeath(playerid, killerid, reason)
{
antifakekill[playerid] ++;
SetTimerEx("antifakekill2", 1000,false,"i",playerid);
return 1;
}
forward antifakekill2(playerid);
public antifakekill2(playerid)
{
antifakekill[playerid] --;
if(antifakekill[playerid] > 3)
{
new string[64], pName[MAX_PLAYER_NAME];
GetPlayerName(playerid,pName,MAX_PLAYER_NAME);
format(string,sizeof string,"* %s was banned reason (Fake kill)",pName);
SendClientMessageToAll(0xFF0000FF,string);
BanEx(playerid, "Fake kill");
}
return 1;
}
Credits: AldoT

Will it work because my server is mysql based and if im putting this i must directly put it and if its buggy maybe it will ban all players... so is this system good ?

Astralis
21/10/2013, 09:26 AM
So guys is this Anti Fake-Kill system good ?
new antifakekill[MAX_PLAYERS];
public OnPlayerDeath(playerid, killerid, reason)
{
antifakekill[playerid] ++;
SetTimerEx("antifakekill2", 1000,false,"i",playerid);
return 1;
}
forward antifakekill2(playerid);
public antifakekill2(playerid)
{
antifakekill[playerid] --;
if(antifakekill[playerid] > 3)
{
new string[64], pName[MAX_PLAYER_NAME];
GetPlayerName(playerid,pName,MAX_PLAYER_NAME);
format(string,sizeof string,"* %s was banned reason (Fake kill)",pName);
SendClientMessageToAll(0xFF0000FF,string);
BanEx(playerid, "Fake kill");
}
return 1;
}
Credits: AldoT

Will it work because my server is mysql based and if im putting this i must directly put it and if its buggy maybe it will ban all players... so is this system good ?
then add it and test with someone.

NeroX98
21/10/2013, 09:34 AM
How to test when i dont have the Fake-Kill things... Where can i download them (send link in PM please)

REP +1 all