This is the new home of the egghelp.org community forum.
All data has been migrated (including user logins/passwords) to a new phpBB version.


For more information, see this announcement post. Click the X in the top right-corner of this box to dismiss this message.

spam bots nicks

Old posts that have not been replied to for several years.
b
b|_ack
Voice
Posts: 6
Joined: Thu Feb 10, 2005 4:25 am

spam bots nicks

Post by b|_ack »

Can somebody make a TCL the opium will make ban the following names thnx

Code: Select all

"*dianna_28*"                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    "*Diamo-17*"                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     "*^EMMIE__*"                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     "*TrevA`*"                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       "*Anemonella16*"                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 "*Courtney_ *"                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   "*ATAKA-N^*"                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     "*Roose__*"                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      "*cinsellik*"                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    "*EtaNiA_*"                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      "*chat_lady^*"                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   "*`Kathia^*"                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     "*ParneLLa^*"                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    "*ShirLey-*"                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     "*_MariAna1*"                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    "*wilimini*"                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     "*EdAna_*"                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       "*realgirl^^*"                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   "*AnieLa^^*"                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     "*PhiLberta-*"                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   "* milena`*"                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     "*Leda`*"                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        "*^MiNda*"                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       "*Alala^^*"                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      "*^AgNeS15*"                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     "*Devon__*"                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      "*sapopt*"                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       "*CheriLyN1*"                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    "*BLONDGIRL^*"                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   "*BerNiA16*"                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     "*AnieLa^^*"                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     "*PhiLberta-*"                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   "*Rebecca__*"                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    "*esgirl^*"                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      "*Crescent^*"                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    "*Leda`*"                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        "*^MiNda*"                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       "*Alala^^*"                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      "*^AgNeS15*"                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     "*Betta`25*"                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     "*celanie^*"                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     "*c_cromo12345*"                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 "*Aca-cia`*"                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     "*^Allison28*"                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   "*BerNiA16*"                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     "*aliSha18`15*"                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  "*`ninaa^^*"                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     "*EdevA15*"                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      "*esgirl^*"                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      "*Roberta^^*"                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    "*Hupa88*"                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       "*alatea16*"                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     "*ANezKA^^*"                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     "*Albus*"                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        "*^MeLwyN_*"                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     "*ArmeLLe*"                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      "*_Vanessa1*"                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    "*^Jessica-*"                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    "*KachiNe^^*"                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    "*trinkende_skifahrer*"                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          "*SarAid29*"                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     "*^MeLwyN_*"                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     "*ArmeLLe*"                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      "*_Vanessa1*"
User avatar
awyeah
Revered One
Posts: 1580
Joined: Mon Apr 26, 2004 2:37 am
Location: Switzerland
Contact:

Post by awyeah »

How about the old do it yourself way? I will just do one. We can add dozens of string comparisons or just one with a foreach loop.

Code: Select all

