如何使Lua脚本不可反编译? [英] How can I make Lua scripts un-decompilable?

查看:523
本文介绍了如何使Lua脚本不可反编译?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有很多Lua脚本(用于多人游戏模式,Multi Theft Auto),出于多种原因,包括防止盗窃,都已进行了编译.实际上,这只是一种防盗手段,因为Luadec(http://luadec51.luaforge.net/)可以轻松地反编译脚本.有人对我如何使脚本不可反编译有任何提示吗?

I have many Lua scripts (for the multiplayer mod Multi Theft Auto) that are compiled, for many reasons, including theft prevention. In reality, this is only a theft deterrent, as Luadec (http://luadec51.luaforge.net/) can easily de-compile the scripts. Does anyone have have any tips on how I can make my scripts un-decompilable?

推荐答案

加密;那实际上是它起作用的唯一方法.当然,由于您的程序必须对其解密,因此它们可以直接从内存中夺取解密的数据.

Encryption; that's really the only way it's going to work. Of course, since your program would have to decrypt them, they could just snatch the decrypted data right out of memory.

因此,您无能为力. Any 方法在某种程度上将只是一种防盗手段".即使编译为实际的汇编程序也只是一个威慑,因为可以将其反编译为与原始源代码完全不同的东西.

So no, there's nothing you can do. Any method is going to be "only a theft deterrent" to some degree. Even compiling to actual assembly is just a deterrent, as this can be decompiled into something not entirely unlike the original source code.

问题很简单,您想给用户带来多少麻烦.加密可能会给您带来最大的收益.这将迫使他们不得不遍历可执行文件,以找出如何从内存中提取数据.大多数临时用户都不想这样做.

The question is simply how much trouble you want to give the user. Encryption probably gives you the most bang for your buck. This will force them to have to walk through the executable to figure out how to yank the data out of memory. Most casual users won't want to do that.

这篇关于如何使Lua脚本不可反编译?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