PtokaX forum

Stuff => Your opinions about the forum => Topic started by: angelsanges on 27 February, 2004, 09:39:35

Title: encrypt....
Post by: angelsanges on 27 February, 2004, 09:39:35
why "encrypting" some Bots?
i konw that is ths a sort of "your work protection" but....in this way you do not give the possibility to a person to learn some LUA...
I know also that there is a LUA manual out there but...for some dummies is difficult to learn from an official manual.........(or not?)

this is my opinion...what do you think?
Title:
Post by: Stravides on 27 February, 2004, 10:02:44
Yea well I agree and disagree with your post...  I can see where you are coming from, but these scripts are fairly Advanced in some cases, and if you are starting out, maybe you should take a peek at the excellent tutorials in the How-To section on creating your 1st Bot.

As Far as I am concerned, I've spent nearly two months solid on my code and think that it's an ok bot for me, and does what I want it too..  It's a labour of love and has made me swear n smile and generally wanna throw the pc outta the window.  But saying that its my IP, and as long as thats respected then I have no problem with ppl having the code to see how I do things.  The problem comes when hubs are using complex algorythms to ban and filter out users... if the users find out these they can be bypassed, so thats one reason why the code is not open sourced...

If you wanna learn Lua - just take a look on this forum, get a couple of scripts mess about with them, change them completely rewrite them, make a function library..
then you can just call from the libraries instead of rewriting all the code..

you can then just expand and modify to your hearts content...

Hope this was useful....
Title:
Post by: Event_Horizon on 27 February, 2004, 10:11:20
in the How-To section are 9 lessons to learn a bit about scripting, if that is not enough 4 you write your script as you think it's right, if it doesn't work u can paste it here in the forum & I'm sure u will get help from our PROs.

somewhere on this forum also must be a link to the LUABOOK or u'll find it in any Hub.....

Heads up & go to work  :D
Title:
Post by: [NL]Pur on 27 February, 2004, 10:12:54
i don't see how anyone can have such complex algorithmes, that it must be top secret.

Even dc++ is opensource and dc++K CDM and more clients are. The dc protocol is well documented and you can download if you want. So your still think you got algorithmes that are from such a high standard that there not to be seen in the public ?

And what so wrong about copying of other ppl functions.
I think if this forum put heads together you get a lot better quality in scripts.

Some functions/scripts are really chewed out by some ppl, and it's almost impossible too improve those.

/Pur
Title:
Post by: NotRabidWombat on 27 February, 2004, 14:33:58
It's not encrypting. It's compiling. Compiling is the process of taking human readible code and making it machine readable. This results in code being executed faster (just like you use the binary form of DC++ instead of the source). Compiling is performed through an application called luac. This application is open source. So it would be possible to reverse engineer the compiled lua.
Plus, compiling lua does not remove function names or strings. Nothing is really hidden.

-NotRabidWombat
Title:
Post by: angelsanges on 27 February, 2004, 14:42:52
QuoteOriginally posted by Stravides
Yea well I agree and disagree with your post...  I can see where you are coming from, but these scripts are fairly Advanced in some cases, and if you are starting out, maybe you should take a peek at the excellent tutorials in the How-To section on creating your 1st Bot.

As Far as I am concerned, I've spent nearly two months solid on my code and think that it's an ok bot for me, and does what I want it too..  It's a labour of love and has made me swear n smile and generally wanna throw the pc outta the window.  But saying that its my IP, and as long as thats respected then I have no problem with ppl having the code to see how I do things.  The problem comes when hubs are using complex algorythms to ban and filter out users... if the users find out these they can be bypassed, so thats one reason why the code is not open sourced...

If you wanna learn Lua - just take a look on this forum, get a couple of scripts mess about with them, change them completely rewrite them, make a function library..
then you can just call from the libraries instead of rewriting all the code..

you can then just expand and modify to your hearts content...

Hope this was useful....

"I can see where you are coming from" what do you mean?
I love this forum and when I have problem's whit scripts or requests...I use this forum and appreciate the help of LUA experts...
I'm learning lua via the book and also via other bot's/scripts made by others but....some interesting functions are luac.exe-encoded....
I'm only telling you that FOR ME the encoding of bot's/scripts is not good for this forum...also not good to expand the number of lua experts.
Encoding scripts/bots or not for me it is the same, important is that this comunty never dies and the number of us that know LUA grows up!
Title:
Post by: angelsanges on 27 February, 2004, 14:44:00
QuoteOriginally posted by NotRabidWombat
It's not encrypting. It's compiling. Compiling is the process of taking human readible code and making it machine readable. This results in code being executed faster (just like you use the binary form of DC++ instead of the source). Compiling is performed through an application called luac. This application is open source. So it would be possible to reverse engineer the compiled lua.
Plus, compiling lua does not remove function names or strings. Nothing is really hidden.

-NotRabidWombat

yeah reverse engineer....but for some ppl that is on this forum this procedur is a bit complicated...
Title:
Post by: [NL]Pur on 27 February, 2004, 16:56:24
It's not encrypting. It's compiling. Compiling is the process of taking human readible code and making it machine readable. This results in code being executed faster (just like you use the binary form of DC++ instead of the source). Compiling is performed through an application called luac. This application is open source. So it would be possible to reverse engineer the compiled lua.
Plus, compiling lua does not remove function names or strings. Nothing is really hidden.

-NotRabidWombat



You can reverse engineer Windows too but that doens't make it Open source.
Title:
Post by: NotRabidWombat on 27 February, 2004, 21:42:47
Ok ok. I think you guys are missing something here.

Nothing in Windows is open source. However, the compiler, parser, and everything used with lua IS open source. Any method of compiling lua can be undone by simply examining the code used to perform said operation. luac even includes a method to examine the lua assembly language in a compiled lua

Let's start by creating a simple listing of the lua bytecodes from a compiled lua program.

From DOS: luac -l filename.lua >> output.txt
filename.lua is the compiled lua file

Open output.txt, it should be in your working directory.

A quick glance at the first line tells us what function we are in what source file it was compiled from. This is very important to understanding the flow.

Execution starts in main (not Main, case sensitive) in lua.

Down a couple lines is the stack of the function. Each line is an instruction. The first column is just an instruction increment. The second column reffers to the line from the source file. The third is the opcode. This is the operation to perform in the instruction. Next column is the operands. These are the varibles that the operation is performed on. The kicker is the next column. These are comments, but the comments include variable names and string references! =-O
There is enough information here to follow the flow of the script, even recreate all of the source code with an application (less the comments).

A good place to start to understand the opcodes:
http://www.lua.org//manual/4.0/manual.html#5.

So go be script reverse engineers ;-)

-NotRabidWombat
Title:
Post by: [NL]Pur on 27 February, 2004, 23:58:52
tho we discussed it many times,

the discussion was about why
and not how, too it's nice too know how todo it :)

tx rabid ^.^

edit
there is a lua decompiler program, commandline util very easy in use.