PtokaX forum

Archive => Archived 4.0 boards => Request for Lua 4 scripts => Topic started by: BlazeXxX on 20 February, 2004, 19:19:54

Title: Flooders, Please Help!
Post by: BlazeXxX on 20 February, 2004, 19:19:54
Hi Guys,
I am getting drifted away with the flooder group. They seem to have a modified DC++ which lets them reconenct within seconds and reconnect.

So within a minute time, same nick with smilar ips connecting to the hub and causing the hub to go down. I am needing a script which temp ban the ppl who tries to connect without a 1 minute gap. I also want it to msg that user saying connection interval must be 1 Minute and temp ban them.

Its getting sick as they are flooding from all ip ranges for no reason.

This is an example of how the flood is happening:

[18:06] *** Joins: [10Mbit]?ABC
[18:06] *** Parts: [10Mbit]?ABC
[18:06] *** Joins: [10Mbit] ABC
[18:06] *** Parts: [10Mbit] ABC
[18:06] *** Joins: [10Mbit] ABC
[18:06] *** Parts: [10Mbit] ABC
[18:06] *** Joins: [10Mbit] ABC
[18:06] *** Parts: [10Mbit] ABC
[18:06] *** Joins: [10Mbit] ABC
[18:06] *** Parts: [10Mbit] ABC
[18:06] *** Joins: [10Mbit] ABC
[18:06] *** Parts: [10Mbit] ABC
[18:06] *** Joins: [10Mbit] ABC
[18:06] *** Parts: [10Mbit] ABC
[18:06] *** Joins: [10Mbit] ABC
[18:06] *** Parts: [10Mbit] ABC

Someone please help me with this issue  :(

Later,
BlazeX
Title:
Post by: kepp on 20 February, 2004, 20:16:02
ime to stop the buggers yea

--quick anti hammer v1 by Phatty
--will reset on scripts restart
-- reset every 10 mins without timer by plop

function Main()
Bot = "GoD"
lucifer = {}
hammeramount = 5
end

function NewUserConnected(user)
if lucifer[user.sName]==nil then
lucifer[user.sName]=1
elseif lucifer[user.sName]==hammeramount then
user:Ban()
SendPmToOps(Bot,user.sName.." has been lucified for hammering the server")
else
lucifer[user.sName]=lucifer[user.sName]+1
end
end

function DataArrival(user, data)
   if HomeMadeTimer ~= strfind(date("%M"), "^%d") then
      HomeMadeTimer = strfind(date("%M"), "^%d")
      lucifer = nil
      lucifer = {}
   end
end

Really cool indeed! i use it myself.
Set the hammerAmmount to anything you want, then if the same person enters 5 times within 10 minutes he will get banned!
Title:
Post by: BlazeXxX on 20 February, 2004, 22:58:41
Niceee kepp , you made my day. I am tired of banning them by nicks, now gonna hammer them hard   :O

Later,
BlazeX