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

	<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>2007-08-23T19:23:40-04:00</updated>

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

		<entry>
		<author><name><![CDATA[Alchera]]></name></author>
		<updated>2007-08-23T19:23:40-04:00</updated>

		<published>2007-08-23T19:23:40-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=75463#p75463</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=75463#p75463"/>
		<title type="html"><![CDATA[Extension for SSL DCC Chat between Eggdrop &amp; psyBNC]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=75463#p75463"><![CDATA[
<blockquote class="uncited"><div>... and about telling people to learn to do it yourself then why the [censored] does this forum exist ...</div></blockquote>These forums exist as a <em class="text-italics">learning</em> and information tool. There is an expectation that a poster will make some effort in solving his/her own problem with assistance (if any) provided.<br><br><a href="http://forum.egghelp.org/viewtopic.php?t=6272" class="postlink">Things to do before posting..</a><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3646">Alchera</a> — Thu Aug 23, 2007 7:23 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[sKy]]></name></author>
		<updated>2007-08-23T08:21:40-04:00</updated>

		<published>2007-08-23T08:21:40-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=75453#p75453</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=75453#p75453"/>
		<title type="html"><![CDATA[Extension for SSL DCC Chat between Eggdrop &amp; psyBNC]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=75453#p75453"><![CDATA[
You started to talk about illegal issues in this thread.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=6101">sKy</a> — Thu Aug 23, 2007 8:21 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[BoaR]]></name></author>
		<updated>2007-07-21T17:39:26-04:00</updated>

		<published>2007-07-21T17:39:26-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=74638#p74638</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=74638#p74638"/>
		<title type="html"><![CDATA[Extension for SSL DCC Chat between Eggdrop &amp; psyBNC]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=74638#p74638"><![CDATA[
diff not working on patching...<br><div class="codebox"><p>Code: </p><pre><code>$ patch -p0 &lt; schat.diffcan't find file to patch at input line 1Perhaps you used the wrong -p or --strip option?File to patch:</code></pre></div>i dont understand why people get really hitchy when talking about securing bots... every time people jump to the conclusion that one wants to secure a bot because he/she is doing something illegal, [censored] ya!... and about telling people to learn to do it yourself then why the [censored] does this forum exist if you dont want to help about issues like this one.. securing a bot should of been the main feature in the eggdrop in the first place, then rest should of had followed/.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=9166">BoaR</a> — Sat Jul 21, 2007 5:39 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[sKy]]></name></author>
		<updated>2007-07-04T18:48:00-04:00</updated>

		<published>2007-07-04T18:48:00-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=74179#p74179</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=74179#p74179"/>
		<title type="html"><![CDATA[Extension for SSL DCC Chat between Eggdrop &amp; psyBNC]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=74179#p74179"><![CDATA[
If the server supports ssl then using it is fine. Same for bouncer. This is a nice little security bonus you should catch if you can.<br><br>But the irc server (also ircops) could still read your messages thought if you don`t use an end to end encryption.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=6101">sKy</a> — Wed Jul 04, 2007 6:48 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[DragnLord]]></name></author>
		<updated>2007-07-04T10:46:37-04:00</updated>

		<published>2007-07-04T10:46:37-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=74165#p74165</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=74165#p74165"/>
		<title type="html"><![CDATA[Extension for SSL DCC Chat between Eggdrop &amp; psyBNC]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=74165#p74165"><![CDATA[
Some bouncers support SSL encryption between bouncer and client.<br>I routinely use SSL for my psyBNC with my kvirc and mIRC clients.<br><br>Having worked for certain government organizations, I prefer to have most of my private communications encrypted. <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=4461">DragnLord</a> — Wed Jul 04, 2007 10:46 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[sKy]]></name></author>
		<updated>2007-07-03T21:23:52-04:00</updated>

		<published>2007-07-03T21:23:52-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=74150#p74150</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=74150#p74150"/>
		<title type="html"><![CDATA[Extension for SSL DCC Chat between Eggdrop &amp; psyBNC]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=74150#p74150"><![CDATA[
I also think now eggdrop &lt;--ssl--&gt; bouncer is not very effective. Only helpful if you run the bouncer on your own machine and this wouldn`t be much point. Because otherwise it would be still bouncer&lt;--unencrypted--&gt; your client.<br><br>Better would be end to end encryption, eggdrop &lt;--ssl--&gt; client. I also think ssl isn`t made for that and it`s to complicated to implement it correctly between this two points. Ssl works normally with a web of trust, or you would need to use a self singed certificate. You would also need to check the integrity of this certificate. There is a tclssl implementation but I think for eggdrop &lt;--&gt; user a symmetric encryptions would be fine enough, everything else would be overkill. But I am not a cryptography expert. Don`t think any crypto freaks nor many normal users are interested in that. <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=6101">sKy</a> — Tue Jul 03, 2007 9:23 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[nml375]]></name></author>
		<updated>2007-06-28T10:19:31-04:00</updated>

		<published>2007-06-28T10:19:31-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=73968#p73968</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=73968#p73968"/>
		<title type="html"><![CDATA[Extension for SSL DCC Chat between Eggdrop &amp; psyBNC]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=73968#p73968"><![CDATA[
A globalspace variable named ctcp-client-ssl. Intended to be used similar to the module in the first post.<br><br>Did'nt bother repeating that, as I expected ppl to read through all posts, aswell as the comment below my code also showing a hint.<br>Mainly an illustration on how you could write that module in tcl (for those who don't like compiling additional modules).<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8052">nml375</a> — Thu Jun 28, 2007 10:19 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[sKy]]></name></author>
		<updated>2007-06-28T08:49:52-04:00</updated>

		<published>2007-06-28T08:49:52-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=73966#p73966</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=73966#p73966"/>
		<title type="html"><![CDATA[Extension for SSL DCC Chat between Eggdrop &amp; psyBNC]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=73966#p73966"><![CDATA[
What is $::ctcp-client-ssl?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=6101">sKy</a> — Thu Jun 28, 2007 8:49 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[nml375]]></name></author>
		<updated>2007-06-20T16:05:38-04:00</updated>

		<published>2007-06-20T16:05:38-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=73724#p73724</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=73724#p73724"/>
		<title type="html"><![CDATA[Extension for SSL DCC Chat between Eggdrop &amp; psyBNC]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=73724#p73724"><![CDATA[
Actually, would'nt be much to recompile, since it's a single module, and no other files with dependancies on it. As long as you've got the buildtree lying around somewhere, it'd be a swift make..<br><br>Ofcourse, it could be implemented as a tcl-script aswell:<div class="codebox"><p>Code: </p><pre><code>bind ctcp - "SCHAT" ctcp:schatproc ctcp:schat {nick host hand dest key text} { if {[matchattr +xp| $hand] || ([matchattr +o $hand] &amp;&amp; !$::require-p)} {  if {[passwdok $hand ""]} {   putserv "NOTICE $nick :\001ERROR no password set\001"   return 0  }  putserv "PRIVMSG $nick :\001DCC CHAT chat [myip] $::ctcp-client-ssl\001 }}</code></pre></div>Could probably be improved with a check wether ctcp-client-ssl is actually set or not, aswell with possible use of nat-ip setting...<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8052">nml375</a> — Wed Jun 20, 2007 4:05 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[naaina]]></name></author>
		<updated>2007-06-20T14:23:32-04:00</updated>

		<published>2007-06-20T14:23:32-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=73721#p73721</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=73721#p73721"/>
		<title type="html"><![CDATA[Extension for SSL DCC Chat between Eggdrop &amp; psyBNC]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=73721#p73721"><![CDATA[
Of course you are right.<br><br>I was kind of stupid when I've written this because I just need to answer with<br><div class="codebox"><p>Code: </p><pre><code>dprintf(DP_SERVER, "PRIVMSG %s :\001DCC CHAT chat %lu %u\001\n",                 nick, iptolong(natip[0] ? (IP) inet_addr(natip) : getmyip()),                 port);  </code></pre></div>and I think this is writable in TCL too. But I won't recode this completely now.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8918">naaina</a> — Wed Jun 20, 2007 2:23 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[sKy]]></name></author>
		<updated>2007-06-20T13:56:15-04:00</updated>

		<published>2007-06-20T13:56:15-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=73720#p73720</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=73720#p73720"/>
		<title type="html"><![CDATA[Extension for SSL DCC Chat between Eggdrop &amp; psyBNC]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=73720#p73720"><![CDATA[
Interesting!<br><br>But I don`t really like the way to recompile my bot since this is quite complicated and takes a while.<br><br>What about implementing this on another way? The eggdrop plugin as normal script in pure tcl + a client written in some platform independent language (tcl or C++).<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=6101">sKy</a> — Wed Jun 20, 2007 1:56 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[naaina]]></name></author>
		<updated>2007-04-17T18:20:59-04:00</updated>

		<published>2007-04-17T18:20:59-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=72103#p72103</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=72103#p72103"/>
		<title type="html"><![CDATA[Extension for SSL DCC Chat between Eggdrop &amp; psyBNC]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=72103#p72103"><![CDATA[
Hi guys,<br><br>I don't know if someone is interested in such a thing, but I needed to encrypt the communication between IRC bouncer and Bot partyline, but in an easy and fast way. Instead of integrating a complex method of accepting and handling SSL-connections, I decided for stunnel, a SSL-wrapper for TCP protocols (<a href="http://www.stunnel.org" class="postlink">http://www.stunnel.org</a>).<br><br>I have extended the CTCP module of the eggdrop by a handler for CTCP "SCHAT", which will just return another connection port, which is handled by stunnel. I attached the patch for the ctcp.c (eggdrop version 1.6.18). Patch your eggdrop version with it and then you have to setup the parameter 'ctcp-client-ssl' in your eggdrop configuration:<br><div class="codebox"><p>Code: </p><pre><code>loadmodule ctcpset ctcp-client-ssl [accept-port-of-stunnel]</code></pre></div><br>The stunnel configuration should be like this:<br><div class="codebox"><p>Code: </p><pre><code>; Service-level configuration[botname]accept = [accept-port-of-stunnel]connect = [listening-port-of-your-eggdrop]</code></pre></div>You have to have pending DCCs enabled in your psyBNC (/DCCENABLE 1)<br><br>This results in the following way to build up a SSL DCC-Chat connection:<br><br>1. Client sends a CTCP "SCHAT" to the bot (/CTCP YourBot SCHAT)<br><br>2. Since the psyBNC has pendings DCCs enabled, it accepts the CTCP reply from the bot and offers the Client to answer the DCC request:<br>   <div class="codebox"><p>Code: </p><pre><code>   -&gt; [YourBot] SCHAT&lt;-psyBNC&gt; YourBot sent a DCC Chat Request. Use /DCCANSWER YourBot or /DCCANSWER S=YourBot (SSL) to establish the connection ([Bot-IP]/[accept-port-of-stunnel]).</code></pre></div>   <br>   <br>As you can see, the CTCP reply does not include the telnet port of the eggdrop - it includes the port configured by 'ctcp-client-ssl'<br><br>3. Client answers with /DCCANSWER S=YourBot and the connection is built up!<br>   <br>Congratulations!<br>   <br>Have fun with this!<br><br>naaina<br><br><strong class="text-strong">And now the diff:</strong><br><div class="codebox"><p>Code: </p><pre><code>35,36d34&lt; static int client_ssl = -1;&lt;177,210d174&lt; static int ctcp_CHATSSL(char *nick, char *uhost, char *handle, char *object,&lt;                      char *keyword, char *text)&lt; {&lt;   struct userrec *u = get_user_by_handle(userlist, handle);&lt;   int atr = u ? u-&gt;flags : 0, i;&lt;&lt;   if ((atr &amp; (USER_PARTY | USER_XFER)) || ((atr &amp; USER_OP) &amp;&amp; !require_p)) {&lt;&lt;     if (u_pass_match(u, "-")) {&lt;       simple_sprintf(ctcp_reply, "%s\001ERROR no password set\001",&lt;                      ctcp_reply);&lt;       return 1;&lt;     }&lt;&lt;     for (i = 0; i &lt; dcc_total; i++) {&lt;       if ((dcc[i].type-&gt;flags &amp; DCT_LISTEN) &amp;&amp;&lt;           (!strcmp(dcc[i].nick, "(telnet)") ||&lt;            !strcmp(dcc[i].nick, "(users)"))) {&lt;         /* Do me a favour and don't change this back to a CTCP reply,&lt;          * CTCP replies are NOTICE's this has to be a PRIVMSG&lt;          * -poptix 5/1/1997 */&lt;       int port = client_ssl;&lt;       if(port == -1) port = dcc[i].port;&lt;         dprintf(DP_SERVER, "PRIVMSG %s :\001DCC CHAT chat %lu %u\001\n",&lt;                 nick, iptolong(natip[0] ? (IP) inet_addr(natip) : getmyip()),&lt;                 port);&lt;         return 1;&lt;       }&lt;     }&lt;     simple_sprintf(ctcp_reply, "%s\001ERROR no telnet port\001", ctcp_reply);&lt;   }&lt;   return 1;&lt; }&lt;221d184&lt;   {"SCHAT",      "",   ctcp_CHATSSL,    NULL},234d196&lt;   {"ctcp-client-ssl", &amp;client_ssl},</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8918">naaina</a> — Tue Apr 17, 2007 6:20 pm</p><hr />
]]></content>
	</entry>
	</feed>
