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

	<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>2003-11-06T13:00:13-04:00</updated>

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

		<entry>
		<author><name><![CDATA[user]]></name></author>
		<updated>2003-11-06T13:00:13-04:00</updated>

		<published>2003-11-06T13:00:13-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=29618#p29618</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=29618#p29618"/>
		<title type="html"><![CDATA[DCC Chat]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=29618#p29618"><![CDATA[
<blockquote class="uncited"><div>I've tried to "dos" my bot by making numerous connections without reading the data. What happens is that the bot gets an incoming telnet connection and nothing happens any further. If there is a lot of connections the only thing I see is: "[01:17] Ident failed for hostname: No Free DCC's". And finally, when doing many connections from the same host, the bot places that host on ignore.</div></blockquote>EDIT: I was wrong about the blocking. I must have had some network problems when I did my test yesterday. Weird coincidence. However, there seems to be a limit on file size. I don't know if this limit is in eggdrop or my tcp stack's buffering of data. I was unable to test reading the data without buffering on the client side :/<br>"eof!(write) socket 10 (Broken pipe,32)" was the error message from eggdrop when trying to send this large file (~100k)<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2878">user</a> — Thu Nov 06, 2003 1:00 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[faisal]]></name></author>
		<updated>2003-11-06T03:50:02-04:00</updated>

		<published>2003-11-06T03:50:02-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=29581#p29581</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=29581#p29581"/>
		<title type="html"><![CDATA[DCC Chat]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=29581#p29581"><![CDATA[
Well, okay.. sure... though the script recommended by user is more complicated (i dont really understand the codings). i'll try loading it into my bot and update you guys with the outcome. <br><br>Thanks! <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_biggrin.gif" width="15" height="15" alt=":D" title="Very Happy"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=4080">faisal</a> — Thu Nov 06, 2003 3:50 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[egghead]]></name></author>
		<updated>2003-11-06T03:34:43-04:00</updated>

		<published>2003-11-06T03:34:43-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=29580#p29580</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=29580#p29580"/>
		<title type="html"><![CDATA[DCC Chat]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=29580#p29580"><![CDATA[
<blockquote class="uncited"><div>I see... so is there any other alternative?</div></blockquote>try the script by user?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=282">egghead</a> — Thu Nov 06, 2003 3:34 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[faisal]]></name></author>
		<updated>2003-11-06T03:28:33-04:00</updated>

		<published>2003-11-06T03:28:33-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=29579#p29579</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=29579#p29579"/>
		<title type="html"><![CDATA[DCC Chat]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=29579#p29579"><![CDATA[
I see... so is there any other alternative?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=4080">faisal</a> — Thu Nov 06, 2003 3:28 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[egghead]]></name></author>
		<updated>2003-11-06T02:49:57-04:00</updated>

		<published>2003-11-06T02:49:57-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=29575#p29575</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=29575#p29575"/>
		<title type="html"><![CDATA[DCC Chat]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=29575#p29575"><![CDATA[
<blockquote class="uncited"><div>I've tried but it doesnt work. The bot is able to trigger the !rules, but somehow it does not create a DCC Chat or execute the rules file. i've checked the "text-path" as mention and its path directory is "text/". So i uploaded the rules.txt into that folder. But still, the bot wont execute the rules file. Any idea what's causing the problem? or is there anyting else that i've forgotten to edit?</div></blockquote>Like user suggested, you have probably "protect-telnet" set to 1 which will disallow connections from unknown hosts.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=282">egghead</a> — Thu Nov 06, 2003 2:49 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[faisal]]></name></author>
		<updated>2003-11-06T02:33:15-04:00</updated>

		<published>2003-11-06T02:33:15-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=29573#p29573</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=29573#p29573"/>
		<title type="html"><![CDATA[DCC Chat]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=29573#p29573"><![CDATA[
I've tried but it doesnt work. The bot is able to trigger the !rules, but somehow it does not create a DCC Chat or execute the rules file. i've checked the "text-path" as mention and its path directory is "text/". So i uploaded the rules.txt into that folder. But still, the bot wont execute the rules file. Any idea what's causing the problem? or is there anyting else that i've forgotten to edit?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=4080">faisal</a> — Thu Nov 06, 2003 2:33 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[egghead]]></name></author>
		<updated>2003-11-06T02:29:33-04:00</updated>

		<published>2003-11-06T02:29:33-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=29572#p29572</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=29572#p29572"/>
		<title type="html"><![CDATA[DCC Chat]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=29572#p29572"><![CDATA[
<blockquote class="uncited"><div>And also, since dccdumpfile is not async, people could use this port to dos your bot by connecting and just keeping the connection without reading any data.</div></blockquote>I've tried to "dos" my bot by making numerous connections without reading the data. What happens is that the bot gets an incoming telnet connection and nothing happens any further. If there is a lot of connections the only thing I see is: "[01:17] Ident failed for hostname: No Free DCC's". And finally, when doing many connections from the same host, the bot places that host on ignore.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=282">egghead</a> — Thu Nov 06, 2003 2:29 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[user]]></name></author>
		<updated>2003-11-05T15:49:35-04:00</updated>

		<published>2003-11-05T15:49:35-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=29564#p29564</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=29564#p29564"/>
		<title type="html"><![CDATA[DCC Chat]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=29564#p29564"><![CDATA[
<blockquote class="uncited"><div>If you want to use eggdrops internal "listen" mechanism ...</div></blockquote>Keep in mind that your protect-telnet setting could cause people to be refused when connecting.<br>And also, since dccdumpfile is not async, people could use this port to dos your bot by connecting and just keeping the connection without reading any data.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2878">user</a> — Wed Nov 05, 2003 3:49 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[faisal]]></name></author>
		<updated>2003-11-05T13:44:22-04:00</updated>

		<published>2003-11-05T13:44:22-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=29557#p29557</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=29557#p29557"/>
		<title type="html"><![CDATA[DCC Chat]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=29557#p29557"><![CDATA[
Okay... i'll give it a try then...<br><br>Thanks! <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_biggrin.gif" width="15" height="15" alt=":D" title="Very Happy"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=4080">faisal</a> — Wed Nov 05, 2003 1:44 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[egghead]]></name></author>
		<updated>2003-11-05T04:31:02-04:00</updated>

		<published>2003-11-05T04:31:02-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=29534#p29534</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=29534#p29534"/>
		<title type="html"><![CDATA[DCC Chat]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=29534#p29534"><![CDATA[
Heh, since my name is mentioned here ... <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"> Like user said, the two scripts do completely different things. If you want to use eggdrops internal "listen" mechanism, you could base the script on e.g.<br><a href="http://members.fortunecity.com/eggheadtcl/menu.tcl.txt" class="postlink">http://members.fortunecity.com/eggheadtcl/menu.tcl.txt</a><br><br>Below you will find the basic structure which serves a file from the text directory (as defined by the text-path variable in eggdrops config file). Of course this script should be further fancied up.<br><br>A nice plus is that by using the dccdumpfile mechanism, you can use text substitutions as described in doc/text-substitutions.doc.<br><div class="codebox"><p>Code: </p><pre><code>#---------------------------------------------------------------------# open listen port#---------------------------------------------------------------------set dccrulesport 37000listen $dccrulesport script presentrules#---------------------------------------------------------------------# upon a public !rules tell the user the ip/port combination#---------------------------------------------------------------------bind pub - !rules pub:rulesproc pub:rules { nick uhost hand chan text } {   global dccrulesport   putlog "Request for rules by $nick (aka $hand)"   set line "\001DCC CHAT chat [myip] $dccrulesport\001"   putserv "PRIVMSG $nick :$line"}#---------------------------------------------------------------------# dump rules through DCC#---------------------------------------------------------------------proc presentrules { idx } {   # upon a successfull connection:   # present the rules from the text directory   # check the setting of the variable "text-path"   dccdumpfile $idx rules.txt   # ... and terminate the connection   killdcc $idx   return 1}</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=282">egghead</a> — Wed Nov 05, 2003 4:31 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[CrazyCat]]></name></author>
		<updated>2003-11-04T12:36:26-04:00</updated>

		<published>2003-11-04T12:36:26-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=29487#p29487</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=29487#p29487"/>
		<title type="html"><![CDATA[DCC Chat]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=29487#p29487"><![CDATA[
lot of smileys in my former post, isn't it?<br>no one in this, average is good...<br>Sorry<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=691">CrazyCat</a> — Tue Nov 04, 2003 12:36 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[CrazyCat]]></name></author>
		<updated>2003-11-04T12:35:32-04:00</updated>

		<published>2003-11-04T12:35:32-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=29486#p29486</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=29486#p29486"/>
		<title type="html"><![CDATA[DCC Chat]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=29486#p29486"><![CDATA[
<blockquote class="uncited"><div>r is the default mode and doesn't need to be specified.</div></blockquote>ok <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"><br>but if I prefer to specify, let me specify <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile">)<br>more seriously, I always specify, 'cuz I never comment my scripts when developping, so it's easiest to understand <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"><br>But I'll remember this <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=691">CrazyCat</a> — Tue Nov 04, 2003 12:35 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[user]]></name></author>
		<updated>2003-11-04T12:28:42-04:00</updated>

		<published>2003-11-04T12:28:42-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=29484#p29484</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=29484#p29484"/>
		<title type="html"><![CDATA[DCC Chat]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=29484#p29484"><![CDATA[
<blockquote class="uncited"><div>Wow! The code is much more complicated than Egghead's TCL example script introduced by Rusher (thanks by the way).<br>As for the code, I dont know which line to replace so that the directory of the rules file can be found and executed by the bot.</div></blockquote>The two scripts do entirely different things. Egghead's code "fakes" a '/ctcp &lt;bot&gt; CHAT' making the bot initiate a telnet session with the user via dcc chat. (the user must be added in the bot)<br>You don't need to care about the code inside the namespace...all you need to change (if anything) is the bind and that last proc.<br><blockquote class="uncited"><div>But I think something is missing:<div class="codebox"><p>Code: </p><pre><code>set f [open $fn FLAG]</code></pre></div> with FLAG like r (read) or w (write) or a (append)</div></blockquote>r is the default mode and doesn't need to be specified.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2878">user</a> — Tue Nov 04, 2003 12:28 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[CrazyCat]]></name></author>
		<updated>2003-11-04T12:21:46-04:00</updated>

		<published>2003-11-04T12:21:46-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=29481#p29481</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=29481#p29481"/>
		<title type="html"><![CDATA[DCC Chat]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=29481#p29481"><![CDATA[
<blockquote class="uncited"><div><div class="codebox"><p>Code: </p><pre><code>set f [open $fn]</code></pre></div>I understood that $n = the user, but what is $fn? is the rules file?</div></blockquote>If you see set aaa [open $bbb], you are sure that bbb is a filename.<br>But I think something is missing:<div class="codebox"><p>Code: </p><pre><code>set f [open $fn FLAG]</code></pre></div> with FLAG like r (read) or w (write) or a (append)<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=691">CrazyCat</a> — Tue Nov 04, 2003 12:21 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[faisal]]></name></author>
		<updated>2003-11-04T12:12:09-04:00</updated>

		<published>2003-11-04T12:12:09-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=29480#p29480</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=29480#p29480"/>
		<title type="html"><![CDATA[DCC Chat]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=29480#p29480"><![CDATA[
Wow! The code is much more complicated than Egghead's TCL example script introduced by Rusher (thanks by the way).<br>As for the code, I dont know which line to replace so that the directory of the rules file can be found and executed by the bot.<br><br><blockquote class="uncited"><div>   proc chatfile {n fn} { <br>      variable v <br>      set f [open $fn] <br>      set t [after $v(timeout) [list [namespace current]::timeout $f]] <br>      set s [socket -server [list [namespace current]::start $f $t] -myaddr [myip] 0] <br>      set p [lindex [fconfigure $s -sockname] 2] <br>      set v($f) [list $s $n $fn] <br>      putserv "PRIVMSG $n :\001DCC CHAT chat [myip] $p\001" <br>      #putlog "Sending $fn to $n" <br>   } <br>   </div></blockquote>I understood that $n = the user, but what is $fn? is the rules file?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=4080">faisal</a> — Tue Nov 04, 2003 12:12 pm</p><hr />
]]></content>
	</entry>
	</feed>
