How to write your own .NET obfuscator

I am very curious how people write their own obfuscator.

How difficult it would be to do the following:

  • rename all public methods with GUID type names.

Where to begin? How can I read the .net dll assembly, pull out the public methods and rename them?

+7
obfuscation
source share
3 answers

You can check out the two projects that use Cecil to write an open source obfuscator:

+7
source share
+3
source share

If you start from the source, it is quite simple to replace the text and then run the code through the compiler. If you start with a compiled assembly, you need to use the material in the System.Reflection namespace to load the assembly and System.CodeDom to generate compiled blocks of code.

+1
source share

All Articles