yck1509 / ConfuserEx

An open-source, free protector for .NET applications
http://yck1509.github.io/ConfuserEx/
Other
3.57k stars 1.64k forks source link

[Confuser.Renamer] Errors during repeated obfuscation. #613

Open sdaswt5y45r opened 7 years ago

sdaswt5y45r commented 7 years ago

There are errors when re-obfuscating an already obfuscated file earlier. I'm only using a plugin with renaming.

Exceptions in VTable.cs MethodDef targetMethod = impl.MethodDeclaration.ResolveThrow (); TargetMethod == null And in TypeBlobAnalyzer.cs in Analyzers IDnlibDef member = memberRef.ResolveMethodThrow (); Member == null

When ignore these errors, the application does not start (TypeInitializationException).

SlowLogicBoy commented 7 years ago

Obfuscation should be run only once

sdaswt5y45r commented 7 years ago

Yes, of course, but this is not normal ... it's just a renaming ...

I wrote an example code that can not be re-obfuscated. He's here https://pastebin.com/wNqBauQ4 The original piece of code: http://i.imgur.com/BfBeHCE.jpg Obfuscated: http://i.imgur.com/MaImgC7.jpg

Can anyone tell me how to fix it, or remove this .override?