Using a C# DLL confused with ConfuserEx

2

In my application project in Visual stuido, I am trying to reference a DLL confused with ConfuserEx (from another project). Even if I use the "none" preset, at runtime, when the DLL is loaded, my application crashes with the following message:

Managed Debugging Assistant 'FatalExecutionEngineError' : 'The runtime has encountered a fatal error. The address of the error was at 0x063b523c, on thread 0x341c. The error code is 0x80131623. This error may be a bug in the CLR or in the unsafe or non-verifiable portions of user code. Common sources of this bug include user marshaling errors for COM-interop or PInvoke, which may corrupt the stack.'

See a screenshot of the error here

The following is the project I use to process my DLL:

<project baseDir="path_to_input_dll_folder" outputDir="path_to_output_dll_folder" xmlns="http://confuser.codeplex.com">
    <rule preset="none" pattern="true"></rule>
    <module path="path_of_dll_to_confuse" />
</project>

Can anyone help me?

c#
obfuscation
confuserex

1 Answer

5

One reason might be that anti-debug protection is added. You can add the following into your crproj file to disable that:

<module path="path_of_dll_to_confuse">
  <rule pattern="true" inherit="false">
    <protection id="anti debug" action="remove" />
  </rule>
</module>
answered on Stack Overflow Aug 19, 2018 by sotn

User contributions licensed under CC BY-SA 3.0