StealthBot.net: AntiFlood Script - StealthBot.net

Jump to content

  • (4 Pages)
  • +
  • 1
  • 2
  • 3
  • 4
  • You cannot start a new topic
  • You cannot reply to this topic

AntiFlood Script version 1.0.7

#26 User is offline   buckylawson Icon

  • Newbie
  • Pip
  • Group: Members
  • Posts: 6
  • Joined: December-12 09

Posted December 14, 2009 - 04:11 AM

by "Clean Flood" I mean when the bots enter like 1 by 1 or even sometimes u see glimpse of 2 or 3 at time but they come to fast to be banned, for some reason these quick join/leave floods do not activate the flood protection, I was wondering if a counter for X amount of msgs from @useast within X time
could solve this by triggering flood protect mode, or what would I need to do, because exiled just pops in and out and it diff msg every other line but same msg in patterns of 2 lines.

View PostAwaKening, on 14 December 2009 - 03:54 AM, said:

Please describe "clean floods"

This system is simply checking for multiple users joining your channel that aren't in the clan. If too many join within a certain amount of time, then it locks.

Are you having a problem with just 1 username joining and repeating messages without leaving the channel? That type of flood is easier to control by using antispam.


#27 User is offline   AwaKening Icon

  • how do ya like me now
  • Icon
  • Group: Scripting Moderators
  • Posts: 977
  • Joined: August-20 09

Posted December 14, 2009 - 05:23 AM

the script doesn't ban users. It detects multiple joins by nonclan members. There is a setting in scripts.ini for users per minute allowed to join. Lower the number if you need it to lock quicker.

#28 User is offline   buckylawson Icon

  • Newbie
  • Pip
  • Group: Members
  • Posts: 6
  • Joined: December-12 09

Posted December 14, 2009 - 05:38 AM

View PostAwaKening, on 14 December 2009 - 05:23 AM, said:

the script doesn't ban users. It detects multiple joins by nonclan members. There is a setting in scripts.ini for users per minute allowed to join. Lower the number if you need it to lock quicker.



ya my bad I am stoned didn't mean to say it banned. Is there a way to code it to do the way I described though? because I am not any pro with code or nothing but took few java classes and I will gladly try learn do this stuff and code that statement out if it can do it, can i make the way u have it setup only detect @useast users as they join? I am not concerned over any war3 spambot attacks anytime soon so far but worried if I make it go off to any ranndom joins easier it will be triggered alot due to high traffic of ggl.

#29 User is offline   AwaKening Icon

  • how do ya like me now
  • Icon
  • Group: Scripting Moderators
  • Posts: 977
  • Joined: August-20 09

Posted December 14, 2009 - 05:56 AM

Find this line in the UserJoins Event

If LCase(GetInternalDataByUsername(Username, 0)) = Split(LCase(myChannel))(1) Then Exit Sub

replace it with this line:

If InStr(Username, "@")=0 Then Exit Sub


That will make it only count users from other realms

I'll probably add this option in as a setting for next release.

#30 User is offline   buckylawson Icon

  • Newbie
  • Pip
  • Group: Members
  • Posts: 6
  • Joined: December-12 09

Posted December 14, 2009 - 07:19 AM

View PostAwaKening, on 14 December 2009 - 05:56 AM, said:

Find this line in the UserJoins Event

If LCase(GetInternalDataByUsername(Username, 0)) = Split(LCase(myChannel))(1) Then Exit Sub

replace it with this line:

If InStr(Username, "@")=0 Then Exit Sub


That will make it only count users from other realms

I'll probably add this option in as a setting for next release.




yea it seems to work now thnx

#31 User is offline   buckylawson Icon

  • Newbie
  • Pip
  • Group: Members
  • Posts: 6
  • Joined: December-12 09

Posted December 15, 2009 - 04:52 AM

is there a way to make it read from chat window and have a counter for times that @useast messages are used it counts down to protection mode? because bots that it doesnt even see join and leave cuz they to fast dont trigger it

