cerere plugin antiflood

Categoria cu cereri de pluginuri si nu numai.

Moderators: Moderatori ajutatori, Moderatori, Echipa eXtreamCS.com

Forum rules
Accesează link-ul pentru a putea vedea regulile forumului

Daca doriti sa vi se modifice un plugin, va rugam postati aici .
Post Reply
_.m!NNimaL.[;x]
Membru, skill +1
Membru, skill +1
Posts: 212
Joined: 28 Jun 2012, 13:40
Detinator Steam: Nu
CS Status: Citesc forumul eXtreamCS.com...!
Has thanked: 13 times
Been thanked: 4 times
Contact:

01 Mar 2013, 18:02

Salut, am un server de dr si de cateva zile intra un copil care n-are viitor si imi flodeaza serveru ce plugin ar trebui sa bag sa numai pice ?
Image
RoyalServer 2
Spank
Membru, skill +2
Membru, skill +2
Posts: 656
Joined: 14 Apr 2010, 14:30
Detinator Steam: Da
Detinator server CS: Clasic.Promns.Ro
SteamID: Danyel11
Location: Sibiu
Has thanked: 62 times
Been thanked: 4 times

01 Mar 2013, 18:15

User avatar
Fantasy1
Utilizator neserios (tepar)
Utilizator neserios (tepar)
Posts: 4836
Joined: 05 Jul 2012, 01:26
Detinator Steam: Da
Reputatie: Membru Club eXtreamCS (1 Mar)
Utilizator neserios (TEPAR!)
Has thanked: 278 times
Been thanked: 217 times
Contact:

01 Mar 2013, 18:28

Vai de capu vostru , toti copii folositi llg-function , foloseste bug fixu de la tni.
CLICK AICI pentru FORUM
- Un Forum Care Nu Poate Fi Spart -
- Un Forum Care Nu Modifica Topicurile Cu Tepari -
- Vrei Indexare In Google? Posteaza Tzeparii La Noi -

- Daca ai nevoie sa te ajut cu un addons/plugin etc se plateste, nu ajut cu nimic pe GRATIS -
_.m!NNimaL.[;x]
Membru, skill +1
Membru, skill +1
Posts: 212
Joined: 28 Jun 2012, 13:40
Detinator Steam: Nu
CS Status: Citesc forumul eXtreamCS.com...!
Has thanked: 13 times
Been thanked: 4 times
Contact:

01 Mar 2013, 18:29

nu merge ...
Image
User avatar
S3ekEr^
Utilizator neserios (tepar)
Utilizator neserios (tepar)
Posts: 3475
Joined: 06 Dec 2009, 12:47
Detinator Steam: Nu
Reputatie: Nume anterior: The Seeker , Reptyle
Fost Scripter
Fost super moderator
Utilizator neserios ( tepar )
Has thanked: 117 times
Been thanked: 329 times

01 Mar 2013, 20:52

Am un antiflood care-l foloseste o firma de hosting,dar nu free :)
santuzzu
Membru, skill 0
Membru, skill 0
Posts: 50
Joined: 03 Nov 2012, 18:04
Detinator Steam: Da
CS Status: za fak iz dat
Has thanked: 1 time
Been thanked: 6 times
Contact:

01 Mar 2013, 21:51

_.m!NNimaL.[;x] ar fi mai usor sa explice si ce/cum se maifesta "floodu" asta:

pentru orice eventualitate pune astea 3:

1)
| Afiseaza codul
#include <amxmodx>

#define PLUGIN_NAME		"Fix AutoBuy Exploit"
#define PLUGIN_VERSION	"1.0"
#define PLUGIN_AUTHOR	"Owyn"

public plugin_init( )
{
	register_plugin( PLUGIN_NAME, PLUGIN_VERSION, PLUGIN_AUTHOR );
	register_clcmd( "cl_setautobuy", "cmd_check" );
	register_clcmd( "cl_setrebuy", "cmd_check" );
}

#define MAX_LEN 30

public cmd_check( id )
{
	static arg[512];
	read_args(arg, sizeof(arg)-1);
	remove_quotes(arg);
	
	// CHECK start
	static len, i, last, bool:bad;
	len = strlen(arg);
	bad = false;
	last = 0;
	i = 0;
	while(i < len)
	{
		if(arg == ' ') // space symbol
		{
			if(i-last > MAX_LEN)
			{
				bad = true;
				break;
			}
			last = i+1;
		}
		i++;
	}
	if(i-last > MAX_LEN)
	{
		bad = true;
	}
	// CHECK end

	if(!bad)
	{
		//log_to_file("autobuy.log", "%d: %s", id, arg) // log all autobuys
		return PLUGIN_CONTINUE;
	}
	// else
	new name[32]; 
	get_user_name( id, name, charsmax( name ) ) ;
	log_to_file("autobuy_crash.log", "%s: arg at %d of %s", name, i ,arg);
	client_print(id,print_chat,"Bad autobuy you piece of shEEt !!!   ntzntzntz    !      Goooooo fuuuuuuck yourSELF!!!!!")
	return PLUGIN_HANDLED;
}


