限制用户通过.NET Reflector访问代码 [英] Restrict users from accessing code through .NET Reflector

查看:98
本文介绍了限制用户通过.NET Reflector访问代码的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述





我想要解决方案来限制用户通过.NET Reflector访问Debug文件夹中的代码。



请帮忙。



谢谢,

Sneha

解决方案

< blockquote>你不能。



你可以采取一些措施使其变得更加困难,但最终本地机器上的任何可执行文件都是可以破解的。最终,该代码必须转换为本机代码,并且每个可运行的应用程序都是易受攻击的。



你想做的只是让它变得难以破解使它不值得人们的麻烦。



我有一些建议可以帮助你保护你的申请:



- 模糊你的代码。 Dotfuscator 有免费版,随附Visual Studio。

- 使用公钥/私钥或非对称加密以生成产品许可。这可确保您只能生成许可证代码。即使您的应用程序被破解,您也可以确保他们不会为您的应用程序发布密钥生成器,因为无法撤消密钥生成算法。

- 使用第三方打包器将您的.NET可执行文件打包到加密的Win32包装器应用程序中。 Themida 是最好的之一。这会阻止人们在.NET Reflector中反映您的应用程序,并且解开反转时会很麻烦。

- 编写您自己的自定义打包程序。如果第三方包装商太贵,可以考虑自己编写。有时自定义打包程序非常有效,因为没有很好的方法来解压缩它们。教程如何编写自己的包装工具给出了有关编写自己的Win32打包程序的大量信息。


Hi,

I want solution to restrict users from accessing my code in Debug folder through .NET Reflector.

Please help.

Thanks,
Sneha

解决方案

You can't.

There are steps you can take to make it a little more difficult, but ultimately any executable on the local machine is crackable. Eventually, that code has to be converted into native machine code and every application that is runnable is vulnerable.

What you want to do is just make it difficult enough to crack to make it not worth peoples' trouble.

Some suggestions I have for you to help protect your application:

- Obfuscate your code. Dotfuscator has a free edition and comes with Visual Studio.
- Use public/private key or asymmetric encryption to generate your product licenses. This ensures that only you can generate your license codes. Even if your application is cracked, you can be sure that they won't be releasing a key generator for your application, because it is impossible to reverse the key generating algorithm.
- Use a third-party packer to pack your .NET executable into an encrypted Win32 wrapper application. Themida is one of the better ones. This stops people from reflecting your application in .NET Reflector and makes it a pain to unpack for reversing.
- Write your own custom packer. If the third-party packers are too expensive, consider writing your own. Sometimes custom packers can be very effective, because there aren't well published methods on how to unpack them. The tutorial How to write your own packer gives a ton of good information on writing your own Win32 packer.


这篇关于限制用户通过.NET Reflector访问代码的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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