简体   繁体   English

如何编写自己的.net混淆器

[英]How to write your own .net obfuscator

I am very curious as to how people write their own obfuscator. 我很好奇人们如何编写自己的混淆器。

How hard would it be to simply do the following: 简单地执行以下操作有多难:

  1. rename all public methods with GUID type names. 使用GUID类型名称重命名所有公共方法。

Where would I start? 我从哪里开始? How would I go about reading the .net dll assemby, pulling the public methods out and renaming them? 我将如何阅读.net dll组件,拉出公共方法并重命名它们?

You can check those two projects that are using Cecil to write an open-source obfuscator: 您可以检查使用Cecil编写开源混淆器的两个项目:

If you're starting with source, it's pretty simple to do text replacements and then run the code through a compiler. 如果您从source开始,那么进行文本替换并通过编译器运行代码非常简单。 If you are starting with a compiled assembly, then you need to use the stuff in the System.Reflection namespace to load the assembly and System.CodeDom to generate compilable code units. 如果您从编译的程序集开始,那么您需要使用System.Reflection命名空间中的内容来加载程序集和System.CodeDom以生成可编译的代码单元。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM