ConfuserEx icon indicating copy to clipboard operation
ConfuserEx copied to clipboard

Using packer leads to an exception at startup

Open rvazarkar opened this issue 3 years ago • 0 comments

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:

  1. Build the exe.
  2. 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.

rvazarkar avatar Aug 15 '22 19:08 rvazarkar