#32 User is offline   aka- Icon

  • member
  • PipPipPip
  • Group: Members
  • Posts: 106
  • Joined: October-07 09

Posted December 27, 2009 - 09:24 PM

ya, somtimes it doesnt lock the channel. Is there any way u can add somthing like this to it also??

user: .flood
bot: channel locked, non memeber may whisper letmein.

so if it doesnt detect it we can do it our selfs, cause some times it does detected it, somtimes it doesnt so idk...

#33 User is offline   AwaKening Icon

  • how do ya like me now
  • Icon
  • Group: Scripting Moderators
  • Posts: 977
  • Joined: August-20 09

Posted December 28, 2009 - 02:39 AM

Yes, I could and will, but honestly guys, adjust your settings. If it's not locking, then it's probably because the allowed number is set too high. Have you tried adjusting the settings at all?

Another thought is that you might have a different script interferring by doing /cq or /scq at the time this script is trying to private the channel.

Updated to version 1.0.4

Added command to manually trigger the flood.
Added /scq back in to the lockdown

#34 User is offline   aka- Icon

  • member
  • PipPipPip
  • Group: Members
  • Posts: 106
  • Joined: October-07 09

Posted December 28, 2009 - 07:47 AM

View PostAwaKening, on 28 December 2009 - 02:39 AM, said:

Yes, I could and will, but honestly guys, adjust your settings. If it's not locking, then it's probably because the allowed number is set too high. Have you tried adjusting the settings at all?

Another thought is that you might have a different script interferring by doing /cq or /scq at the time this script is trying to private the channel.

Updated to version 1.0.4

Added command to manually trigger the flood.
Added /scq back in to the lockdown


oh shit.. ya then maybe that was my bad i put it at 20 i thought it was for ppl who do /w botname letmein and only 20 ppl can do it or somthing like that.. my bad...
thax for adding the .flod on though!!! once again great job with this!!

#35 User is offline   AwaKening Icon

  • how do ya like me now
  • Icon
  • Group: Scripting Moderators
  • Posts: 977
  • Joined: August-20 09

Posted January 03, 2010 - 04:03 AM

Updated to 1.0.5

Users from other realms can no longer gain entry by whispering letmein (they are usually the floodbots)
Added a setting to require safelist or access greater than 0 to enter using letmein (Disabled by default)

#36 User is offline   endozero Icon

  • Junior Member
  • PipPip
  • Group: Members
  • Posts: 16
  • Joined: October-26 09

Posted January 04, 2010 - 04:59 PM

do you need to be cheif / shaman for this plugin to work?

#37 User is offline   The-Black-Ninja Icon

  • The Sex
  • Icon
  • Group: Scripting Moderators
  • Posts: 2,526
  • Joined: August-01 09

Posted January 04, 2010 - 05:28 PM

The bot must be able to private the channel, so either chief/shaman/designated.

#38 User is offline   peace35 Icon

  • Junior Member
  • PipPip
  • Group: Members
  • Posts: 19
  • Joined: September-13 09

Posted January 27, 2010 - 04:27 PM

I added this to the scripts folder, set the userlimit to 30, and was flooded last night. I know the script is loaded, but it didn't work. It didnt lock the channel.

I even just now set the userlimit to 1 and joined the channel 3x on a random account (not safelisted account), it didn't lock the channel then either.

Sorry if this isn't the right place to post but I'm not sure what I'm doing wrong.


EDIT: My bot is an opped shaman in the clan.

This post has been edited by peace35: January 27, 2010 - 04:27 PM


#39 User is offline   AwaKening Icon

  • how do ya like me now
  • Icon
  • Group: Scripting Moderators
  • Posts: 977
  • Joined: August-20 09

Posted January 27, 2010 - 05:07 PM

I can tell you that 30 is way too high. It only counts nonsafelisted, nonclan members entering the channel per minute. Unless your channel is high traffic to visitors, you should probably set it around 4 or 5.

I'm really not sure what your problem might be. Is this for a wc3 clan?

