jbevain / cecil

Cecil is a library to inspect, modify and create .NET programs and libraries.
MIT License
2.73k stars 620 forks source link

IndexOutOfRangeException for obfuscated assemblies #482

Open EFLFE opened 6 years ago

EFLFE commented 6 years ago

An error appears when open the obfuscated assembly. This may be logical for a secure assembly, but because of this error breaks the ILSpy (when searching).

img

What I did: I used the ConfuserEx with one rule: "invalid metadata" (This protection adds invalid metadata to modules to prevent disassembler/decompiler from opening them)

Looks like this:

img

Obfuscated assembly: Lidgren.Network.dll.zip

bprg commented 6 years ago

cecil doesn't support obfuscated assemblies.

jbevain commented 6 years ago

Yeah that assembly is completely broken. I suggest ILSpy protects against that because it seems like we can throw from a thousand places with an assembly like that.