[Ajuda] Ajudar DDos !!
#1

Preciso desse anti ddos para meu server so que ele nгo carregar quando eu coloco esse filterscript

Gm da dten uso Dini

tem alguma coisa a ver


PHP код:
// Anti DDoS Ataque filterscript por Jankingston. Sinta-se livre para modificar;)
#include <a_samp>
#include <FileFunctions>
#define ATTACK_TYPE_PLAYERID 1
#define ATTACK_TYPE_IP 2
new File:ServerLogFile;
new 
addostimer;
main()
{
    print(
"|----------------------------------|");
    print(
"| Anti DDOS filterscript v0.1      |");
    print(
"|----------------------------------|");
}
public 
OnFilterScriptInit()
{
    
ServerLogFile fileOpen("server_log.txt"io_Read);
    
addostimer SetTimer("Anti-DDoS"100true);
    return 
1;
}
public 
OnFilterScriptExit()
{
    
KillTimer(addostimer);
    return 
1;
}
forward AntiDDoS();
public 
AntiDDoS()
{
    if(!
ServerLogFile)
    {
        print(
"Erro ao carregar server_log.txt!");
        
KillTimer(addostimer);
    }
    else
    {
        new 
string[128];
        new 
strarr[2][20];
        
fileSeek(ServerLogFile, -128seek_End);
        while(
fileRead(ServerLogFilestring)){}
        new 
pos strfind(string"Cliente invбlido conectando "true10);
        if(
pos == 11)
        {
            
OnDDosAttackAttempt(ATTACK_TYPE_IPINVALID_PLAYER_IDstring[pos+31]);
        }
        
pos strfind(string"Aviso: comando / rcon explorar a partir de: "true10);
        if(
pos == 11)
        {
            
split(string[pos+37], strarr':');
            
OnDDosAttackAttempt(ATTACK_TYPE_PLAYERIDstrval(strarr[0]), strarr[1]);
        }
        
pos strfind(string"Aviso: PlayerDialogResponse playerid: "true10);
        if(
pos == 11)
        {
            new 
idx 0;
            new 
plid strval(strtok(string[pos+39], idx));
            
SetPVarInt(plid"dialogDDosAtt"GetPVarInt(plid"dialogDDosAtt")+1);
            print(
"");
            if(
GetPVarInt(plid"dialogDDosAtt") > 2)OnDDosAttackAttempt(ATTACK_TYPE_PLAYERIDplid" ");
        }
        
pos strfind(string"Aviso: acidente PlayerDialogResponse explorar de playerid: "true10);
        if(
pos == 11)
        {
            new 
idx 0;
            
OnDDosAttackAttempt(ATTACK_TYPE_PLAYERIDstrval(strtok(string[pos+59], idx)), " ");
        }
        
pos strfind(string"Packet foi modificado, enviado por ID: "true10);
        if(
pos == 11)
        {
            
split(string[pos+33], strarr',');
            
OnDDosAttackAttempt(ATTACK_TYPE_PLAYERIDstrval(strarr[0]), " ");
        }
        
pos strfind(string"Porta remota Refused para o jogador: "true10);
        if(
pos == 11)
        {
            new 
idx 0;
            
OnDDosAttackAttempt(ATTACK_TYPE_PLAYERIDstrval(strtok(string[pos+32], idx)), " ");
        }
        if(
strfind(string" devido a um 'servidor completo 'ataque") != -1)
        {
            
pos strfind(string"Blocking "true10);
            if(
pos == 12)
            {
                new 
idx 0;
                
OnDDosAttackAttempt(ATTACK_TYPE_IPINVALID_PLAYER_IDstrtok(string[pos+9], idx));
            }
        }
    }
}
forward OnDDosAttackAttempt(typeplayeridip[]);
public 
OnDDosAttackAttempt(typeplayeridip[])
{
    new 
string[128];
    if(
type == ATTACK_TYPE_PLAYERID)
    {
        
// bloquear um playerid
        
BanEx(playerid"DDOS protect");
        
printf("Blocked attack from playerid %d"playerid);
    }
    else if(
type == ATTACK_TYPE_IP)
    {
        
//bloquear um endereзo IP
        
format(stringsizeof(string), "banip %s"ip);
        
SendRconCommand(string);
        
printf("Blocked attack from ip: %s"ip);
    }
}
stock strtok(const string[], &index)
{
    new 
length strlen(string);
    while ((
index length) && (string[index] <= ' '))
    {
        
index++;
    }
    new 
offset index;
    new 
result[20];
    while ((
index length) && (string[index] > ' ') && ((index offset) < (sizeof(result) - 1)))
    {
        
result[index offset] = string[index];
        
index++;
    }
    
result[index offset] = EOS;
    return 
result;
}
stock split(const strsrc[], strdest[][], delimiter)
{
    new 
ili;
    new 
aNum;
    new 
len;
    while(
<= strlen(strsrc))
    {
        if(
strsrc[i]==delimiter || i==strlen(strsrc))
        {
            
len strmid(strdest[aNum], strsrclii128);
            
strdest[aNum][len] = 0;
            
li i+1;
            
aNum++;
        }
        
i++;
    }
    return 
1;

poste original https://sampforum.blast.hk/showthread.php?tid=468613
Reply
#2

nгo adianta usar. nenhum FilterScript vai te proteger de DDoS. DDoS й um ataque direto б mбquina.
Reply
#3

pawn Код:
new pos = strfind(string, "Cliente invбlido conectando ", true, 10);
Claro q nao vai funcionar, voce (ou alguem) traduziu as linhas necessarias para o FS funcionar (elas deveriam estб em ingles)

PS: na MINHA OPNIГO, esse FS so piora as coisas .-.
Reply
#4

O que devo fazer entгo precisor de uma soluзгo !
Reply
#5

Compre anti DDoS.
Reply
#6

quem vende isto ou alguem fais ??
Reply
#7

Basta comprar uma hospedagem decente que ofereзa Anti DDoS, a CarbonHost tem uma proteзгo boa contra isso.
Reply
#8

e ainda vai ter que desembolsar uns 100 conto amais.
Reply
#9

Use um dos host na nossa empresa, RiverHosting fornecemos uma proteзгo уtima aos nossos clientes e hoje temos mais de 150 clientes satisfeito.

www.riverhosting.com.br
Reply
#10

e se eu quizer so comprar so o anti ddos alguem me vender

e tem que mostra que realmente funcionar
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)