if {[string equal -nocase "dianna_28" $nick] || [string equal -nocase "Diamo-17" $nick] || [string equal -nocase "^EMMIE__" $nick] || [string equal -nocase "and.sooo.on...." $nick]} {

#do stuff here if any of the nicks match!
Or something more better like:

Code: Select all

set nicklist {
"dianna_28"
"Diamo-17"
"^EMMIE__"
"TrevA`"
"Anemonella16"
"Courtney_"
"ATAKA-N^"
"Roose__"
}

proc name {args} {
 global nicklist
 ...........................
 ..............................
 foreach user $nicklist {
  if {[string equal -nocase $user $nick]} {
   #do your stuff here!
  }
 }
 ..............................
 ...........................
}
·­awyeah·

==================================
Facebook: jawad@idsia.ch (Jay Dee)
PS: Guys, I don't accept script helps or requests personally anymore.
==================================
User avatar
Alchera
Revered One
Posts: 3344
Joined: Mon Aug 11, 2003 12:42 pm
Location: Ballarat Victoria, Australia
Contact:

Post by Alchera »

Wouldn't is be just easier to use a regular expression to ban numerical nicks, nicks with any of those characters in them (__, -, ^ &c)?
Example:

Code: Select all

if {[regexp {^[^aeiou_^-`]+$} $nick] \
   && [regexp {[^0-9]?$} $nick] \
   && ([string length $nick] > 3)} {...}
I suggest reading this post for more information.

What you propose awyeah is just too complicated and flawed in my opinion for the simple reason that if b|_ack's problem is spam bots the nicks are random but the one constant are the numbers and and the ^'s etc.
Add [SOLVED] to the thread title if your issue has been.
Search | FAQ | RTM
User avatar
awyeah
Revered One
Posts: 1580
Joined: Mon Apr 26, 2004 2:37 am
Location: Switzerland
Contact:

Post by awyeah »

Well, I knew that too, infact I use a similar code for my drone nicks, with regexp matching, but he wants it for all these specific nicks, and exact matching since he gave them all.
Is complicated?
* awyeah stares at Alchera
·­awyeah·

==================================
Facebook: jawad@idsia.ch (Jay Dee)
PS: Guys, I don't accept script helps or requests personally anymore.
==================================
User avatar
Sir_Fz
Revered One
Posts: 3794
Joined: Sun Apr 27, 2003 3:10 pm
Location: Lebanon
Contact:

Post by Sir_Fz »

I remember a not so old thread about such a script, a forum search should return positive results.
O
Ofloo
Owner
Posts: 953
Joined: Tue May 13, 2003 1:37 am
Location: Belguim
Contact:

Post by Ofloo »

Code: Select all

set names {
  Anemonella16 Courtney_ ATAKA-N^ Roose__
  cinsellik EtaNiA_ chat_lady^ `Kathia^
  ParneLLa^ ShirLey- _MariAna1 wilimini
  EdAna_ realgirl^^ AnieLa^^ PhiLberta-
  milena` Leda` ^MiNda Alala^^
  ^AgNeS15 Devon__ sapopt CheriLyN1
  BLONDGIRL^ BerNiA16 AnieLa^^ PhiLberta-
  Rebecca__ esgirl^ Crescent^ Leda`
  ^MiNda Alala^^ ^AgNeS15 Betta`25
  celanie^ c_cromo12345 Aca-cia` ^Allison28
  BerNiA16 aliSha18`15 `ninaa^^ EdevA15
  esgirl^ Roberta^^ Hupa88 alatea16
  ANezKA^^ Albus ^MeLwyN_ ArmeLLe
  _Vanessa1 ^Jessica- KachiNe^^ trinkende_skifahrer
  SarAid29 ^MeLwyN_ ArmeLLe _Vanessa1
}

proc isSpamNick {nick} {
  global names
  foreach {x} $names {
    if {[string match -nocase *${x}* $nick]} {
      return 1
    }
  }
  return 0
}
XplaiN but think of me as stupid
User avatar
caesar
Mint Rubber
Posts: 3778
Joined: Sun Oct 14, 2001 8:00 pm
Location: Mint Factory

Post by caesar »

What about a simple lsearch? :idea:
Once the game is over, the king and the pawn go back in the same box.
User avatar
demond
Revered One
Posts: 3073
Joined: Sat Jun 12, 2004 9:58 am
Location: San Francisco, CA
Contact:

Post by demond »

you are fighting already lost battle

it's not too hard for a semi-competent spammer to beat your hard-coded protection scheme the minute you introduce it - most spambot networks allow for easy and convenient change of the method used to generate nicks, user- and realnames

of course, if you are not an object of targeted attack but rather a victim of randomly roaming and uncontrolled spambots, chances are you can successfully identify them - with downside of continuous autokickbans being ban list overflow (so you'll need a mechanism for ban list management which guarantees some breathing space for manual bans)
User avatar
awyeah
Revered One
Posts: 1580
Joined: Mon Apr 26, 2004 2:37 am
Location: Switzerland
Contact:

Post by awyeah »

Also a good idea in this case would be to check if the nick is registered or, even if it is identified for? As generally spam bots, drone bots don't have registered or identified nicks. (Only limited if your network has nick management services like - NickServ etc)
·­awyeah·

==================================
Facebook: jawad@idsia.ch (Jay Dee)
PS: Guys, I don't accept script helps or requests personally anymore.
==================================
User avatar
Alchera
Revered One
Posts: 3344
Joined: Mon Aug 11, 2003 12:42 pm
Location: Ballarat Victoria, Australia
Contact:

Post by Alchera »

awyeah wrote:Also a good idea in this case would be to check if the nick is registered or, even if it is identified for?
Not a bad idea except there would be a problem with services down and in DALnet's case we know only too well how frequently that happens. :lol:
Add [SOLVED] to the thread title if your issue has been.
Search | FAQ | RTM
b
b|_ack
Voice
Posts: 6
Joined: Thu Feb 10, 2005 4:25 am

Post by b|_ack »

Ofloo wrote:

Code: Select all

set names {
  Anemonella16 Courtney_ ATAKA-N^ Roose__
  cinsellik EtaNiA_ chat_lady^ `Kathia^
  ParneLLa^ ShirLey- _MariAna1 wilimini
  EdAna_ realgirl^^ AnieLa^^ PhiLberta-
  milena` Leda` ^MiNda Alala^^
  ^AgNeS15 Devon__ sapopt CheriLyN1
  BLONDGIRL^ BerNiA16 AnieLa^^ PhiLberta-
  Rebecca__ esgirl^ Crescent^ Leda`
  ^MiNda Alala^^ ^AgNeS15 Betta`25
  celanie^ c_cromo12345 Aca-cia` ^Allison28
  BerNiA16 aliSha18`15 `ninaa^^ EdevA15
  esgirl^ Roberta^^ Hupa88 alatea16
  ANezKA^^ Albus ^MeLwyN_ ArmeLLe
  _Vanessa1 ^Jessica- KachiNe^^ trinkende_skifahrer
  SarAid29 ^MeLwyN_ ArmeLLe _Vanessa1
}

proc isSpamNick {nick} {
  global names
  foreach {x} $names {
    if {[string match -nocase *${x}* $nick]} {
      return 1
    }
  }
  return 
}
Banmask types 2) - *!*@host.domain
User avatar
Sir_Fz
Revered One
Posts: 3794
Joined: Sun Apr 27, 2003 3:10 pm
Location: Lebanon
Contact:

Post by Sir_Fz »

b|_ack wrote:
Ofloo wrote:

Code: Select all

set names {
  Anemonella16 Courtney_ ATAKA-N^ Roose__
  cinsellik EtaNiA_ chat_lady^ `Kathia^
  ParneLLa^ ShirLey- _MariAna1 wilimini
  EdAna_ realgirl^^ AnieLa^^ PhiLberta-
  milena` Leda` ^MiNda Alala^^
  ^AgNeS15 Devon__ sapopt CheriLyN1
  BLONDGIRL^ BerNiA16 AnieLa^^ PhiLberta-
  Rebecca__ esgirl^ Crescent^ Leda`
  ^MiNda Alala^^ ^AgNeS15 Betta`25
  celanie^ c_cromo12345 Aca-cia` ^Allison28
  BerNiA16 aliSha18`15 `ninaa^^ EdevA15
  esgirl^ Roberta^^ Hupa88 alatea16
  ANezKA^^ Albus ^MeLwyN_ ArmeLLe
  _Vanessa1 ^Jessica- KachiNe^^ trinkende_skifahrer
  SarAid29 ^MeLwyN_ ArmeLLe _Vanessa1
}

proc isSpamNick {nick} {
  global names
  foreach {x} $names {
    if {[string match -nocase *${x}* $nick]} {
      return 1
    }
  }
  return 
}
Banmask types 2) - *!*@host.domain
If you want to use Ofloo's code then you'll need to bind on join and check if the nick is a spamnick by using

Code: Select all

if {[isSpamNick $nick]} {
and then ban mask:
banmask type 2: *!*@[lindex [split $uhost @] 1]
read tcl-commands.doc in your eggdrop's doc/ for more info on bind join and it's proc.
O
Ofloo
Owner
Posts: 953
Joined: Tue May 13, 2003 1:37 am
Location: Belguim
Contact:

Post by Ofloo »

return 0 is missing ;) from isSpamNick, it was there tho but its gone somehow .. just thought id mention ;)
XplaiN but think of me as stupid
User avatar
caesar
Mint Rubber
Posts: 3778
Joined: Sun Oct 14, 2001 8:00 pm
Location: Mint Factory

Post by caesar »

If I where you I'd make it return "1" for a match and return "0" no match, and inside the proc to check the nick: if {[isSpamNick $nick]} { # is a match so ban or whatever }

Also, isn't a regexp fatser than that loop? Use break to stop a loop not return :P with something like this:

Code: Select all

proc isSpamNick {nick} { 
  global names 
  set blah 0
  foreach {x} $names { 
    if {[string match -nocase *${x}* $nick]} { 
      set blah 1 ; break
    } 
  } 
  return "$blah"
}
Once the game is over, the king and the pawn go back in the same box.
User avatar
awyeah
Revered One
Posts: 1580
Joined: Mon Apr 26, 2004 2:37 am
Location: Switzerland
Contact:

Post by awyeah »

So basically if we use break, with a loop, what is does it is: As we have a big list to match against and supposing the element we want to match is not last element in the list. So when we run the loop and it tries to match the first few elements, hopefully somewhere in the middle a match occurs, so when the first match occurs it breaks the loop, so it doesn't go ahead and match for others elements in the list, as already a match has occured, right?

Basically break the loop and no need to check if a match has already occured as it would seem redundant and would waste time.
·­awyeah·

==================================
Facebook: jawad@idsia.ch (Jay Dee)
PS: Guys, I don't accept script helps or requests personally anymore.
==================================
Locked