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.

no ident ban but with exceptions

Requests for complete scripts or modifications/fixes for scripts you didn't write. Response not guaranteed, and no thread bumping!
Post Reply
r
rem
Voice
Posts: 4
Joined: Thu Apr 12, 2007 2:46 am

no ident ban but with exceptions

Post by rem »

Hello,

I searched and found scripts close to what I need but not quite. I just need a script that will ban users with broken ident but allowing me to add exceptions manually, because there are a few legit users in chan that I do not wish to ban with broken idents and for some reason or another can not get identd running. Thank you.
User avatar
rosc2112
Revered One
Posts: 1454
Joined: Sun Feb 19, 2006 8:36 pm
Location: Northeast Pennsylvania

Post by rosc2112 »

BadIdban.Tcl - 22/12/2004 Chino_^ Will detect users who use a disagreeable IDENT, banning them from the channel for a specified length of time. Will not punish users with the flags +ofm.
http://www.egghelp.org/cgi-bin/tcl_arch ... ad&id=1095

Basically, just add a banmask with ~*!*@* in it, and the people you want to exempt, give the appropriate user flags.

Edit: BTW, ident is a useless protocol. It's easily spoofed and proves nothing about the connection (it was useful about 20-25 yrs ago when it could be reasonably assumed that system administrators were legit. Nowdays anyone can fiddle with identd's responses.)
r
rem
Voice
Posts: 4
Joined: Thu Apr 12, 2007 2:46 am

Post by rem »

Thank you, but that just seems to ban specific words, and it's all in Spanish. I need one that bans no ident. I realize ident can be spoofed but that doesn't really matter to me right now. Lately there has been an idiot with a drone net flooding my channel. Since the drones are on compromised machines none of them have ident.
Example:

Joins: ab557 (~zne@ip68-230-168-86.mc.at.cox.net)
Joins: ab172 (~c7ylwz@ip68-230-168-86.mc.at.cox.net)
Joins: ab8628 (~qjeh@user-0ceid4m.cable.mindspring.com)
Joins: ab8473 (~qckgvj@ip24-250-114-133.dc.dc.cox.net)
Joins: ab32318 (~ctym@c-71-235-138-114.hsd1.ct.comcast.net)

These are some of the actual drones. I'll ban them all and he just uses different drones. I am using a channel limiter script but its effectiveness is negligible at best. If there is a better way of handling this situation I'm open to any suggestions. Thanks again.
User avatar
rosc2112
Revered One
Posts: 1454
Joined: Sun Feb 19, 2006 8:36 pm
Location: Northeast Pennsylvania

Post by rosc2112 »

Plenty of scripts for banning clones/drones/etc.. Check the archive.
r
rem
Voice
Posts: 4
Joined: Thu Apr 12, 2007 2:46 am

Post by rem »

Well, thank you for giving me an example and reading my first post. Like I said, I already searched and could not find what I need. There is "All protection" and "xchannel", but that is not what I'm after, my bot is already using enough resources as it is. I just need a script for my bot to ban non ident users with the ability to add exceptions.
n
nml375
Revered One
Posts: 2860
Joined: Fri Aug 04, 2006 2:09 pm

Post by nml375 »

Do you know if the irc network you use support server-side exempts?
In case you got a limited number of friends with broken idents, that might be a (crude) solution. Other than that, it's just a battle to write more and more intelligent filters to spot those pesky drones.. And in many cases, the drones are on the winning side :/

One way that would effectively stop them, but would be abit troublesome for your users, would be to set the channel invite-only, and have a few bots on "invite-duty"; ie. message these bots to get an invite, use some "doorway channel", etc. It works, but it'll make things quite annoying for those members that hav'nt been told about it, or new visitors
NML_375
User avatar
Sir_Fz
Revered One
Posts: 3794
Joined: Sun Apr 27, 2003 3:10 pm
Location: Lebanon
Contact:

Post by Sir_Fz »

Code: Select all

bind join - {% *!\~*@*} noident:kick

proc noident:kick {nick uhost hand chan} {
 if {[matchattr $hand f|f $chan]} {return 0}
 putquick "mode $chan +b *!*@[lindex [split $uhost @] 1]"
 putquick "kick $chan $nick :Unresolved ident"
}
If you want it to work on only 1 channel then replace % with your #channel (The bot will exempt +f users).
n
nml375
Revered One
Posts: 2860
Joined: Fri Aug 04, 2006 2:09 pm

Post by nml375 »

Might be a good idea to use newchanban for the banning, in case the banlist get filled.
NML_375
r
rem
Voice
Posts: 4
Joined: Thu Apr 12, 2007 2:46 am

Post by rem »

Sir_Fz, you are awesome. That worked like a charm. Thank you.

nml375, yeah, I considered server-side exempts but I would rather my bot handle this.
Post Reply