Fir站长导航 > 站长资讯 > 安全资讯 >

.NET程序集合并--多个dll合并

2023-01-20


dll合并工具可以使用两个工具:VirboxProtector 和 ILMerge. 本文介绍 VirboxProtector 合并 dll 如何使用。推荐 VirboxProtector 的理由有两个:1.可以使用界面及命令行实现合并;2.合并后可以使用 VirboxProtector 进行加密保护,防止反编译。

功能介绍

可以将 .NET 格式的可执行程序(.exe)及动态库(.dll)合并为一个模块,可以消除模块间的依赖,再对其进行保护可以起到更好的名称混淆效果。

使用流程

可以在 Virbox Protector 工具菜单下打开.NET 程序集合并工具

image-20220821205339579


合并步骤#

1.将待合并的程序集全部拖到程序集列表里;

2.选择一个主程序集;

3.设置合并后的主程序集存放位置,默认会生成一个Merge文件夹并存放在这里;

4.点击合并;

合并完成后,可以删除除了主程序集外的其它被合并的 dll,然后把合并后的主程序集替换原来的主程序集。

image-20220821205748068

主程序集#

合并后生成的主程序集,可以是 exe 或 dll。

命令行合并

Virbox Protector 的命令行工具 virboxprotector_con 的默认路径位于

Windows: C:\Program Files\senseshield\Virbox Protector 3\bin

Linux:/usr/share/virboxprotector/bin

macOS:/Applications/Virbox Protector 3.app/Contents/MacOS/bin

使用 -ilmerge 选项进行合并:


virboxprotector_con -ilmerge <main_assembly> <other_assemblies ...> -o <output_path>
 

相关标签: dll合并

We use cookies in our website to improve our customer experience, we will not share these information to third party. By using this website you need to accept our Cookies and Privacy Policy. If you don't want to accept these Cookies, please change your browser setting. Find more.