Describe the bug
The compressor causes an exception during the startup of a console application.
To Reproduce
Steps to reproduce the behavior:
Create a console application
Ensure that the prefer 32bit flag is set
Enable the compressor in ConfuserEx, only the confuser. Other obfuscations don't impact the behaviour of this bug.
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?
Describe the bug The compressor causes an exception during the startup of a console application.
To Reproduce Steps to reproduce the behavior:
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?