ConfuserEx
ConfuserEx copied to clipboard
Using packer leads to an exception at startup
Getting the following exception when running an obfuscated file with packer enabled:
Unhandled Exception: System.Reflection.ReflectionTypeLoadException: Unable to load one or more of the requested types. Retrieve the LoaderExceptions property for more information.
at System.Reflection.RuntimeModule.GetTypes(RuntimeModule module)
at ?????????????????????????????????????????(Module )
at ?????????????????????????????????????????(String[] )
- ConfuserEx Version: 1.6.0+447341964f
- Target Framework: net462
- Operating System: Windows 11
Steps to Reproduce:
- Build the exe.
- Run it.
You can find the crproj here: https://github.com/BloodHoundAD/SharpHound/blob/obfuscation/SharpHound.crproj
I did notice that the compressed exe seems way too small. Using Fody (which I've removed from this branch for testing), the file size is ~1mb, but with packer its 310kb.