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

	<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-04-21T17:58:38-04:00</updated>

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

		<entry>
		<author><name><![CDATA[Sir_Fz]]></name></author>
		<updated>2005-04-21T17:58:38-04:00</updated>

		<published>2005-04-21T17:58:38-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=48421#p48421</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=48421#p48421"/>
		<title type="html"><![CDATA[Problem with Mass Join Clone Kicker Script.]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=48421#p48421"><![CDATA[
If you just use putquick "kick ...." then ofcourse the bot will only kick the last joining nick since the code triggered on him (clone count became &gt; than it should be). Thus, if you lappend the nicks to an array ($host:$chan) as the counter's, you can simply kick all the nicks in this array when the offence is reached.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3085">Sir_Fz</a> — Thu Apr 21, 2005 5:58 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[sKy]]></name></author>
		<updated>2005-04-21T11:50:12-04:00</updated>

		<published>2005-04-21T11:50:12-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=48414#p48414</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=48414#p48414"/>
		<title type="html"><![CDATA[Problem with Mass Join Clone Kicker Script.]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=48414#p48414"><![CDATA[
Please tell me exact what the script should do.<br><br>You want to remove clones on channel which just sitting on (and join slow before). ? I think no.<br><br>You want to ban a user which join in short time some clones from his ip in your channel?<br>Example:<blockquote class="uncited"><div>cYpwOo_ (~<a href="mailto:chatzilla@13.104.99-84.rev.gaoland.net">chatzilla@13.104.99-84.rev.gaoland.net</a>) has joined #channel<br>cYpwOo_ (~<a href="mailto:chatzilla@13.104.99-84.rev.gaoland.net">chatzilla@13.104.99-84.rev.gaoland.net</a>) has joined #channel<br>cYpwOo_ (~<a href="mailto:chatzilla@13.104.99-84.rev.gaoland.net">chatzilla@13.104.99-84.rev.gaoland.net</a>) has joined #channel<br>....</div></blockquote>Or you want ban flooders which join with some hosts from same subnet?<br>Example:<blockquote class="uncited"><div>cYpwOo_ (~<a href="mailto:chatzilla@13.104.99-84.rev.gaoland.net">chatzilla@13.104.99-84.rev.gaoland.net</a>) has joined #channel<br>cYpwOo1 (~<a href="mailto:chatzilla@13.104.99-85.rev.gaoland.net">chatzilla@13.104.99-85.rev.gaoland.net</a>) has joined #channel<br>cYpwOo2 (~<a href="mailto:chatzilla@13.104.99-86.rev.gaoland.net">chatzilla@13.104.99-86.rev.gaoland.net</a>) has joined #channel</div></blockquote>Or for join/part/quit flood?<br><br>I can`t fix the bug (because i code in another style) but i will try to make a new script.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=6101">sKy</a> — Thu Apr 21, 2005 11:50 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[awyeah]]></name></author>
		<updated>2005-04-21T10:00:26-04:00</updated>

		<published>2005-04-21T10:00:26-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=48405#p48405</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=48405#p48405"/>
		<title type="html"><![CDATA[Problem with Mass Join Clone Kicker Script.]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=48405#p48405"><![CDATA[
Nucleus:<br>Not really much, there are 2-3 ways of detecting clones. One if anyone joins scan the chan userlist for and if more than your defined number of people match that mask kick all of them out -- fairly easy I say.<br><br>The other one is, mass joins if particular number of hosts join within or less than the time peroid in seconds you have defined. I have reduced kick messages, my bot is mostly slow, since I have lots of other tcls in progress also with it. The script pasted above does catch on join flooders.<br><br>However these bots do join fast, my recommendation the smaller and well written the code is, the more efficient and faster it will execute, try to ban all ips first then kick them out delayed or later if you don't want the bot to get excess flood, and try to lock the chan immediately after you detect, then ban and kick etc.<br><br>Also try to get a shell provider with high uplink speed, for faster connectivity, so your bot reacts fast.<br><br>Sir_Fz:<br>Well it works quite good, lappend is really not needed since, we are detecting similar hosts here. Like the repeat one you did a while ago on the forum from different hosts, that one would have lappend in handy. But even if you scan the chan for the mass joining host you can easily catch all I guess, you dont really need to save all of the mass joining nicks into a list.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=4875">awyeah</a> — Thu Apr 21, 2005 10:00 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Sir_Fz]]></name></author>
		<updated>2005-04-21T09:03:56-04:00</updated>

		<published>2005-04-21T09:03:56-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=48401#p48401</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=48401#p48401"/>
		<title type="html"><![CDATA[Problem with Mass Join Clone Kicker Script.]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=48401#p48401"><![CDATA[
lappend the nicks in an array (i.e. clones($host:$chan)) then foreach nick of the array, kick them.<br><br>PS: It was me who posted this script for check if there's a volnurability in it, and user found it <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_razz.gif" width="15" height="15" alt=":P" title="Razz"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3085">Sir_Fz</a> — Thu Apr 21, 2005 9:03 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Nucleus]]></name></author>
		<updated>2005-04-21T02:06:38-04:00</updated>

		<published>2005-04-21T02:06:38-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=48386#p48386</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=48386#p48386"/>
		<title type="html"><![CDATA[Problem with Mass Join Clone Kicker Script.]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=48386#p48386"><![CDATA[
awyeah, did you find the solution to the problem? I would like to use this script.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5171">Nucleus</a> — Thu Apr 21, 2005 2:06 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[awyeah]]></name></author>
		<updated>2004-05-23T11:05:10-04:00</updated>

		<published>2004-05-23T11:05:10-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=36546#p36546</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=36546#p36546"/>
		<title type="html"><![CDATA[Problem with Mass Join Clone Kicker Script.]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=36546#p36546"><![CDATA[
Actually I don't want enforce bans on.<br><br>The bot monitors a channel exceeding<br>200-300 users and it can cause a chaos<br>using enforce bans. Like most people<br>are on from cafe's with static Ip's as well.<br><br>But anyway, OK I will try a smaller kick<br>message just to test it out. But the script<br>is okay right, It cound'nt have been better<br>especially the $list and the lappend list $user<br>section.<br><br>How if I do this,<br><div class="codebox"><p>Code: </p><pre><code>............................         channel set $chan +enforcebans         putquick "MODE $chan +b $cloneban"          timer $clone_btime "pushmode $chan -b $cloneban"         channel set $chan -enforcebans............................</code></pre></div>What do you think, would this kick out all the clones that joined in fast succession, in that period of time?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=4875">awyeah</a> — Sun May 23, 2004 11:05 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[greenbear]]></name></author>
		<updated>2004-05-23T10:57:08-04:00</updated>

		<published>2004-05-23T10:57:08-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=36545#p36545</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=36545#p36545"/>
		<title type="html"><![CDATA[Problem with Mass Join Clone Kicker Script.]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=36545#p36545"><![CDATA[
Try with a shorter kick msg, you might trigger some anti-flood setting with it being so long.<br><br>Set your bots +enforcebans<br><br>Hope this helps.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=24">greenbear</a> — Sun May 23, 2004 10:57 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[awyeah]]></name></author>
		<updated>2004-05-22T18:04:40-04:00</updated>

		<published>2004-05-22T18:04:40-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=36535#p36535</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=36535#p36535"/>
		<title type="html"><![CDATA[Problem with Mass Join Clone Kicker Script.]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=36535#p36535"><![CDATA[
Hello,<br><br>I have developed this script from algol's clonepro tcl<br>which is quite alike. He had sticky bans in it newchanban<br>which I didnt like, and I wanted to make normal user channel<br>bans.<br><br>The script executes fine, after changing the utimer variable<br>as mentioned by someone, because this script has a vulnerability<br>but it works excellent now.<br><br>The only problem I am facing is, that it doesn't kick out all the<br>clones. Here is the script.<br><br><div class="codebox"><p>Code: </p><pre><code># The channels you want this script active onset cp_chans "#eleet"# Number of *!*@host joins in how many seconds, joins:secondsset cp_j_flood 2:5# Number of *!*user@host join/part cycles in how many seconds, j/p_cycles:secondsset cp_jp_flood 2:8# Period in minutes to ban *!*@host for multiple joins or join/part floodsset clone_btime 10##### DON'T edit anything below this line unless you know what you're doing #####bind join - * clone_pro_joinbind part - * clone_pro_leavebind sign - * clone_pro_leaveproc clone_pro_join {nick uhost hand chan} {global cp_chans cp_j_flood cp_jp_flood cp_host_count cp_uh_count clone_btimeset uhost [string tolower $uhost]set host [lindex [split $uhost @] 1]set chan [string tolower $chan]set file [open $::kickno r]set tilnow "[gets $file]"catch {close $file}set totalkicks [expr $tilnow]      set cloneban "*!*@[lindex [split $uhost @] 1]"if {[lsearch -exact $cp_chans $chan] == -1} {return 0}if {![info exists cp_host_count($host:$chan)]} {set cp_host_count($host:$chan) 1} else {incr cp_host_count($host:$chan)}utimer [lindex $cp_j_flood 1] [list cp_expire cp_host_count($host:$chan)]if {$cp_host_count($host:$chan) &gt; [lindex $cp_j_flood 0]} {            if {[botisop $chan]} {      putquick "MODE $chan +b $cloneban"timer $clone_btime "pushmode $chan -b $cloneban" set mask "*!*@[lindex [split $uhost @] 1]"set list [list]   foreach user [chanlist $chan] {     if {[string equal -nocase $user $nick]} { continue }     if {[string match -nocase $mask "${nick}![getchanhost $user $chan]"]} { lappend list $user }  }   putserv "KICK $chan [join $list {,}] :0,1 Excessive Clone/Botnet Kick 12,0 - 12Detected 2*3 or more* 12clients with the 2host $cloneban 12joining in here, in 2less than 4 secs. 2Excessive Clones 12and 2Botnets 12are 2not allowed 12to 2enter this channel, 12if done so further more 2your host 12will be 2banned permanently.2 - (Kick #$totalkicks)"}    }if {![info exists cp_uh_count($uhost:$chan)]} {set cp_uh_count($uhost:$chan) 1} else {incr cp_uh_count($uhost:$chan)}utimer [lindex $cp_jp_flood 1] [list cp_expire cp_uh_count($uhost:$chan)]if {$cp_uh_count($uhost:$chan) &gt;= [expr [lindex $cp_jp_flood 0]*2]} {            if {[botisop $chan]} {      putquick "MODE $chan +b $cloneban"      putquick "KICK $chan $nick :0,1 Mass Join/Part Flood Kick 12,0 - 12Detected 2multiple 12clients in here, with the 2host $cloneban 12performing2 *more than 3* join/part cycles,12 in less than2 10 secs. 2Mass Join/Part floods 12by 2botnets 12are 2prohibited in here, 12if done so further more 212you will be 2banned permanently 12from this 2network/channel.2 - (Kick #$totalkicks)"      timer $clone_btime "pushmode $chan -b $cloneban"}}}</code></pre></div>And here, is a some testing I did with it<br><div class="codebox"><p>Code: </p><pre><code>* Joins: Woaaaaaah (goodguy@219.92.24.5)* Joins: RocketScientist (goodguy@219.92.24.5)* Joins: Shakeel- (goodguy@219.92.24.5)* adapter sets mode: +b *!*@219.92.24.5* Woaaaaaah was kicked by adapter ( Excessive Clone/Botnet Kick  - Detected *3 or more* clients with the host *!*@219.92.24.5 joining in here, in less than 4 secs. Excessive Clones and Botnets are not allowed to enter this channel, if done so further more your host will be banned permanentl)* RocketScientist was kicked by adapter ( Excessive Clone/Botnet Kick  - Detected *3 or more* clients with the host *!*@219.92.24.5 joining in here, in less than 4 secs. Excessive Clones and Botnets are not allowed to enter this channel, if done so further more your host will be banned permanentl)* awyeah sets mode: -b *!*@219.92.24.5</code></pre></div>It didn't seem to kick the, third clone joining in, which was the nick "Woaaaaah".<br><br>I've tried many output combinations with the list, and the putkick commands, but it only kicks two people, not three, I dont understand.<br><br>I've also tried changining the timer settings, from the variables, in the setting options to flexibility in seconds as well, but still not yet. It doesnt seem to kick out all the clones of the host.<br><br>Please help me.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=4875">awyeah</a> — Sat May 22, 2004 6:04 pm</p><hr />
]]></content>
	</entry>
	</feed>
