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

	<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>2011-03-30T23:36:34-04:00</updated>

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

		<entry>
		<author><name><![CDATA[speechles]]></name></author>
		<updated>2011-03-30T23:36:34-04:00</updated>

		<published>2011-03-30T23:36:34-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=96581#p96581</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=96581#p96581"/>
		<title type="html"><![CDATA[Re: Question (encryption)]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=96581#p96581"><![CDATA[
<blockquote class="uncited"><div>Is there any way to encrypt a tcl script so when you give out your script to someone they can't edit it or see the source code and they can only run it?</div></blockquote>As nml375 originally said sure there are. But with it come ethical and real-world outcomes. Eggdrop is mostly hobbyists. There isn't much potential in generating a pay model from supporting eggdrop users with scripts (This is the only reason I can think of where one would obfuscate code). Thats the real-world outcome, you won't make any money. You instead, need to support the hobbyist. To these hobbyists, seeing how others create their "wheel" vs another scripters "wheel" helps them see the inner workings of what truly makes one script different than another. Being it string vs list flaws, Injection exploits, etc.. That means, you didn't directly put within your code any intentional trojans or intentional code to takeover someones bot. But what you did do, is write your script so poorly it allows malicious users to takeover the bot using specially crafted queries. This is just as bad as purposely writing in these exploits. As obfuscated, these issues cannot be corrected as easily. And rather than de-obfuscate to fix the issue, taking all that time just so you can see the code and begin to find/correct the issue. It's easier to just use any other script that does similar.<br><br>So after the reading the above, you still feel like alienating 99.999% of eggdrop's audience from ever using your script, and feel happy with the .001% that do use it. That being mostly 1, just you. Or... perhaps 2, you and a friend of yours using that script. Even if you distribute it well. It will likely just be you and your friend ever using it. This is why there is really no point to obfuscate your code.. Just food for thought.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8138">speechles</a> — Wed Mar 30, 2011 11:36 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[nml375]]></name></author>
		<updated>2011-03-30T15:26:51-04:00</updated>

		<published>2011-03-30T15:26:51-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=96580#p96580</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=96580#p96580"/>
		<title type="html"><![CDATA[Question (encryption)]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=96580#p96580"><![CDATA[
@willyw:<br>That is simply obfuscation. Everything needed to restore the script into the original source is provided; add a line to open a file (set fd [open myfile.tcl "WRONLY CREAT TRUNC"]), and then replace the outer eval with "puts $fd ", and finally a "close $fd" at the end of the script, and you'll find the whole source in myfile.tcl after loading the script..<br><br>Or, as I mentioned in my earlier post, you could simply use the "info args" and "info body" commands to rebuild any and all procs (use "info procs" for a list of all procs) once the script is loaded...<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8052">nml375</a> — Wed Mar 30, 2011 3:26 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[willyw]]></name></author>
		<updated>2011-03-30T13:41:22-04:00</updated>

		<published>2011-03-30T13:41:22-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=96572#p96572</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=96572#p96572"/>
		<title type="html"><![CDATA[Question (encryption)]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=96572#p96572"><![CDATA[
This thread reminded me of something that I wondered about some time ago, (and I hope the answer contributes to the original poster's quest):<br><blockquote class="uncited"><div>Encrypt it: No. <br>...</div></blockquote>What's all that stuff in    <br>alice.tcl <br>?<br><br>to the untrained eye, it looks like some sort of method of encrypting.....<br><br><a href="http://www.egghelp.org/tclhtml/3478-4-0-0-1-alice.htm" class="postlink">http://www.egghelp.org/tclhtml/3478-4-0-0-1-alice.htm</a><br><br><br>Thanks<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=10420">willyw</a> — Wed Mar 30, 2011 1:41 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[nml375]]></name></author>
		<updated>2011-03-30T12:29:01-04:00</updated>

		<published>2011-03-30T12:29:01-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=96568#p96568</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=96568#p96568"/>
		<title type="html"><![CDATA[Question (encryption)]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=96568#p96568"><![CDATA[
Encrypt it: No. Thel-interpreter would still have to be able to decode your source in order to run the compiler. And once the script is loaded, it'd be as simple as .tcl info args / .tcl info body to get the original source anway...<br><br>ActiveTcl does however provide a byte-code compiler for tcl, making it more difficult to retrieve the original code. Even so, a creative user could still trace any and all command calls. Once the code has been traced enough, it'd be a mere matter of 'puzzle-solving'.<br><br>Be adviced though, within the eggdrop community, obfuscating the code is generally thought of as you might be hiding malware in the script (there are a few infamous examples of this to date).<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8052">nml375</a> — Wed Mar 30, 2011 12:29 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[WaterRatj]]></name></author>
		<updated>2011-03-30T06:05:59-04:00</updated>

		<published>2011-03-30T06:05:59-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=96566#p96566</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=96566#p96566"/>
		<title type="html"><![CDATA[Question (encryption)]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=96566#p96566"><![CDATA[
Is there any way to encrypt a tcl script so when you give out your script to someone they can't edit it or see the source code and they can only run it?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=11624">WaterRatj</a> — Wed Mar 30, 2011 6:05 am</p><hr />
]]></content>
	</entry>
	</feed>