2)
| Afiseaza codul
/* Plugin generated by AMXX-Studio */

#include <amxmodx>
#include <amxmisc>

#define PLUGIN "Anti Fullupdate Spam"
#define VERSION "1.1"
#define AUTHOR "Pike"

new Float:g_Checking[33] = {0.0, ...}
new g_Check[33] = {0, ...}
new Flag = 0

new amx_check_time;

public plugin_init() {
   register_plugin(PLUGIN, VERSION, AUTHOR)
   register_clcmd("fullupdate","Fullupdate")
   
   amx_check_time=register_cvar("amx_check_time", "1.0")
}

public Fullupdate(id)
{
      new Float:maxCheck = get_pcvar_float(amx_check_time)
   
           if (maxCheck)
   {
      new Float:nexTime = get_gametime()
     
      if (g_Checking[id] > nexTime)
      {
         if (g_Check[id] >= 5)
         {
           
   new name[32], ip[32], authid[32]
   get_user_name(id, name, 31)
   get_user_ip(id, ip, 31, 1)
   get_user_authid(id, authid, 31)
   
   g_Checking[id] = nexTime + maxCheck + 3.0

   //+Argus
   if(Flag == 0)
   {
     Flag = 1

     server_cmd("kick #%d ^"Using fullupdate spam command^"", get_user_userid(id))
     log_amx("^"%s^"<%s> %s Using fullupdate spam command", name, authid, ip)
   }
   //-Argus

   return PLUGIN_HANDLED

         }
         g_Check[id]++
      }
      else if (g_Check[id])
      {
         g_Check[id]--
      }
     
      g_Checking[id] = nexTime + maxCheck
      }

      Flag = 0 //Argus

      return PLUGIN_CONTINUE
}


3)
| Afiseaza codul
#include <amxmodx>
#include <orpheu>
#define PLUGIN "Anti flood"
#define VERSION "1.1"
#define AUTHOR "kanagava"
//native halflife_time ( )
// small adjustments to the plugin
new MAX_WARN=2 //Number of warnings after which the IP should be banned [1-2]
new CONN_TIME=2 //The minimum time between connections to the server to enable prtection state
// (If fewer connections between CONN_TIME seconds the test) is recommended [1-3]
new CONN_TIME_IP=3 //The minimum time between connections from one IP to issue warnings recommended [1-5]
new RST_WARN_TIME_IP=7 //The maximum time between connections from one IP to reset warnings
// NEED [RST_WARN_TIME_IP>CONN_TIME_IP] 

new Msg[256]
new OrpheuHook:handlePrintf
new ip_list[5][16]
new time_list[5]
new warn_list[5]
new old_time
new registered
public plugin_init()
{
    register_plugin(PLUGIN, VERSION, AUTHOR)
    set_task(5.0, "regfunctions")  
    register_srvcmd("floodlist","floodlist")  
} 

public regfunctions()
{
    //log_amx("try to reg_func")
    OrpheuRegisterHook(OrpheuGetFunction("SV_ConnectClient"),"OnSV_ConnectClientPre", OrpheuHookPre)
    OrpheuRegisterHook(OrpheuGetFunction("SV_ConnectClient"),"OnSV_ConnectClientPost", OrpheuHookPost)
    server_cmd("mp_logecho 1")
    server_cmd("log on")
}

public OrpheuHookReturn:OnSV_ConnectClientPre()
{
    registered=0
    if(get_systime()-old_time <= CONN_TIME)
    {
        //log_amx("Reg %d %d ",halflife_time ( ), get_systime())
        handlePrintf = OrpheuRegisterHook( OrpheuGetFunction( "Con_Printf" ), "Con_Printf" , OrpheuHookPre);
        registered=1
        //log_amx("Reg %d %d ",halflife_time ( ), get_systime())
    }
    old_time=get_systime()
    return OrpheuIgnored;
}


