User Guide for ILProtector

本文介绍了如何使用ILProtector工具来混淆.NET程序,防止源代码被轻易反编译。ILProtector能有效解决混淆后代码仍可读、无法执行、调试困难及被误报为病毒等问题。通过示例展示了混淆前后代码的对比,并详细说明了混淆步骤和软件设置,包括启用完整性和字符串加密选项。推荐.NET开发者使用ILProtector来增强代码安全性。
摘要由CSDN通过智能技术生成

Usually,the Non-open program with .net will have some important code and some sensitive information, we did not want to open them to others,as we know, it’s very easy to reverse the .net program exe and dll file, so we have to encrypt our program to avoid being reversed.
I have tried all kind of obfuscation tools,they always have some issues,for example:
1.Always show some source code after obfuscation.
2.Can not be executed after obfuscation.
3.The obfuscated DLL can be used,but the program with obfuscated DLL can not be debuged on IDE tool like Visual Studio.
4.many antivirus software will recognize the obfuscated exe or dll file as a virus.

So we decide to find a satisfying software,we found the ILProtector, it solved all these issues perfectly , it is easy to use also,we highly recommend it. The official website is: http://vgrsoft.net/

We will use a simple example to demonstrate the obfuscation effect and operation instructions.
Firstly, we will show the obfuscation effect:
1.Here is source code:
在这里插入图片描述
We defined the Sum( int x , int y) and button_Click(object sender , EventArgs e) function and compare the confusion effect before and after the confusion.

2.Reverse the exe file before confusion :
在这里插入图片描述
在这里插入图片描述
Obviously, the reverse code ( Sum( int , int ) and buuton1_Click( object , EventArgs) function) is same with source code.

3.Reverse the exe file after confusionwith ILProtector:
在这里插入图片描述
在这里插入图片描述
The code (Sum( int, int ) and buuton1_Click( object, EventArgs) function) is completely unreadable after confusion.

Now, we will show how to confuse your exe via ILProtector software step by step, the steps for dll file is same:
1.Download ILProtector from website and install it.
在这里插入图片描述
Introduction:
ILProtector is a protector for .NET applications. ILProtector is designed to protect intellectual property of the software.
ILProtector allows to protect your .NET code quickly and without distractions on routine tasks.

Confusion theory:
ILProtector will switch the intermediary language MSIL from .net applications to special code, so the other software can not reverse it.
ILProtector support the .net 2.0, 3.0, 3.5, 4, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8.
ILProtector support 32bit or 64bit windows system.
ILProtector support String encryption and Integrity checking.

2.Drag your exe or dll file to the “Assemblies” dialog box under “Project”
在这里插入图片描述
Firstly,Drag file to Assemblies.
Then set the output folder.

3.Right-click the file, click “Properties”, and set “EnableIntegrity” and “EncryptStrings” to True
在这里插入图片描述
Notes:
EnableIntegrity:
It will check the integrality of your program,it can not be executed when the program was modified unexpectedly.

EncryptStrings:
It will encrypt the string variables in your program if you set it to True.

For other options, you can check the corresponding tips.

4.Select the “Protection” to embed the protection code in the exe or dll file and click “Save”
在这里插入图片描述
Notes:
Inherit form ILProtector options
It menas you can also put the protection code to independent dll file, it will out put the exe and dll file with two extra dll files.

5.Finally, click “Process” to output the confused exe or dll file.
在这里插入图片描述
6.If you meet some error and can not output the confused file, maybe you can check the IDE location in “Options”
在这里插入图片描述

评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值