如何对程序进行加密以防止反汇编?

发布于 2024-09-09 04:11:54 字数 155 浏览 7 评论 0原文

我需要保护我的程序不被反汇编。第一次尝试是加密程序并在需要时解密其部分。也许在执行解密的代码时再次加密。

请给我一个线索,如何创建这种类型的防御。显然,如果没有汇编器,这项任务很困难,但我还没有找到很多资源。

如果您有任何可分享有关此问题的信息的 URL,请分享。

I need to protect my program from disassembly. The first attempt would be by encrypting the program and decrypting its parts when needed. Perhaps encrypting again when decrypted code is executed.

Please give me a clue, how create this type of defense. Obviously without assambler this task is difficult, but I haven't found many resources.

If you have any URLs to share with information around this issue, please share.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(4

傻比既视感 2024-09-16 04:11:54

这是毫无意义的。如果您无法控制和支持硬件,则代码始终可以在读取解密指令的模拟器中运行。

保护数据而不是代码。

This is pointless. If you don't have control and support of the hardware, the code could always be run in an emulator that would read decrypted instructions.

Protect the data not the code.

梦里梦着梦中梦 2024-09-16 04:11:54

这是错误的:/。如果您对将要执行的每个函数进行加密/解密,您的程序将具有...我不知道的速度。也许是一块石头?

如何彻底防止被拆卸,目前还没有好的解决方案。

This is just wrong :/. If you encrypt/decrypt every function that will be executed, your program will have the speed as a ... i don't know. A stone perhaps?

There is no good solutions on how to completely protect against disassembly.

笑咖 2024-09-16 04:11:54

请参阅这篇文章以及这个关于可执行代码的二进制级加密。

除此之外,只需去掉调试符号并使用 gcc-O2 标志即可;字节码将或多或少变得不可反编译。

Look at this article and also this one regarding binary-level encryption of executable code.

Other than that, just strip your debugging symbols and use gcc's -O2 flag; the bytecode will become more or less un-decompilable.

从此见与不见 2024-09-16 04:11:54

您必须清楚地了解解密组件,对吧?这意味着你已经把打开盒子的钥匙交给了攻击者,对吧?那么,通过这样做,您到底获得了什么?

You'll have to have the decrypting component in the clear, right? Which means that you have handed the attacker the key to unlock the box, right? So what, exactly, have you gained by doing this?

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文