#40 User is offline   peace35 Icon

  • Junior Member
  • PipPip
  • Group: Members
  • Posts: 19
  • Joined: September-13 09

Posted January 27, 2010 - 11:00 PM

It's in a WC3 clan channel, but a starcraft based clan. Virtually ALL of the users joining the channel are not in the wc3 clan or safelisted (in fact, NONE of them are safelisted on my bot, which is where the plugin is located).
Compared to other channels we can sometimes have intensely high traffic as people randomly drop by to join in during a clan game or 2. 30 is an appropriate number, but that's not what my questions is about. Why is the plugin not working? Especially during an hour long flood.

#41 User is offline   InsaneFirebat Icon

  • Group: Members
  • Posts: 83
  • Joined: September-12 09

Posted January 28, 2010 - 12:51 AM

He forgot to ask the important question... Does the bot have ops in the channel?

Edit: And now I see your edit. Post can be deleted

This post has been edited by InsaneFirebat: January 28, 2010 - 12:52 AM

Fear the fearsome fury of the forest fawn! Posted Image Clan [email protected]
Posted Image

#42 User is offline   AwaKening Icon

  • how do ya like me now
  • Icon
  • Group: Scripting Moderators
  • Posts: 977
  • Joined: August-20 09

Posted January 28, 2010 - 06:14 AM

Don't know what to tell you at this point. There is nothing wrong with the script. What other scripts do you have loaded?

#43 User is offline   Be-Eazie Icon

  • Newbie
  • PipPip
  • Group: Members
  • Posts: 34
  • Joined: September-04 09

Posted January 28, 2010 - 07:02 PM

View PostAwaKening, on 28 January 2010 - 01:14 AM, said:

Don't know what to tell you at this point. There is nothing wrong with the script. What other scripts do you have loaded?


I dont mean to hijack but, ive had the same problem, under a heavy load/flood the bots are coming and going so fast that the bot doesnt even seem them enter channel therfore doesnt lock it down. If its a crappy flood or slow load, it will work but with a heavy fast flood/load this script does nothing.

#44 User is offline   peace35 Icon

  • Junior Member
  • PipPip
  • Group: Members
  • Posts: 19
  • Joined: September-13 09

Posted January 28, 2010 - 08:11 PM