public OrpheuHookReturn:OnSV_ConnectClientPost()
{
    if(registered)
    {
        OrpheuUnregisterHook(handlePrintf)
        //log_amx("Unreg %d %d ",halflife_time ( ), get_systime())
    }
    return OrpheuIgnored;
}

public OrpheuHookReturn:Con_Printf(const a[], const message[] )
{
    registered=1
    if (containi(message,"^" connected, address ^"")!=-1)
    {
        new msg[256]
        copy(msg,255,message)
        checkip(msg)
    }
    return OrpheuIgnored;
} 

public floodlist()
{
    new h_time[32]
    console_print(0,"Floodding IP list by Dan'ka :D")
    for (new i=0;i<5;i++)
        {    if(time_list!=0)
    {
        format_time ( h_time,31, "%d.%m %H:%M:%S",time_list) 
        console_print(0,"[%d] [IP %s] [TIME %s]   [WARN's %d]",i,ip_list,h_time,warn_list)
    }
}
}

public checkip(message[])
{
    new len=255
    new temp_right[256],temp_left[256],conn_ip[256]
    formatex( Msg,charsmax( Msg ),"%s", message );
    split(Msg, temp_left, len, temp_right, len, "^" connected, address ^"")
    strtok(temp_right, conn_ip, len, temp_right, len, ':')
    new mintime
    new replace_index
    mintime=get_systime()
    for (new i=0;i<5;i++)
    {
        if (time_list<mintime )
        {
            mintime=time_list
            replace_index=i
        }
        
    }
    new ipwarn
    ipwarn=false
    for (new i=0;i<5;i++)
    {    
        if (equal(conn_ip,ip_list) && !equal(conn_ip,""))
        {
            if ((get_systime()-time_list)<CONN_TIME_IP)
            {
                warn_list=warn_list[i]+1
                if(warn_list[i]>MAX_WARN)
                {
                    //log_amx("Ban %d %d ",halflife_time ( ), get_systime())
                    log_amx("[NOFLOOD] Connection flood detected from ip %s",conn_ip)
                    server_cmd("addip 30.0 %s",conn_ip)
                }
            }
            else
            {
                if ((get_systime()-time_list[i])>RST_WARN_TIME_IP) 
                    warn_list[i]=0
            }
                
            time_list[i]=get_systime()
            ipwarn=true
            break
        }
    }
        
    if (!ipwarn)
    {
        warn_list[replace_index]=0
        time_list[replace_index]=get_systime()
        copy(ip_list[replace_index],15,conn_ip)
    }
}


PS : reptyle ti-am dat eu multumesc,esti de foarte mare ajutor

PS2: minimal ,pentru pluginul 3 ai nevoie de modulul orpheu.Il iei de pe
http://forums.alliedmods.net/showthread.php?t=116393
+ ca trebuie compilat local,in pc tau
User avatar
ExoTiQ
Membru, skill +1
Membru, skill +1
Posts: 180
Joined: 21 Aug 2012, 21:44
Detinator Steam: Da
CS Status: Funny
Detinator server CS: Da
SteamID: Privat
Has thanked: 4 times
Been thanked: 52 times
Contact:

01 Mar 2013, 22:09

_.m!NNimaL.[;x] wrote:Salut, am un server de dr si de cateva zile intra un copil care n-are viitor si imi flodeaza serveru ce plugin ar trebui sa bag sa numai pice ?
Incearca sa explici ce fel de flood foloseste omul.
Drop / Fake players/ exploit / fake ping etc ?

Momentan,activitate mai slaba.
.


*[Anti Auto-Connect] [Config exec Connect IP Checker] [60%] [Public]
*[SISA Zombie + CSO Shop] [79%] [Contracost]

*[Plugin Snow] [100%] [La cerere - Privat]

* Screen#1 / Screen#2 / Screen#3
Acest plugin este facut la cerere si nu o sa fie public !
O sa fie public doar daca il face public Askhanar.



_.m!NNimaL.[;x]
Membru, skill +1
Membru, skill +1
Posts: 212
Joined: 28 Jun 2012, 13:40
Detinator Steam: Nu
CS Status: Citesc forumul eXtreamCS.com...!
Has thanked: 13 times
Been thanked: 4 times
Contact:

02 Mar 2013, 10:44

pai nu stiu exact cand intra pe server incepe sa se faca lag si dupa catvea minute pica el e tot pe server cand pica
Image
User avatar
ExoTiQ
Membru, skill +1
Membru, skill +1
Posts: 180
Joined: 21 Aug 2012, 21:44
Detinator Steam: Da
CS Status: Funny
Detinator server CS: Da
SteamID: Privat
Has thanked: 4 times
Been thanked: 52 times
Contact:

