egghelp.org community Forum Index
[ egghelp.org home | forum home ]
egghelp.org community
Discussion of eggdrop bots, shell accounts and tcl scripts.
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Removing Spamming bots with strange nicks
Goto page Previous  1, 2, 3  Next
 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    egghelp.org community Forum Index -> Archive
View previous topic :: View next topic  
Author Message
user
 


Joined: 18 Mar 2003
Posts: 1452
Location: Norway

PostPosted: Mon Jul 21, 2003 5:26 pm    Post subject: Reply with quote

Sir_Fz wrote:
yeah, that's not a bad idea. but still there are some nicks that are not in a dictionary (as have no meaning), so it might be more messy than the regexp mentioned.


That's the beauty of my method (I think/hope), because even if they're not real words most nicks SOUND like real words. Except strange nicks like where a number becomes a couple of chars in a word etc...but these could be translated to chars with a 'string map' before the soundex is made (in most cases) and the rest would be allowed to re-enter through the /msg command
Back to top
View user's profile Send private message
Sir_Fz
Revered One


Joined: 27 Apr 2003
Posts: 3793
Location: Lebanon

PostPosted: Mon Jul 21, 2003 5:32 pm    Post subject: Reply with quote

yeah ur right, It might be a good idea for a script. also we might add a system that if 5 nicknames of this kind join in a certain period of time the bot locks the chan...
like the bogus username join.
_________________
Follow me on GitHub

- Opposing

Public Tcl scripts
Back to top
View user's profile Send private message Visit poster's website
z_one
Master


Joined: 14 Jan 2002
Posts: 269
Location: Canada

PostPosted: Tue Jul 22, 2003 1:11 pm    Post subject: Reply with quote

Isn't the "y" a vowel ?
There are 6 vowels: a, e, o, u, i and y
As I understand, your code is supposed to look for all vowels because spam nicks (as your code assumes but it's not necessarily always the case) are made up of consonants.
For example the nick: wdvghhn

Anyway it's really up to you whether you decide to include the "y" or not.
Back to top
View user's profile Send private message
Papillon
Owner


Joined: 15 Feb 2002
Posts: 724
Location: *.no

PostPosted: Tue Jul 22, 2003 3:03 pm    Post subject: Reply with quote

did anyone test those regular expressions?
_________________
Elen sila lúmenn' omentielvo
Back to top
View user's profile Send private message MSN Messenger
Sir_Fz
Revered One


Joined: 27 Apr 2003
Posts: 3793
Location: Lebanon

PostPosted: Tue Jul 22, 2003 3:41 pm    Post subject: Reply with quote

yeah I did.

Its actualy pretty good. although there are 1 or 2 innoscent users being kicked every hour. but it also bans flooders using random nicks. so it would be better if someone can give a way to lock the channel if 3 nicks join together in X seconds. Smile

Z_one: well its not about vowels, the code I gave doesn't include y in it. (I'm not the one who coded it)
_________________
Follow me on GitHub

- Opposing

Public Tcl scripts
Back to top
View user's profile Send private message Visit poster's website
Papillon
Owner


Joined: 15 Feb 2002
Posts: 724
Location: *.no

PostPosted: Tue Jul 22, 2003 4:10 pm    Post subject: Reply with quote

hmmm..
Code:
regexp {^[^aeiou_^-`]+$} $nick
return 1 even if - is in the nick
Code:
regexp {[^0-9]?$} $nick
return 1 no mather what
try changing the if-test to
Code:
if {[regexp {^[^aeiou_^`-]+$} $nick] \
&& [regexp {^[^0-9]+$} $nick] \
&& ([string length $nick] > 3)} {...}

_________________
Elen sila lúmenn' omentielvo
Back to top
View user's profile Send private message MSN Messenger
Sir_Fz
Revered One


Joined: 27 Apr 2003
Posts: 3793
Location: Lebanon

PostPosted: Tue Jul 22, 2003 4:20 pm    Post subject: Reply with quote

ok did that Smile

Will tell you if its better now.
_________________
Follow me on GitHub