The only other scripts I have up are the default ones that come with stealthbot. But personally I'm not just talking like in a fast flood, this plugin just doesn't kick in no matter what =(

#45 User is offline   AwaKening Icon

  • how do ya like me now
  • Icon
  • Group: Scripting Moderators
  • Posts: 977
  • Joined: August-20 09

Posted January 28, 2010 - 09:07 PM

If it's not detecting them joining too fast, then seems like Stealth isn't firing the Event UserJoins sub, in which case there's nothing I can do about it. I however am not stating that there is a problem because for me, the script has been working perfect. In fact, the floodbot owner just quit bugging my channel all together now since he wasn't getting in.

@peace35. Please read the tutorial on how to add scripts to your bot and make sure you're doing everything right. Get another script from the official script section just to see if any of them work for you as well.



#46 User is offline   InsaneFirebat Icon

  • Group: Members
  • Posts: 83
  • Joined: September-12 09

Posted January 28, 2010 - 10:57 PM

Check your bot log and see if there were any errors at the time of the flood. I just massloaded my channel with rejoins and the script fired perfectly. Using build 456 and script version 1.0.5.
Fear the fearsome fury of the forest fawn! Posted Image Clan [email protected]
Posted Image

#47 User is offline   peace35 Icon

  • Junior Member
  • PipPip
  • Group: Members
  • Posts: 19
  • Joined: September-13 09

Posted January 29, 2010 - 01:18 AM

Downloaded memcheck script and got it working, and there arn't any errors, I set it to 2 and watched like 4 people come and go in a few seconds...

EDIT: never mind it just worked, not sure what changed but anyway, thanks for the help!

This post has been edited by peace35: January 29, 2010 - 01:32 AM


#48 User is offline   AwaKening Icon

  • how do ya like me now
  • Icon
  • Group: Scripting Moderators
  • Posts: 977
  • Joined: August-20 09

Posted February 06, 2010 - 10:50 PM

Updated to 1.0.6

Set chatdelay to 0 in script load (Thanks Pryo). This is supposed to help in flood detection when the bots are joining too fast. Also added a setting to only count users from another realm towards flood. Read the settings throughly before changing them.

This post has been edited by AwaKening: February 06, 2010 - 10:50 PM


#49 User is offline   Hellzz Icon

  • No One
  • PipPip
  • Group: Banned
  • Posts: 51
  • Joined: September-11 09

Posted February 08, 2010 - 04:52 AM

View PostAwaKening, on 19 November 2009 - 10:20 PM, said:

Name: AntiFlood
Author: AwaKening
Version: 1.0.6

Purpose: Locks your channel when floodbots are detected.

Requirements: Stealthbot Version 2.7.1 or higher

Commands:
antiflood (force triggers the flood)

floodreset (can be used to open the channel and reset the timer)

letmein (whisper only)
If the channel is locked, a user can whisper the bot any phrase containing (let me in) to have the channel open for only them to enter. Let me in, please let me in, letmein, etc..

Settings:
NOTE: All settings can be found in scripts.ini

SameRealm - Count users of the same realm towards flood detection (Clan members still excluded)
If set to False, then only users with @ in their name would count towards the flood limit
Default True

CloseTime - Minutes to close channel when an attack is detected
Default 60

override - Seconds to allow a user in on whisper when channel is locked
Default 6

userLimit - Nonclan members and unsafelisted users per minute allowed to join the channel
Default 4

Sweep - Sweep kick the channel of users containing @ when a flood is detected
Default True

SafeLetmein - Require users to be safelisted or have access greater than 0 to be able to enter using (letmein)
Default False

Changelogs:
' 1.0.6 updated 02/06/2009
'    - ChatDelay set to 0 on Load (Thanks Pyro)
'    - Save call to create a timer by utilizing MOTD Event
'    - Added setting SameRealm
' 1.0.5 updated 01/02/2009
'    - Whispers from users of other realms are now ignored
'    - Added a setting to require letmein users to be safelisted or have >0 access
' 1.0.4 updated 12/27/2009
'    - Added command to manually trigger flood
'    - Added /scq before /clan private
' 1.0.3 updated 12/01/2009
'    - Removed product limitation for letmein command
'    - Safelisted users now won't add to the flood counter
'    - Removed /scq and made all /clan commands priority 1
'    - Changed the cycle timer to round down on 1/2 instead of up
' 1.0.2 udpated 11/28/2009
'    - Changed the Cycle timer
'    - Added IsOnline check in the cycle timer
' 1.0.1 updated 11/22/2009
'    - Will not kick out clan members now when the bot is not part of a clan
'    - Safelisted members will not be kicked out during lockout
'    - Fixed an addq argument error in Sweep Channel



Additional Notes:
Some credit is due to The_Black_Ninja for the idea of this script

Floodbots apparently have been updated to whisper your bot with the letmein command in some cases. For this reason, users from other realms will not be let in anymore. Additional security can be enabled in your settings to check if the user is safelisted or has access greater than 0.



I apologize for asking a newbish question, but in order to get this into the bot folder, do i make a new text file or is there a plugin d/l for this? Sorry, Im still new to stealth bot.
Posted Image

#50 User is online   Novynn Icon

  • Silver Member
  • PipPipPipPipPip
  • Group: Senior Members
  • Posts: 873
  • Joined: October-07 09

Posted February 08, 2010 - 05:49 AM

Theres a download at the bottom of his post. Right click it then hit "Save linked content as..." or "Save link as..." then direct it to your stealthbots scripts folder and hit save.

Other than that you can select the text in the attachment and copy-paste it into an empty .txt file in your bots scripts folder.

  • (4 Pages)
  • +
  • 1
  • 2
  • 3
  • 4
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users