SA-MP Forums

Go Back   SA-MP Forums > SA-MP Scripting and Plugins > Plugin Development

Reply
 
Thread Tools Display Modes
Old 28/05/2013, 02:35 PM   #21
Jovazxc
Huge Clucker
 
Jovazxc's Avatar
 
Join Date: Feb 2013
Posts: 269
Reputation: 33
Default Respuesta: Anti Query Flood for Windows

Ok, the source code was added newly

Last edited by Jovazxc; 28/05/2013 at 07:10 PM.
Jovazxc is offline   Reply With Quote
Old 28/05/2013, 02:50 PM   #22
Glimma
Gangsta
 
Glimma's Avatar
 
Join Date: Jan 2012
Posts: 990
Reputation: 68
Default Respuesta: Anti Query Flood for Windows

Memory hacking isn't allowed? http://forum.sa-mp.com/showthread.php?t=428066

Good job Jossta.
Glimma is offline   Reply With Quote
Old 28/05/2013, 02:55 PM   #23
OrMisicL
Huge Clucker
 
OrMisicL's Avatar
 
Join Date: Mar 2013
Location: Under the bed
Posts: 358
Reputation: 174
Default Re: Respuesta: Anti Query Flood for Windows

Quote:
Originally Posted by DeadSkyTkb View Post
Memory hacking isn't allowed? http://forum.sa-mp.com/showthread.php?t=428066

Good job Jossta.
I took authorization from the samp team before releasing that plugin, any memory hacking plugin should do the same

@Jostaa: i think you should contact somebody from samp team via PM or IRC, since Kalcor is inactive from a while (February !)
__________________
Insane rhythm based level
Video
OrMisicL is offline   Reply With Quote
Old 29/05/2013, 11:15 AM   #24
Slice
High-roller
 
Join Date: Mar 2008
Location: Sweden
Posts: 1,899
Reputation: 1589
Default Re: Anti Query Flood for Windows

This could be done with iptables, btw.

Something like this:
Code:
-N SAMP_QUERY
-A SAMP_QUERY -m hashlimit --hashlimit-name samp-query --hashlimit-above 3/s --hashlimit-burst 6 --hashlimit-mode srcip,dstport -j DROP
-A SAMP_QUERY -j ACCEPT

-A INPUT -p udp -m length --length 43 --dport 7777 -m string --algo kmp --hex-string "SAMP|2E1322F2B822" -j SAMP_QUERY
The hex string is IP+port (see this).
Slice is offline   Reply With Quote
Old 29/05/2013, 11:31 AM   #25
AccountName
Little Clucker
 
Join Date: Apr 2013
Posts: 35
Reputation: 0
Default Re: Anti Query Flood for Windows

Where does the ip get banned?
AccountName is offline   Reply With Quote
Old 29/05/2013, 01:42 PM   #26
RyDeR`
High-roller
 
RyDeR`'s Avatar
 
Join Date: Feb 2009
Location: Belgium
Posts: 3,064
Reputation: 693
Default Re: Anti Query Flood for Windows

About the plugin, it's too sensitive; try spamming a couple of commands and it'll ban you. You should definitely improve it by more tests and more accurate values. I think 200 is too low, you should increase that value to a max possible, so innocent people don't get banned. Besides that, very nice plugin - I don't see any reason why SA:MP team would not allow this plugin.

Quote:
Originally Posted by AccountName View Post
Where does the ip get banned?
It gets banned in the netsh firewall service in Windows. Just execute this (in cmd.exe) to unban your IP:
Code:
netsh advfirewall firewall delete rule name=all remoteip=YOUR_IP_ADDRESS
__________________

Sup?
RyDeR` is offline   Reply With Quote
Old 29/05/2013, 10:09 PM   #27
Jovazxc
Huge Clucker
 
Jovazxc's Avatar
 
Join Date: Feb 2013
Posts: 269
Reputation: 33
Default Respuesta: Re: Anti Query Flood for Windows

Quote:
Originally Posted by Gamer_Z View Post
kind of useless considering the facts that you have the choice to only use windows firewall, why not make a configuration file in which the command to add a rule is stored in, like anti-query.conf with the text of windows firewall rule add, and then users will be able to use their own firewall.
if I understood well, make a configuration file that store the rules and when the server starts load these rules? and when shutdown the server delete the rules from the firewall and not from the file, would be good, and better manage the bans?

but considering it ban's so much ip's, could take server startup

Quote:
Originally Posted by RyDeR` View Post
About the plugin, it's too sensitive; try spamming a couple of commands and it'll ban you. You should definitely improve it by more tests and more accurate values. I think 200 is too low, you should increase that value to a max possible, so innocent people don't get banned. Besides that, very nice plugin - I don't see any reason why SA:MP team would not allow this plugin.
Yes, you have reason, i will improve this soon
Jovazxc is offline   Reply With Quote
Old 30/05/2013, 01:22 AM   #28
Jovazxc
Huge Clucker
 
Jovazxc's Avatar
 
Join Date: Feb 2013
Posts: 269
Reputation: 33
Default Respuesta: Re: Respuesta: Re: Anti Query Flood for Windows

Quote:
Originally Posted by Gamer_Z View Post
just so users can replace the command which gets executed, and eg %IP% is the ip flooded, in a string, etc
now I understand, but that another firewall can be used with the command line?
Jovazxc is offline   Reply With Quote
Old 31/05/2013, 01:21 AM   #29
Jovazxc
Huge Clucker
 
Jovazxc's Avatar
 
Join Date: Feb 2013
Posts: 269
Reputation: 33
Default Respuesta: Anti Query Flood for Windows

Updated, v1.1 released
Jovazxc is offline   Reply With Quote
Old 31/05/2013, 01:27 PM   #30
CoaPsyFactor
Gangsta
 
Join Date: Jul 2010
Location: Belgrade, Serbia
Posts: 879
Reputation: 47
Default Re: Anti Query Flood for Windows

Nice plugin, although there are many ways to detect flood attack.

@Gamer_Z - why can't you stop being such a c**ck blocker? (it is wrong word for this, but I can't remember any other)
__________________
Quote:
Originally Posted by ThaiLuan View Post
Code:
C:\Users\Administrator\Downloads\Viet-RP\gamemodes\3mien.pwn(112016) : fatal error 101: cannot write to file: "disk full"

Compilation aborted.Pawn compiler 3.2.3664	 	 	Copyright (c) 1997-2006, ITB CompuPhase


1 Error.
Help me! How to fix error
CoaPsyFactor 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
[Pedido] FS, anti flood, spawn kill flood, crasher. rannyere PortuguÍs/Portuguese 4 14/01/2017 01:28 AM
Anti Flood/Anti Spam/Anti Database Hack CROSS_Hunter Server Support 3 11/09/2012 07:29 AM
Exploit SA-MP - Query Flood junkbuster Server Support 11 10/01/2012 05:11 AM


All times are GMT. The time now is 08:04 AM.


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