<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en-gb">
	<link rel="self" type="application/atom+xml" href="https://forum.eggheads.org/app.php/feed/topic/11151" />

	<title>egghelp/eggheads community</title>
	<subtitle>Discussion of eggdrop bots, shell accounts and tcl scripts.</subtitle>
	<link href="https://forum.eggheads.org/index.php" />
	<updated>2006-01-10T00:19:12-04:00</updated>

	<author><name><![CDATA[egghelp/eggheads community]]></name></author>
	<id>https://forum.eggheads.org/app.php/feed/topic/11151</id>

		<entry>
		<author><name><![CDATA[demond]]></name></author>
		<updated>2006-01-10T00:19:12-04:00</updated>

		<published>2006-01-10T00:19:12-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=59300#p59300</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=59300#p59300"/>
		<title type="html"><![CDATA[a ban script based on number of ip from same domain]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=59300#p59300"><![CDATA[
see my posting in the FAQ forum about CIDR bans<br><br>ircd-hybrid supports them, I'd guess ratbox too and maybe ircu (yes qpeople, that's where qnet is coming from)<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5056">demond</a> — Tue Jan 10, 2006 12:19 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[SaPrOuZy]]></name></author>
		<updated>2006-01-09T06:29:31-04:00</updated>

		<published>2006-01-09T06:29:31-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=59286#p59286</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=59286#p59286"/>
		<title type="html"><![CDATA[a ban script based on number of ip from same domain]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=59286#p59286"><![CDATA[
thx dude, i'll start from here to continue coding the rest of features<br>- autmating through x bans/ T time<br>- and get the biggest common part of the ips ...<br><br>regards.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=4727">SaPrOuZy</a> — Mon Jan 09, 2006 6:29 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Sir_Fz]]></name></author>
		<updated>2006-01-09T06:18:26-04:00</updated>

		<published>2006-01-09T06:18:26-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=59284#p59284</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=59284#p59284"/>
		<title type="html"><![CDATA[a ban script based on number of ip from same domain]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=59284#p59284"><![CDATA[
<div class="codebox"><p>Code: </p><pre><code>proc fixBans c { set cbs [chanbans $c] foreach cb $cbs {  set b *!*@[lindex [split [lindex $cb 0] @] 1]  set mb [maskhost $b]  set cbs [lreplace $cbs [lsearch -exact $cbs $cb] [lsearch -exact $cbs $cb]]  foreach cb2 $cbs {   set b2 *!*@[lindex [split [lindex $cb2 0] @] 1]   if {[string match -nocase $mb $b2]} {    lappend gb($mb) [lindex $cb2 0]    set cbs [lreplace $cbs [lsearch -exact $cbs $cb2] [lsearch -exact $cbs $cb2]]   }  } } foreach {a b} [array get gb] {  if {[llength $b] &gt; 1} {   foreach ban $b {    pushmode $c -b $ban   }   pushmode $c +b $a  } }}</code></pre></div><strong class="text-strong">fixBans $chan</strong> should do what you asked for but not totally, only bans matching like 127.0.0.* will be removed and replaced by that one or bans like *.fz.net.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3085">Sir_Fz</a> — Mon Jan 09, 2006 6:18 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[SaPrOuZy]]></name></author>
		<updated>2006-01-09T05:03:31-04:00</updated>

		<published>2006-01-09T05:03:31-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=59280#p59280</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=59280#p59280"/>
		<title type="html"><![CDATA[a ban script based on number of ip from same domain]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=59280#p59280"><![CDATA[
Hello there,<br>it's a small script (and an easy one too) but am not really finding the time (or the mood) to write it..<br>here the idea:<br>suppose 10 ip from a domain xy.z.net  joined a channel to flood (notice/msg...)  they started noticing the chan and started to get banned quickly one after the other.. <br>now what i want to do is ban the domain xy.z.net since i'd consider these hosts to be infected range of ips or something...<br>so what should be done is couting the bans that are set in a specified period of time, and ban the biggest common part of those addresses<br>ex: <br>  if the address is in host format: <br>     45-122-211-11.terra.net<br>     45-123-11-21.terra.net     <br>     45-122-213-33.terra.net<br>   idealy what should be banned is *!*@45*.terra.net but i think it would be hard so the script should ban *!*@*.terra.net  (and remove the others)<br>   if the address is in numeric ip format:<br>      192.168.0.22<br>      192.168.0.56<br>      192.168.0.85<br>      192.168.0.99<br>     we should ban *!*@192.168.0.* <br><br>     <strong class="text-strong">195.10.1</strong>12.36<br>     <strong class="text-strong">195.10.1</strong>22.12<br>     <strong class="text-strong">195.10.1</strong>41.233<br>     <strong class="text-strong">195.10.1</strong>65.153<br>     we should ban *!*@195.10.1*<br><br>this script intends to keep the number of bans limited to a minimum, of course exemptions should be added.<br><br>i hope i made it clear enough for you guys...<br>and thanks in advance if anyone decided to do it<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=4727">SaPrOuZy</a> — Mon Jan 09, 2006 5:03 am</p><hr />
]]></content>
	</entry>
	</feed>