02 Mar 2013, 11:07

_.m!NNimaL.[;x] wrote:pai nu stiu exact cand intra pe server incepe sa se faca lag si dupa catvea minute pica el e tot pe server cand pica
santuzzu a postat antiflood , foloseste toti 3.

Momentan,activitate mai slaba.
.


*[Anti Auto-Connect] [Config exec Connect IP Checker] [60%] [Public]
*[SISA Zombie + CSO Shop] [79%] [Contracost]

*[Plugin Snow] [100%] [La cerere - Privat]

* Screen#1 / Screen#2 / Screen#3
Acest plugin este facut la cerere si nu o sa fie public !
O sa fie public doar daca il face public Askhanar.



User avatar
S3ekEr^
Utilizator neserios (tepar)
Utilizator neserios (tepar)
Posts: 3475
Joined: 06 Dec 2009, 12:47
Detinator Steam: Nu
Reputatie: Nume anterior: The Seeker , Reptyle
Fost Scripter
Fost super moderator
Utilizator neserios ( tepar )
Has thanked: 117 times
Been thanked: 329 times

02 Mar 2013, 11:33

ExoTiQ wrote:
_.m!NNimaL.[;x] wrote:pai nu stiu exact cand intra pe server incepe sa se faca lag si dupa catvea minute pica el e tot pe server cand pica
santuzzu a postat antiflood , foloseste toti 3.
Inseamna ca da cu fullupdate
User avatar
ExoTiQ
Membru, skill +1
Membru, skill +1
Posts: 180
Joined: 21 Aug 2012, 21:44
Detinator Steam: Da
CS Status: Funny
Detinator server CS: Da
SteamID: Privat
Has thanked: 4 times
Been thanked: 52 times
Contact:

02 Mar 2013, 13:38

Reptyle wrote:
ExoTiQ wrote:
_.m!NNimaL.[;x] wrote:pai nu stiu exact cand intra pe server incepe sa se faca lag si dupa catvea minute pica el e tot pe server cand pica
santuzzu a postat antiflood , foloseste toti 3.
Inseamna ca da cu fullupdate
Da e fullupdate , dar oricum trebuie sa fii protejat total. Mai bine sa fii si cu Antiflood fl Orpheu.
Anti Fullupdate | Afiseaza codul
/* Plugin generated by AMXX-Studio */

#include <amxmodx>
#include <amxmisc>

#define PLUGIN "Anti Fullupdate Spam"
#define VERSION "1.1"
#define AUTHOR "Pike"

new Float:g_Checking[33] = {0.0, ...}
new g_Check[33] = {0, ...}
new Flag = 0

new amx_check_time;

public plugin_init() {
   register_plugin(PLUGIN, VERSION, AUTHOR)
   register_clcmd("fullupdate","Fullupdate")
   
   amx_check_time=register_cvar("amx_check_time", "1.0")
}

public Fullupdate(id)
{
      new Float:maxCheck = get_pcvar_float(amx_check_time)
   
           if (maxCheck)
   {
      new Float:nexTime = get_gametime()
     
      if (g_Checking[id] > nexTime)
      {
         if (g_Check[id] >= 5)
         {
           
   new name[32], ip[32], authid[32]
   get_user_name(id, name, 31)
   get_user_ip(id, ip, 31, 1)
   get_user_authid(id, authid, 31)
   
   g_Checking[id] = nexTime + maxCheck + 3.0

   //+Argus
   if(Flag == 0)
   {
     Flag = 1

     server_cmd("kick #%d ^"Using fullupdate spam command^"", get_user_userid(id))
     log_amx("^"%s^"<%s> %s Using fullupdate spam command", name, authid, ip)
   }
   //-Argus

   return PLUGIN_HANDLED

         }
         g_Check[id]++
      }
      else if (g_Check[id])
      {
         g_Check[id]--
      }
     
      g_Checking[id] = nexTime + maxCheck
      }

      Flag = 0 //Argus

      return PLUGIN_CONTINUE
}

Momentan,activitate mai slaba.
.


*[Anti Auto-Connect] [Config exec Connect IP Checker] [60%] [Public]
*[SISA Zombie + CSO Shop] [79%] [Contracost]

*[Plugin Snow] [100%] [La cerere - Privat]

* Screen#1 / Screen#2 / Screen#3
Acest plugin este facut la cerere si nu o sa fie public !
O sa fie public doar daca il face public Askhanar.



Post Reply

Return to “Cereri”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 38 guests