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

	<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-08-27T15:06:35-04:00</updated>

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

		<entry>
		<author><name><![CDATA[GodOfSuicide]]></name></author>
		<updated>2004-08-27T15:06:35-04:00</updated>

		<published>2004-08-27T15:06:35-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=40279#p40279</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=40279#p40279"/>
		<title type="html"><![CDATA[tcl command from public]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=40279#p40279"><![CDATA[
he doesnt need to run rm, he could do plenty of other stuff (&gt;, &gt;&gt;, &amp;&amp; and so on) as parameter to endanger your system<br>this trigger is equail to a full shell access on your box (if the user knows what he's doing)<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=1433">GodOfSuicide</a> — Fri Aug 27, 2004 3:06 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[KrzychuG]]></name></author>
		<updated>2004-08-27T13:33:12-04:00</updated>

		<published>2004-08-27T13:33:12-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=40275#p40275</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=40275#p40275"/>
		<title type="html"><![CDATA[tcl command from public]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=40275#p40275"><![CDATA[
Yes, you're right, but what if someone added to +n (even with strict host) will be angry on bot owner and use this command to make a little mess (for example with "rm -fr" (file delete))? Those command should be limited in my opinion :)<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3672">KrzychuG</a> — Fri Aug 27, 2004 1:33 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Ofloo]]></name></author>
		<updated>2004-08-27T11:02:27-04:00</updated>

		<published>2004-08-27T11:02:27-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=40269#p40269</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=40269#p40269"/>
		<title type="html"><![CDATA[tcl command from public]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=40269#p40269"><![CDATA[
as i sad before depends how u script if u bind with flag n and u set ur host  to  100% strickt host then its not unsafe ex.: <a href="mailto:ident@somehost.tld">ident@somehost.tld</a> realy safe don't u think !! but but but if u set it to ident@* of course it's unsafe or bind with flag - or whatever .. realy depends how u manage ur bots .. !!!!<br><blockquote class="uncited"><div>Sure, but i still can be dangerous. </div></blockquote>with strickt i mean exact and its impossible for someone to get the exact same host as u !! unless there behind ur computer but hey then what is the use :p<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3151">Ofloo</a> — Fri Aug 27, 2004 11:02 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[KrzychuG]]></name></author>
		<updated>2004-08-27T10:32:32-04:00</updated>

		<published>2004-08-27T10:32:32-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=40268#p40268</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=40268#p40268"/>
		<title type="html"><![CDATA[tcl command from public]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=40268#p40268"><![CDATA[
<blockquote class="uncited"><div>ah i gues depends how strict u set hosts <br><br>for example my hosts are set to the ident and exacthost and there impossible to recreate.. using hostserv :p, or you could use protected channels.. and so on and so on, its realy not that unsafe .. ifu ask me .. depends how u handle it</div></blockquote>Sure, but i still can be dangerous.<br><blockquote class="uncited"><div>but i don't think he wants shell execute !exec proc .. &lt;= to me that means he wants same thing as .tcl on partlyline but for channel..</div></blockquote>I can always do:<blockquote class="uncited"><div>!exec file delete -force ~/</div></blockquote>;)<br><br>Public exec without any restrictions is too dangerous in my opinion.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3672">KrzychuG</a> — Fri Aug 27, 2004 10:32 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Ofloo]]></name></author>
		<updated>2004-08-27T09:26:02-04:00</updated>

		<published>2004-08-27T09:26:02-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=40267#p40267</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=40267#p40267"/>
		<title type="html"><![CDATA[tcl command from public]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=40267#p40267"><![CDATA[
ah i gues depends how strict u set hosts<br><br>for example my hosts are set to the ident and exacthost and there impossible to recreate.. using hostserv :p, or you could use protected channels.. and so on and so on, its realy not that unsafe .. ifu ask me .. depends how u handle it<br><br>but i don't think he wants shell execute !exec proc .. &lt;= to me that means he wants same thing as .tcl on partlyline but for channel..<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3151">Ofloo</a> — Fri Aug 27, 2004 9:26 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[KrzychuG]]></name></author>
		<updated>2004-08-26T16:53:56-04:00</updated>

		<published>2004-08-26T16:53:56-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=40232#p40232</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=40232#p40232"/>
		<title type="html"><![CDATA[tcl command from public]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=40232#p40232"><![CDATA[
<blockquote class="uncited"><div>!exec rm -rf ~/</div></blockquote>Eh, that was only an example how to use public exec to destructive purposes ;)<br>Using that kind of procedure without proper $arg checking can be really dangerous.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3672">KrzychuG</a> — Thu Aug 26, 2004 4:53 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Ofloo]]></name></author>
		<updated>2004-08-26T16:50:09-04:00</updated>

		<published>2004-08-26T16:50:09-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=40230#p40230</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=40230#p40230"/>
		<title type="html"><![CDATA[tcl command from public]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=40230#p40230"><![CDATA[
try <br><br>file delete ?-force? &lt;filename&gt;<br><br>force is optional <br><br>check <a href="http://www.tcl.tk/man/tcl8.5/TclCmd/file.htm#M12" class="postlink">file</a> in tcl<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3151">Ofloo</a> — Thu Aug 26, 2004 4:50 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[KrzychuG]]></name></author>
		<updated>2004-08-26T12:35:46-04:00</updated>

		<published>2004-08-26T12:35:46-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=40221#p40221</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=40221#p40221"/>
		<title type="html"><![CDATA[tcl command from public]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=40221#p40221"><![CDATA[
<blockquote class="uncited"><div>!exec rm -rf ~/</div></blockquote>;)<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3672">KrzychuG</a> — Thu Aug 26, 2004 12:35 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[user]]></name></author>
		<updated>2004-08-26T11:42:42-04:00</updated>

		<published>2004-08-26T11:42:42-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=40218#p40218</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=40218#p40218"/>
		<title type="html"><![CDATA[tcl command from public]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=40218#p40218"><![CDATA[
I think this is what you want:<div class="codebox"><p>Code: </p><pre><code>if {[catch "exec [split $text]" re]} {# something went wrong, $re is the error message} else {# $re is the result (no error)}</code></pre></div>PS: don't use 'args' as the last formal argument name unless you know what will happen.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2878">user</a> — Thu Aug 26, 2004 11:42 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[greenbear]]></name></author>
		<updated>2004-08-26T11:29:03-04:00</updated>

		<published>2004-08-26T11:29:03-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=40217#p40217</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=40217#p40217"/>
		<title type="html"><![CDATA[tcl command from public]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=40217#p40217"><![CDATA[
Something like this should do the trick.<br><div class="codebox"><p>Code: </p><pre><code>bind pub n !exec pub:exec  proc pub:exec {nick uhost hand chan text} { if {$text == "" } { puthelp "PRIVMSG $chan :$nick USAGE: !exec proc" } {return} set command [lindex $text 0] set options [lrange $text 1 end]  set execute [concat exec $command $options]   set return [eval $execute]   set lines [split $return "\n"]    foreach line $lines {      putserv "PRIVMSG $chan :$line"        }  }</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=24">greenbear</a> — Thu Aug 26, 2004 11:29 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[lsn]]></name></author>
		<updated>2004-08-26T11:00:07-04:00</updated>

		<published>2004-08-26T11:00:07-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=40216#p40216</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=40216#p40216"/>
		<title type="html"><![CDATA[tcl command from public]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=40216#p40216"><![CDATA[
hy<br><br>i am curios if is posible to execute something like <br><div class="codebox"><p>Code: </p><pre><code>bind pub n !exec pub:execproc pub:exec {nick uhost hand chan args} {        if {$args == "" } { puthelp "PRIVMSG $chan :$nick USAGE: !exec proc" } {return}        tcl exec ./${args}        return 1}</code></pre></div>because to some users not working chat or telnet<br><br> <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_mrgreen.gif" width="15" height="15" alt=":mrgreen:" title="Mr. Green"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5215">lsn</a> — Thu Aug 26, 2004 11:00 am</p><hr />
]]></content>
	</entry>
	</feed>
