<?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/8990" />

	<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>2005-01-21T12:05:01-04:00</updated>

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

		<entry>
		<author><name><![CDATA[stdragon]]></name></author>
		<updated>2005-01-21T12:05:01-04:00</updated>

		<published>2005-01-21T12:05:01-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=45670#p45670</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=45670#p45670"/>
		<title type="html"><![CDATA[silence command for a bot]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=45670#p45670"><![CDATA[
The "problem" is actually related to the Nyquist Theorem, which you may have heard of if you do much with mp3s: the highest frequency you can reliably monitor digitally is 1/2 of your sampling frequency. In this case, the sampling frequency is 1/10 hz. So the best we can reliably monitor is 1/20 hz, which translates to a period of 20 seconds rather than the 10 specified.<br><br>Unfortunately this is a "hard limit" that you can't break, you can only approach. For instance, if you altered the algorithm to store the incoming times of messages using [clock seconds], you would think that you could detect floods to within 1 second rather than 10 seconds. However this falls victim to the same thing as user pointed out with mine: sometimes a few messages will come in at t = 1.9, and a few more at t = 2.0, thus surpassing what is considered a flood "within 1 second" without being punished.<br><br>This is a fact of life and there's not much to be done about it! However, note that this algorithm still detects floods according to the rule "2X messages in 2Y seconds". For instance, in user's example, if even one more message is sent in 9 seconds, the flood will be detected. If, on the other hand, every time the attackers send a few messages they have to wait 9 seconds, then it's not a flood.<br><br>Also, it is exactly the same as the algorithm eggdrop uses internally to detect floods, so if you haven't run into huge problems with that, you won't with this either!<br><br>I suppose the clearest way to say it would have been, "checks for a long-term average of at least 5 msg, notice, ctcp in discrete groupings of 10 seconds" but most people aren't so precise. I'll have to remember to be more careful when user is around!<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8">stdragon</a> — Fri Jan 21, 2005 12:05 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[mm]]></name></author>
		<updated>2005-01-20T23:38:47-04:00</updated>

		<published>2005-01-20T23:38:47-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=45651#p45651</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=45651#p45651"/>
		<title type="html"><![CDATA[silence command for a bot]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=45651#p45651"><![CDATA[
oh Thanks User/Stdragon,  so what should i change to fix this?<br><br>thanks again.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5145">mm</a> — Thu Jan 20, 2005 11:38 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[user]]></name></author>
		<updated>2005-01-20T20:56:24-04:00</updated>

		<published>2005-01-20T20:56:24-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=45649#p45649</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=45649#p45649"/>
		<title type="html"><![CDATA[silence command for a bot]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=45649#p45649"><![CDATA[
<blockquote class="uncited"><div>checks for 5 msg, notice, ctcp in 10 seconds</div></blockquote>Not quite... Imagine this: add1, 9 sec pause, add1*4 within 1 second, expired, add1*5 - now you've done add1 9 times within ~1 second and nothing happened <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_razz.gif" width="15" height="15" alt=":P" title="Razz"><br><br>A lil tip about if/expr: if IS expr, so you don't need to nest expr's within ifs to do calculations <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2878">user</a> — Thu Jan 20, 2005 8:56 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[mm]]></name></author>
		<updated>2005-01-19T23:59:07-04:00</updated>

		<published>2005-01-19T23:59:07-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=45577#p45577</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=45577#p45577"/>
		<title type="html"><![CDATA[silence command for a bot]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=45577#p45577"><![CDATA[
cheers, thank you so much, i will test it and let you know.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5145">mm</a> — Wed Jan 19, 2005 11:59 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[stdragon]]></name></author>
		<updated>2005-01-19T23:21:07-04:00</updated>

		<published>2005-01-19T23:21:07-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=45576#p45576</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=45576#p45576"/>
		<title type="html"><![CDATA[silence command for a bot]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=45576#p45576"><![CDATA[
Not tested... checks for 5 msg, notice, ctcp in 10 seconds and sends silence for 2 minutes. Change values to your preference.<br><div class="codebox"><p>Code: </p><pre><code>bind notc - * add1bind msgm - * add1bind ctcp - * add1bind ctcr - * add1set counter_val 0set counter_time 0proc add1 {args} {  global counter_val counter_time in_silence  if {[expr [clock seconds] - $counter_time] &gt; 10} {    set counter_time [clock seconds]    set counter_val 0  }  incr counter_val  if {$counter_val &gt; 5 &amp;&amp; ![info exists in_silence]} {    set in_silence 1    putquick "SILENCE +*!*@*" -next    utimer 120 undo_silence  }  return 0}proc undo_silence {} {  global counter_time in_silence  putquick "SILENCE -*!*@*"  set counter_time 0  unset in_silence}</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8">stdragon</a> — Wed Jan 19, 2005 11:21 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[mm]]></name></author>
		<updated>2005-01-19T22:15:31-04:00</updated>

		<published>2005-01-19T22:15:31-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=45575#p45575</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=45575#p45575"/>
		<title type="html"><![CDATA[silence command for a bot]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=45575#p45575"><![CDATA[
Hi,  can anyone help me please? or even this is possible to do it?<br><br>thanks<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5145">mm</a> — Wed Jan 19, 2005 10:15 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[mm]]></name></author>
		<updated>2005-01-15T15:29:43-04:00</updated>

		<published>2005-01-15T15:29:43-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=45418#p45418</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=45418#p45418"/>
		<title type="html"><![CDATA[silence command for a bot]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=45418#p45418"><![CDATA[
Well, i am using netbots 4.09, sentinel is excellant but when they use over 100 different ip's and do "msg flood/ctcp flood, notice flood" to the bot then bot's get disconnect with "Max sendQ exceeded" message then i think /silence is the only solution. I have tried every possible thing before posting here and i have tested /silence using .dump command that works perfectly. so that's why i have requested. oh set ctcp-mode 1 setting is there.<br><br><br>thank you .<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5145">mm</a> — Sat Jan 15, 2005 3:29 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[caesar]]></name></author>
		<updated>2005-01-15T15:20:23-04:00</updated>

		<published>2005-01-15T15:20:23-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=45417#p45417</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=45417#p45417"/>
		<title type="html"><![CDATA[silence command for a bot]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=45417#p45417"><![CDATA[
Don't know what other scripts you may have loaded.. as for ctcps just "set ctcp-mode 1" in your .conf file. If is a flood on the channel then lock it with what modes the network you sit on supports or use the default ones (+mi) to lock it.<br><br>slennox's sentinel.tcl script should do fine agains a lot of types of flood..<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=187">caesar</a> — Sat Jan 15, 2005 3:20 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[mm]]></name></author>
		<updated>2005-01-15T15:08:43-04:00</updated>

		<published>2005-01-15T15:08:43-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=45416#p45416</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=45416#p45416"/>
		<title type="html"><![CDATA[silence command for a bot]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=45416#p45416"><![CDATA[
Hi caesar, Sorry about that, i thought this is more scripting question so i've posted here, oh +d mode doesn't block /msg, /ctcp, /notice..its only deaf to channel chat.<br><br><br>my concern is bots.<br>bot's are getting d/c because flooders are using over 100 different IP's and flooding bots with "msg flood", "ctcp flood" , and notice flood. and then they use channel flood with join-part floods. only silence commands blocks private floods.<br><br>i know you guys are the best so this script will be very usefull for many many users on different networks since mostly ircd support silence command.<br>thanks again<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5145">mm</a> — Sat Jan 15, 2005 3:08 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[caesar]]></name></author>
		<updated>2005-01-15T14:52:13-04:00</updated>

		<published>2005-01-15T14:52:13-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=45415#p45415</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=45415#p45415"/>
		<title type="html"><![CDATA[silence command for a bot]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=45415#p45415"><![CDATA[
Stop posting the same <a href="http://forum.egghelp.org/viewtopic.php?t=8986" class="postlink">question</a> (true, with different words) on different sections. Just wait for an answer forum other users.<br><br>On Undernet I know there is a usermode +d (deaf mode) where you won't see any channel text at all. Check <a href="http://www.user-com.undernet.org/documents/uprimer.php#3.1" class="postlink">this</a> page for more info.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=187">caesar</a> — Sat Jan 15, 2005 2:52 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[mm]]></name></author>
		<updated>2005-01-15T13:30:30-04:00</updated>

		<published>2005-01-15T13:30:30-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=45413#p45413</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=45413#p45413"/>
		<title type="html"><![CDATA[silence command for a bot]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=45413#p45413"><![CDATA[
Hi, I think a lot of people are looking for this script, because bot gets d/c with "Max sendQ exceeded" msg when some idiot try to flood the bot with "MSG/NOTICE/CTCP FLOODS" with 100+ different ip', and the same time use join-part floods as well. Sentinel is very helpfull but i heard only Silence command can help more to block these floods since mostly IRCD support this command,  I'll apprecite if any coder has some time for this? if some idiot send 5+ msgs/CTCPS/NOTICES in LESS than 10 seconds, set "silence +*!*@*" and then remove "silence -*!*@*" after few mintues. <br><br>thanks<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5145">mm</a> — Sat Jan 15, 2005 1:30 pm</p><hr />
]]></content>
	</entry>
	</feed>