- Opposing

Public Tcl scripts
Back to top
View user's profile Send private message Visit poster's website
Sir_Fz
Revered One


Joined: 27 Apr 2003
Posts: 3793
Location: Lebanon

PostPosted: Wed Jul 23, 2003 2:25 am    Post subject: Reply with quote

I haven't noticed anything different.

but I noticed that using this regexp it kicks user with a nick all CAPS. like for example if user "SIRFZ" joins, it gets kicked. what's the reason ? (Note that this is not a change after Papillon modified the code, it also happened when using TsT's code.)
_________________
Follow me on GitHub

- Opposing

Public Tcl scripts
Back to top
View user's profile Send private message Visit poster's website
Papillon
Owner


Joined: 15 Feb 2002
Posts: 724
Location: *.no

PostPosted: Wed Jul 23, 2003 3:46 am    Post subject: Reply with quote

well, that's easily fixed, just add -nocase as option to the first regexp... like this:
Code:
regexp -nocase -- {^[^aeiou_^`-]+$} $nick

_________________
Elen sila lúmenn' omentielvo
Back to top
View user's profile Send private message MSN Messenger
Sir_Fz
Revered One


Joined: 27 Apr 2003
Posts: 3793
Location: Lebanon

PostPosted: Wed Jul 23, 2003 4:49 am    Post subject: Reply with quote

ok it worked Smile thank you.
_________________
Follow me on GitHub

- Opposing

Public Tcl scripts
Back to top
View user's profile Send private message Visit poster's website
Sir_Fz
Revered One


Joined: 27 Apr 2003
Posts: 3793
Location: Lebanon

PostPosted: Thu Jul 24, 2003 6:32 pm    Post subject: Reply with quote

is there a way to add "\" into the regexp ? cuz some nicks have \, most of them are bot

like regexp -nocase -- {^[^aeiou_\^`-]+$} $nick (but i know that slashes are used to separate, so how to do it ?)
_________________
Follow me on GitHub

- Opposing

Public Tcl scripts
Back to top
View user's profile Send private message Visit poster's website
Papillon
Owner


Joined: 15 Feb 2002
Posts: 724
Location: *.no

PostPosted: Fri Jul 25, 2003 4:33 am    Post subject: Reply with quote

just escape it with another \
Code:
regexp -nocase -- {^[^aeiou\\_^`-]+$} $nick

_________________
Elen sila lúmenn' omentielvo
Back to top
View user's profile Send private message MSN Messenger
Sir_Fz
Revered One


Joined: 27 Apr 2003
Posts: 3793
Location: Lebanon

PostPosted: Fri Jul 25, 2003 3:19 pm    Post subject: Reply with quote

thanx Smile
_________________
Follow me on GitHub

- Opposing

Public Tcl scripts
Back to top
View user's profile Send private message Visit poster's website
Sir_Fz
Revered One


Joined: 27 Apr 2003
Posts: 3793
Location: Lebanon

PostPosted: Fri Jul 25, 2003 5:28 pm    Post subject: Reply with quote

well Embarassed , last request.

how can u make it also check for random idents like these ?
_________________
Follow me on GitHub

- Opposing

Public Tcl scripts
Back to top
View user's profile Send private message Visit poster's website
Papillon
Owner


Joined: 15 Feb 2002
Posts: 724
Location: *.no

PostPosted: Fri Jul 25, 2003 5:55 pm    Post subject: Reply with quote

do a whois when the user/bot joins. Then catch the whois-reply with bind raw and just add the same if-check in there... when you have pulled out the ident from all the input ofcourse Smile
_________________
Elen sila lúmenn' omentielvo
Back to top
View user's profile Send private message MSN Messenger
Display posts from previous:   
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    egghelp.org community Forum Index -> Archive All times are GMT - 4 Hours
Goto page Previous  1, 2, 3  Next
Page 2 of 3

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Forum hosting provided by Reverse.net

Powered by phpBB © 2001, 2005 phpBB Group
subGreen style by ktauber