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

	<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>2004-04-14T02:39:11-04:00</updated>

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

		<entry>
		<author><name><![CDATA[TimeLord]]></name></author>
		<updated>2004-04-14T02:39:11-04:00</updated>

		<published>2004-04-14T02:39:11-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=35505#p35505</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=35505#p35505"/>
		<title type="html"><![CDATA[Sending string with multiple line across botnet]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=35505#p35505"><![CDATA[
Ok, script is finalized, please teach me how to simplify it <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":-)" title="Smile"> Objective is get file transfers curently on bot on another network and report it via linked bot to main network.<div class="codebox"><p>Code: </p><pre><code>proc rcv_cmd {from comm com} {global linkbot dccstat          if {[lindex $com 0] == "STATUS" } {        set dccstat [dcclist SEND]                if {$dccstat == ""} {                putbot $linkbot "REL DCC status: Nothing in transfer queue"                return 0                }                foreach conn $dccstat {                regsub -all "\}|\{|send|SEND"  $conn "" conn                regsub -all "\n"  $conn {} connset from [lindex $conn 1]set file [lindex $conn 5]set progres [split [lindex $conn 3] / ]regsub -all -- {[^ A-Za-z0-9]} [lindex $progres 0] "" downset all [expr [lindex $progres 1]/1048576]set down [expr $down/1048576]set progres "[expr ($down *100) / $all]%"putbot $linkbot "REL DCC status: $from:\0034 $file $progres ($down MB/$all MB)"                  }        }} </code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2953">TimeLord</a> — Wed Apr 14, 2004 2:39 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Papillon]]></name></author>
		<updated>2004-04-13T10:58:00-04:00</updated>

		<published>2004-04-13T10:58:00-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=35492#p35492</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=35492#p35492"/>
		<title type="html"><![CDATA[Sending string with multiple line across botnet]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=35492#p35492"><![CDATA[
You need to get the list/string buisness right!<br><blockquote class="uncited"><div>  dcclist ?type?<br>    <strong class="text-strong">Returns: a list of active connections, each item in the list is a<br>      sublist containing six elements:<br>        {&lt;idx&gt; &lt;handle&gt; &lt;hostname&gt; &lt;type&gt; {&lt;other&gt;} &lt;timestamp&gt;}.</strong><br><br>      The types are: chat, bot, files, file_receiving, file_sending,<br>      file_send_pending, script, socket (these are connections that have<br>      not yet been put under 'control'), telnet, and server. The timestamp<br>      is in unixtime format.<br>    Module: core</div></blockquote><div class="codebox"><p>Code: </p><pre><code>proc dcc:sends {} {   set dccsend [dcclist SEND]  foreach send $dccsend {     putlog "[join $send]"   } }</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=852">Papillon</a> — Tue Apr 13, 2004 10:58 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[TimeLord]]></name></author>
		<updated>2004-04-13T09:33:46-04:00</updated>

		<published>2004-04-13T09:33:46-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=35491#p35491</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=35491#p35491"/>
		<title type="html"><![CDATA[Sending string with multiple line across botnet]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=35491#p35491"><![CDATA[
<blockquote class="uncited"><div>I <strong class="text-strong">think</strong> you can remove the "/" in "(,)".<br>try:<div class="codebox"><p>Code: </p><pre><code>regsub -all "(" $conn "" conn regsub -all ")" $conn "" conn</code></pre></div><img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_razz.gif" width="15" height="15" alt=":P" title="Razz"></div></blockquote>same error :<br>Tcl error [rcv_cmd]: couldn't compile regular expression pattern: parentheses () not balanced<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2953">TimeLord</a> — Tue Apr 13, 2004 9:33 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Xpert]]></name></author>
		<updated>2004-04-13T09:25:15-04:00</updated>

		<published>2004-04-13T09:25:15-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=35490#p35490</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=35490#p35490"/>
		<title type="html"><![CDATA[Sending string with multiple line across botnet]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=35490#p35490"><![CDATA[
I <strong class="text-strong">think</strong> you can remove the "/" in "(,)".<br>try:<div class="codebox"><p>Code: </p><pre><code>regsub -all "(" $conn "" conn regsub -all ")" $conn "" conn</code></pre></div><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=4667">Xpert</a> — Tue Apr 13, 2004 9:25 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[TimeLord]]></name></author>
		<updated>2004-04-13T09:03:36-04:00</updated>

		<published>2004-04-13T09:03:36-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=35489#p35489</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=35489#p35489"/>
		<title type="html"><![CDATA[Sending string with multiple line across botnet]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=35489#p35489"><![CDATA[
yup, i just realized that <div class="codebox"><p>Code: </p><pre><code>regsub -all "\}|\{|send|SEND"  $conn "" conn </code></pre></div>workin` for me, but i can`t remove ( ) parentheses <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_sad.gif" width="15" height="15" alt=":-(" title="Sad"> in one line<br><div class="codebox"><p>Code: </p><pre><code>regsub -all "\}|\{|send|SEND|\(|\)"  $conn "" conn </code></pre></div>won`t work<br><br>if im usin` multiple line <div class="codebox"><p>Code: </p><pre><code>                regsub -all "\(" $conn "" conn                regsub -all "\)" $conn "" conn     </code></pre></div>                       <br>then:<br>Tcl error [rcv_cmd]: couldn't compile regular expression pattern: parentheses () not balanced<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2953">TimeLord</a> — Tue Apr 13, 2004 9:03 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Xpert]]></name></author>
		<updated>2004-04-13T08:40:18-04:00</updated>

		<published>2004-04-13T08:40:18-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=35488#p35488</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=35488#p35488"/>
		<title type="html"><![CDATA[Sending string with multiple line across botnet]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=35488#p35488"><![CDATA[
To remove the "{,}" you should use the <a href="http://Tcl.Tk/man/tcl8.5/TclCmd/regsub.htm" class="postlink">regsub</a> command.<blockquote class="uncited"><div>regsub -all "\{" $dccsend "" dccsend<br>regsub -all "\}" $dccsend "" dccsend</div></blockquote>Your code should be like that:<div class="codebox"><p>Code: </p><pre><code>proc dcc:sends {} {   set dccsend [join [list [dcclist SEND]]]   set send2 ""  regsub -all "\{" $dccsend "" dccsend  regsub -all "\}" $dccsend "" dccsend  foreach send $dccsend {     append send2 "$send"   }   putlog "$send2" }</code></pre></div><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=4667">Xpert</a> — Tue Apr 13, 2004 8:40 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[TimeLord]]></name></author>
		<updated>2004-04-13T03:45:24-04:00</updated>

		<published>2004-04-13T03:45:24-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=35479#p35479</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=35479#p35479"/>
		<title type="html"><![CDATA[Sending string with multiple line across botnet]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=35479#p35479"><![CDATA[
Thanx very much. Now im thinkin` about how to remove "{}" characters from this variable and then send only botname, filename and progress.<br><br>output from dcclist command is string or list ???<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2953">TimeLord</a> — Tue Apr 13, 2004 3:45 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Xpert]]></name></author>
		<updated>2004-04-13T03:31:55-04:00</updated>

		<published>2004-04-13T03:31:55-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=35477#p35477</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=35477#p35477"/>
		<title type="html"><![CDATA[Sending string with multiple line across botnet]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=35477#p35477"><![CDATA[
use the 'foreach' command:<div class="codebox"><p>Code: </p><pre><code>proc dcc:sends {} {  set dccsend [join [list [dcclist SEND]]]  set send2 ""  foreach send $dccsend {    append send2 "$send"  }  putlog "$send2"}</code></pre></div>Should work, but not tested <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=4667">Xpert</a> — Tue Apr 13, 2004 3:31 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[TimeLord]]></name></author>
		<updated>2004-04-13T02:31:00-04:00</updated>

		<published>2004-04-13T02:31:00-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=35476#p35476</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=35476#p35476"/>
		<title type="html"><![CDATA[Sending string with multiple line across botnet]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=35476#p35476"><![CDATA[
Hello, i need to send message to another bot using "putbot". I need to include variable $dccsend, but <span style="text-decoration:underline">only first line </span>going out. Here is my last try:<div class="codebox"><p>Code: </p><pre><code>set dccsend [join [list [dcclist SEND]]]</code></pre></div>common output from this comand is like:<br>Tcl: {8 {BOTSNAME} <a href="mailto:SYS@268AFA0.com">SYS@268AFA0.com</a> SEND {send  (361945012)/734447616<br>Tcl:     Filename: file1.zip<br>Tcl: } 1081837810}<br><br>How to send all 3 lines to another bot please ?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2953">TimeLord</a> — Tue Apr 13, 2004 2:31 am</p><hr />
]]></content>
	</entry>
	</feed>
