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

	<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-06T11:52:50-04:00</updated>

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

		<entry>
		<author><name><![CDATA[user]]></name></author>
		<updated>2004-08-05T19:30:59-04:00</updated>

		<published>2004-08-05T19:30:59-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=39522#p39522</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=39522#p39522"/>
		<title type="html"><![CDATA[Encrypting/Obfuscation]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=39522#p39522"><![CDATA[
Advice 1: Be more specific<br>Advice 2: Stay focused when reading the source and take notes <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_razz.gif" width="15" height="15" alt=":P" title="Razz"><br><br>As I don't know C, my decompiler is 100% tcl (which is sort of weird, sure <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_razz.gif" width="15" height="15" alt=":P" title="Razz">) it has a call stack emulator that actually "runs" the bytecode. (the only way to do it i guess)<br>But if you're doing it in C, I think there's lots of stuff to cut'n'paste from where the error messages are generated (it will generate the source for a small part of the bytecode where the error occured (iirc))<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2878">user</a> — Thu Aug 05, 2004 7:30 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[KrzychuG]]></name></author>
		<updated>2004-08-05T19:06:25-04:00</updated>

		<published>2004-08-05T19:06:25-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=39521#p39521</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=39521#p39521"/>
		<title type="html"><![CDATA[Encrypting/Obfuscation]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=39521#p39521"><![CDATA[
I rewrote them already <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"><br>Btw, can you give me some advices about tcl pro decompiler?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3672">KrzychuG</a> — Thu Aug 05, 2004 7:06 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[user]]></name></author>
		<updated>2004-08-05T18:19:11-04:00</updated>

		<published>2004-08-05T18:19:11-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=39520#p39520</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=39520#p39520"/>
		<title type="html"><![CDATA[Encrypting/Obfuscation]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=39520#p39520"><![CDATA[
<blockquote class="uncited"><div>I don't think you can retrieve source code from compiled tcl files.</div></blockquote>should I care? <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_rolleyes.gif" width="15" height="15" alt=":roll:" title="Rolling Eyes"><br><br>Just because you <a href="http://forum.egghelp.org/viewtopic.php?t=6811#33800" class="postlink">failed</a> doesn't mean it's impossible. I won't give you my decompiler, so you better start coding your own (just start reading the tbc loader source and get to know the format, and you should be able to make your own decompiler in a couple of evenings) or rewrite those scripts you claim to have lost. <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_wink.gif" width="15" height="15" alt=":wink:" title="Wink"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2878">user</a> — Thu Aug 05, 2004 6:19 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[KrzychuG]]></name></author>
		<updated>2004-08-05T11:45:02-04:00</updated>

		<published>2004-08-05T11:45:02-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=39514#p39514</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=39514#p39514"/>
		<title type="html"><![CDATA[Encrypting/Obfuscation]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=39514#p39514"><![CDATA[
I don't think you can retrieve source code from compiled tcl files.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3672">KrzychuG</a> — Thu Aug 05, 2004 11:45 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[user]]></name></author>
		<updated>2004-08-05T10:49:39-04:00</updated>

		<published>2004-08-05T10:49:39-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=39513#p39513</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=39513#p39513"/>
		<title type="html"><![CDATA[Encrypting/Obfuscation]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=39513#p39513"><![CDATA[
<blockquote class="uncited"><div>I don't think so.</div></blockquote>What?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2878">user</a> — Thu Aug 05, 2004 10:49 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[user]]></name></author>
		<updated>2004-08-06T11:52:50-04:00</updated>

		<published>2004-08-04T17:42:53-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=39489#p39489</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=39489#p39489"/>
		<title type="html"><![CDATA[Encrypting/Obfuscation]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=39489#p39489"><![CDATA[
The whole point of obfuscation is that people don't understand how it works, so posting a way to obfuscate kinda defeats its own purpose <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_razz.gif" width="15" height="15" alt=":P" title="Razz"> If a method of obfuscation becomes widely used, the way to deobfuscate it will (sooner or later) become public knowledge too.<div class="codebox"><p>Code: </p><pre><code>proc obfuscate code {foreach c [split $code ""] {set tmp($c) ""}set chrs [array names tmp]set i [array size tmp]set forward [set back [list]]foreach c $chrs {set r [expr {int(rand()*$i)}]incr i -1lappend forward $c [lindex $chrs $r]set back [concat [list [lindex $chrs $r] $c] $back]set chrs [lreplace $chrs $r $r]}# EDIT 3: added this ifif {rand()&gt;0.5} {set cmd "if [expr {int(rand()*(1&lt;&lt;24))}]"} {set cmd eval}set code "[rndesc $cmd] \[[rndesc "string map"] [list $back [string map $forward $code]]\]"}proc obfuscateFile file {set f [open $file r+]puts $f [obfuscate [read $f][seek $f 0]]close $f}# EDIT 2: added this little sucker to hide the cleartext commands a bit :)proc rndesc str {set o ""foreach c [split $str ""] {if {[string is space $c]} {append o $c} {append o [switch [expr {int(rand()*3)}] {0 {format \\%o [scan $c %c]}1 {format \\x%x [scan $c %c]}2 {format \\u%.4x [scan $c %c]}}]}}set o}</code></pre></div>Make sure you back up any file you want to try this on as i didn't test it much <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_razz.gif" width="15" height="15" alt=":P" title="Razz"><br><br>Btw: you can run it multiple times on the same file if you want to waste some more cpu loading the script.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2878">user</a> — Wed Aug 04, 2004 5:42 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[]Kami[]]></name></author>
		<updated>2004-08-04T16:23:24-04:00</updated>

		<published>2004-08-04T16:23:24-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=39487#p39487</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=39487#p39487"/>
		<title type="html"><![CDATA[Encrypting/Obfuscation]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=39487#p39487"><![CDATA[
<blockquote class="uncited"><div>There's no way to create working code that can't be read by anyone. But you can scare off most people by using <a href="http://wiki.tcl.tk/4141" class="postlink">procomp</a> to bytecode compile your script. (I would still be able to get your source ;P)</div></blockquote>Just read the site and it looks ok, but i need something which doesn't need extra libary/file to be loaded...Just something which strikelight is using...I don't need it to be super encrypted, only something which will prevert newbies to view the source <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"> Any idea, how i can use similar method like strikelight is using?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3559">]Kami[</a> — Wed Aug 04, 2004 4:23 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[KrzychuG]]></name></author>
		<updated>2004-08-04T16:12:40-04:00</updated>

		<published>2004-08-04T16:12:40-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=39485#p39485</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=39485#p39485"/>
		<title type="html"><![CDATA[Encrypting/Obfuscation]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=39485#p39485"><![CDATA[
<blockquote class="uncited"><div>There's no way to create working code that can't be read by anyone. But you can scare off most people by using procomp to bytecode compile your script. (I would still be able to get your source ;P)</div></blockquote>I don't think so.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3672">KrzychuG</a> — Wed Aug 04, 2004 4:12 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[caesar]]></name></author>
		<updated>2004-08-04T16:04:37-04:00</updated>

		<published>2004-08-04T16:04:37-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=39483#p39483</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=39483#p39483"/>
		<title type="html"><![CDATA[Encrypting/Obfuscation]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=39483#p39483"><![CDATA[
oh.. lol.. I knew that..  <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_rolleyes.gif" width="15" height="15" alt=":roll:" title="Rolling Eyes"> <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=187">caesar</a> — Wed Aug 04, 2004 4:04 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[user]]></name></author>
		<updated>2004-08-04T16:00:41-04:00</updated>

		<published>2004-08-04T16:00:41-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=39481#p39481</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=39481#p39481"/>
		<title type="html"><![CDATA[Encrypting/Obfuscation]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=39481#p39481"><![CDATA[
<blockquote class="uncited"><div>same goes with obfuscation.. it can easily be deobfuscated if you know where to look and to add <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_mrgreen.gif" width="15" height="15" alt=":mrgreen:" title="Mr. Green"></div></blockquote>bytecode compilation IS obfuscation. <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=2878">user</a> — Wed Aug 04, 2004 4:00 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[caesar]]></name></author>
		<updated>2004-08-04T15:58:04-04:00</updated>

		<published>2004-08-04T15:58:04-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=39479#p39479</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=39479#p39479"/>
		<title type="html"><![CDATA[Encrypting/Obfuscation]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=39479#p39479"><![CDATA[
same goes with obfuscation.. it can easily be deobfuscated if you know where to look and to add <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=187">caesar</a> — Wed Aug 04, 2004 3:58 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[user]]></name></author>
		<updated>2004-08-04T15:56:03-04:00</updated>

		<published>2004-08-04T15:56:03-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=39477#p39477</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=39477#p39477"/>
		<title type="html"><![CDATA[Encrypting/Obfuscation]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=39477#p39477"><![CDATA[
There's no way to create working code that can't be read by anyone. But you can scare off most people by using <a href="http://wiki.tcl.tk/4141" class="postlink">procomp</a> to bytecode compile your script. (I would still be able to get your source ;P)<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2878">user</a> — Wed Aug 04, 2004 3:56 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[]Kami[]]></name></author>
		<updated>2004-08-04T15:14:54-04:00</updated>

		<published>2004-08-04T15:14:54-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=39473#p39473</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=39473#p39473"/>
		<title type="html"><![CDATA[Encrypting/Obfuscation]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=39473#p39473"><![CDATA[
Hey,<br> <br>I'm interested about encrypting tcl scripts or obfuscation.Yesterday i read every topic on egghelp about encrypting/obfuscation and also obfuscation site.I didn't really understand how to do it, but maybe some of you would be so kind and tell me how i can 'encrypt' scripts or how to use 'obfuscation'.I need it for my next script which source shouldn't be visible to public.I still didn't start to write script, because i don't know how i can 'encrypt' it later.<br> <br>Tnx<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3559">]Kami[</a> — Wed Aug 04, 2004 3:14 pm</p><hr />
]]></content>
	</entry>
	</feed>
