XenocodeRCE / neo-ConfuserEx

Updated ConfuserEX, an open-source, free obfuscator for .NET applications
http://yck1509.github.io/ConfuserEx/
Other
751 stars 88 forks source link

Compressor causes console application to fail #4

Closed mkaring closed 6 years ago

mkaring commented 6 years ago

Describe the bug The compressor causes an exception during the startup of a console application.

To Reproduce Steps to reproduce the behavior:

  1. Create a console application
  2. Ensure that the prefer 32bit flag is set
  3. Enable the compressor in ConfuserEx, only the confuser. Other obfuscations don't impact the behaviour of this bug.
  4. Run the compressed assembly.

It will raise a Win32Exception, once it tries to read the modules of any 64 process on the system.

Expected behavior No exception is raised.

Additional context The exception is caused by the CheckEnvironment method that is in the Runtime for the compressor. I am not sure what the purpose of this method it, because it changes the behaviour of a console application by showing the main modules of every process on the system. Maybe this is a debugging left over?

XenocodeRCE commented 6 years ago

@mkaring please see latest commit here