[ajuda] attacks
#1

Olб a tdos venho me informar se existe algum filterscript contra boots meu servidor estб sendo attackado constantemente com esses boots obrigado a todos que ajudarem. entram cerca de 50 boots de uma vez..
Reply
#2

https://sampforum.blast.hk/showthread.php?tid=312503&langid=4
Reply
#3

Quote:
Originally Posted by PlayeR_TheReturN
Посмотреть сообщение
Код:
|_MeGaTroN_|, you do not have permission to access this page. This could be due to one of several reasons:

Your user account may not have sufficient privileges to access this page. Are you trying to edit someone else's post, access administrative features or some other privileged system?
If you are trying to post, the administrator may have disabled your account, or it may be awaiting activation.
Reply
#4

PHP код:
// 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 
0;
    new 
ip_count 0;
    for(
x=0x<MAX_PLAYERSx++) {
        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."playeridMAX_CONNECTIONS_FROM_IPconnecting_ip);
        
Kick(playerid);
        return 
1;
    }

    return 
0;

Reply
#5

Essa funciona:
o topico esta off , mas ve se isso da
pawn Код:
//-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=//
    /* ANTI-RECONNECT - © iPLEOMAX 2011 */
    /* Do not remove the credits!       */
    //-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=//
    /*
     
         Include feito por: iPLEOMAX
         Linguagem (include): BR/PT
         Editado por: Skoolz.mk
         Obrigado por baixar!        */

     
    #if !defined _samp_included
       #tryinclude <a_samp>
       #if !defined _samp_included
           #error a_samp.inc must be included before using this.
       #endif
    #endif
     
    /*
    native ARKick(playerid);
    native ARConnect(playerid);
    native ARDisconnect(playerid);
    native ARIgnore(playerid);
    */

     
    #define ARConnect(%0) AR_OnPlayerConnect(%0)
    #define ARDisconnect(%0) AR_OnPlayerDisconnect(%0)
    #define ARIgnore(%0) IPDATA[%0][Ignore] = true
     
    #define MAX_R_ATTEMPTS 3
    #define STATUS_SECONDS 20
    #define RESET_CHECK 10
     
    #define PUB:%1(%2) forward %1(%2); public %1(%2)
     
    enum IP_DATA
    {
        IP_ADDRESS[16],
        bool:Crashing,
        bool:Ignore
    };
     
    new
        IPDATA[MAX_PLAYERS][IP_DATA],
        Text:CrashTD,
        JoinAttempts,
        JoinIP[16]
    ;
     
    PUB:AR_OnPlayerConnect(playerid)
    {
        new CurIP[16]; GetPlayerIp(playerid, CurIP, sizeof CurIP);
        for(new i=0; i<MAX_PLAYERS; i++)
        {
            if(strlen(IPDATA[i][IP_ADDRESS]) > 2 && !strcmp(CurIP,IPDATA[i][IP_ADDRESS],false))
             {
                  printf("ID: %i Pode estar estar tentando fazer uma reconnect!",playerid);
                CrashPlayer(playerid, CurIP);
                break;
            }
        }
        if (!strcmp(CurIP, JoinIP, false))
        {
            JoinAttempts++;
            if (JoinAttempts >= MAX_R_ATTEMPTS)
            {
                CrashPlayer(playerid, CurIP);
            }
        } else JoinAttempts = 0;
        GetPlayerIp(playerid, JoinIP, sizeof(JoinIP));
        return true;
    }
     
    PUB:AR_OnPlayerDisconnect(playerid)
    {
        TextDrawHideForPlayer(playerid, CrashTD);
        IPDATA[playerid][Crashing] = false;
        IPDATA[playerid][Ignore] = false;
        return true;
    }
     
    PUB:CrashPlayer(playerid, playerIP[])
    {
        new pName[MAX_PLAYER_NAME], string[566];
        GetPlayerName(playerid, pName, sizeof(pName));
        if(IPDATA[playerid][Crashing]) return true;
        IPDATA[playerid][Crashing] = true;
        printf("Houve uma RECONNECT no servidor %s(ID: %i)  IP: %s ",pName, playerid,playerIP);
        GameTextForPlayer(playerid, "~RECONNECT# NEVER~!~*%~",1000,3);
        GameTextForPlayer(playerid, "~MORRE*** ~HAHA",1000,3);
        GameTextForPlayer(playerid, "OTARIO ~xD",1000,3);
        TextDrawDestroy(CrashTD);
        CrashTD = TextDrawCreate(320,240,"~WTF");
        TextDrawShowForPlayer(playerid, CrashTD);
        format(string, sizeof(string), "%s(%i) Foi automaticamente banido й crashado! MOTIVO: Reconnect de BOTS", pName, playerid);
        SendClientMessageToAll(-1, string);
        Ban(playerid);
       
        SetTimerEx("CrashStatus",STATUS_SECONDS*1000,false,"ds",playerid,playerIP);
        return true;
    }
     
    PUB:CrashStatus(playerid, playerIP[])
    {
        new CurIP[16]; GetPlayerIp(playerid, CurIP, sizeof CurIP);
        if(IsPlayerConnected(playerid) && !strcmp(CurIP,playerIP,false))
        { printf("Nгo foi crashado o player: ID %i. [ERRO]",playerid); }
        else
        {
        printf("(ID: %i) - (IP: %s) Foi CRASHADO com sucesso!",playerid,playerIP);
        }
        return true;
    }
     
    PUB:ARKick(playerid)
    {
        if(!IPDATA[playerid][Ignore])
        {
            GetPlayerIp(playerid, IPDATA[playerid][IP_ADDRESS], 16);
            new rchck = RESET_CHECK;
            if(rchck != 0) SetTimerEx("ResetIPSlot", RESET_CHECK*1000, false, "d", playerid);
        }
        printf("[AR-iPLEOMAX]: ARKick Foi usado no (ID: %i)",playerid);
        Kick(playerid);
        return true;
    }
     
    PUB:ResetIPSlot(ipslotid)
    {
        printf("[info] Resetted saved IP Slot %i [%s]",ipslotid, IPDATA[ipslotid][IP_ADDRESS]);
        format(IPDATA[ipslotid][IP_ADDRESS],16,"_");
        return true;
    }
     
    /*
     
         Include feito por: iPLEOMAX
         Linguagem (include): BR/PT
         Editado por: Skoolz.mk
         Obrigado por baixar!        */
Reply
#6

eu usava isso ai /\ ele realmente funciona só até um certo periodo, depois começa a kickar todo mundo que entra
Reply
#7

Quote:
Originally Posted by delete
Посмотреть сообщение
PHP код:
// 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 
0;
    new 
ip_count 0;
    for(
x=0x<MAX_PLAYERSx++) {
        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."playeridMAX_CONNECTIONS_FROM_IPconnecting_ip);
        
Kick(playerid);
        return 
1;
    }
    return 
0;

OBSERVAÇÃO :
" printf("\n*** Player IP limiting FS (maxips) Loaded. Max connections from 1 IP "
Isso dizendo que o maximo de conexões por ip é 1 , ai vc olha pra cima :
" #define MAX_CONNECTIONS_FROM_IP 3 "

kkk

xD
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)