falseprophet Posted July 4, 2011 Share Posted July 4, 2011 As the topic states, what can be done to prevent theft of a client script? If anything? Link to comment
Castillo Posted July 4, 2011 Share Posted July 4, 2011 You should compile your scripts if you won't someone to look at them, I would recommend you to use this compiler: viewtopic.php?f=108&t=33905 I haven't got any problem with it so far. Link to comment
karlis Posted July 4, 2011 Share Posted July 4, 2011 how to make clientside scripts only exist in RAM don't go overkill with it tough. Link to comment
Chlorek Posted July 4, 2011 Share Posted July 4, 2011 solidsnake's method isnt safe. last time I heard there is lua decompiler - it allows to change compiled script to source lua code. Link to comment
Castillo Posted July 4, 2011 Share Posted July 4, 2011 Hmmmm, I know there are some decompilers around, but it can't decompile it fully, it'll mess with the variable(s) and function(s) name(s). Link to comment
falseprophet Posted July 4, 2011 Author Share Posted July 4, 2011 Yes, all interpreted languages can be decompiled pretty easily, however the code is usually somewhat obfuscated. I didn't know MTA accepted compiled Lua code, though. Obfuscating before compiling might make deciphering the code a bit harder to the point it could take several days to understand it by a skilled programmer. Are there any Lua obfuscators around? Link to comment
Chlorek Posted July 5, 2011 Share Posted July 5, 2011 ehm... but if something was compiled, can be decompiled without buggs. solidsnake, just you used not good decompiler. compiled lua code is simple binary file. I have one compiled lua file from your old roleplay, castillo. and I decompiled it correctly - no buggs, all decompiled code works. ps. I decompiled your script for test only. @edit I am programming c++ 4 years and I see making good decompiler isnt difficult. Link to comment
Castillo Posted July 5, 2011 Share Posted July 5, 2011 Well, I've never used any decompiler (never had to use one), but a friend sent me one of my scripts (I sent it to him to test) and when he sent it back, it was all fu**** up. P.S: You shouldn't take scripts from servers without permission, isn't cool. Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now