Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Using packer leads to an exception at startup #499

Open
rvazarkar opened this issue Aug 15, 2022 · 0 comments
Open

Using packer leads to an exception at startup #499

rvazarkar opened this issue Aug 15, 2022 · 0 comments
Labels
potential-bug Something does not seem to be working triage This issue needs some initial analysis.

Comments

@rvazarkar
Copy link

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 rvazarkar added potential-bug Something does not seem to be working triage This issue needs some initial analysis. labels Aug 15, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
potential-bug Something does not seem to be working triage This issue needs some initial analysis.
Projects
None yet
Development

No branches or pull requests

1 participant