ConfuserEx icon indicating copy to clipboard operation
ConfuserEx copied to clipboard

Failed to obfuscate .NET application

Open yashrastogi3104 opened this issue 7 years ago • 1 comments

Hi Team,

While obfuscating our solution which is a .NET application, we are getting the following error message:

[INFO] ConfuserEx v0.6.0 Copyright (C) Ki 2014 [INFO] Running on Microsoft Windows NT 6.2.9200.0, .NET Framework v4.0.30319.42000, 64 bits [DEBUG] Discovering plugins... [INFO] Discovered 10 protections, 1 packers. [DEBUG] Resolving component dependency... [INFO] Loading input modules... [INFO] Loading 'CTX_IC_InterCompany.exe'... [INFO] Initializing... [DEBUG] Building pipeline... [INFO] Resolving dependencies... [DEBUG] Checking Strong Name... [DEBUG] Creating global .cctors... [DEBUG] Watermarking... [DEBUG] Executing 'Name analysis' phase... [DEBUG] Building VTables & identifier list... [DEBUG] Analyzing... [DEBUG] WinForms found, enabling compatibility. [WARN] Could not find resource type 'IC.DataBaseFile.HanaDB'. [WARN] Could not find resource type 'IC.DataBaseFile.SQLDB'. [INFO] Processing module 'CTX_IC_InterCompany.exe'... [DEBUG] Executing 'Invalid metadata addition' phase... [DEBUG] Executing 'Renaming' phase... [DEBUG] Renaming... [DEBUG] Executing 'Anti-debug injection' phase... [DEBUG] Executing 'Anti-dump injection' phase... [DEBUG] Executing 'Anti-ILDasm marking' phase... [DEBUG] Executing 'Encoding reference proxies' phase... [ERROR] Failed to resolve a member, check if all dependencies are present in the correct version. Exception: dnlib.DotNet.MemberRefResolveException: Could not resolve method: System.Void SBOClassLibrary.clsGeneric::GetResouceInitString(System.Resources.ResourceManager,System.Globalization.CultureInfo,‌‎‭‫‭‪‮‬‫‌‎‏‪‭​‌‌‬‌‎‮‬‍​‎‮,‫​‎‪‌‮‌‌‍‫‪‫‍‮‭‬‫‮‫‏‬‮,System.String,System.Resources.ResourceManager) (CTX_SBOClassLibrary, Version=2.0.19.21590, Culture=neutral, PublicKeyToken=null) at dnlib.DotNet.MemberRef.ResolveMethodThrow() in E:\Source\Public\Confuser2\dnlib\src\DotNet\MemberRef.cs:line 395 at Confuser.Protections.ReferenceProxy.MildMode.ProcessCall(RPContext ctx, Int32 instrIndex) in e:\Source\Public\Confuser2\Confuser.Protections\ReferenceProxy\MildMode.cs:line 67 at Confuser.Protections.ReferenceProxy.ReferenceProxyPhase.ProcessMethod(RPContext ctx) in e:\Source\Public\Confuser2\Confuser.Protections\ReferenceProxy\ReferenceProxyPhase.cs:line 122 at Confuser.Protections.ReferenceProxy.ReferenceProxyPhase.Execute(ConfuserContext context, ProtectionParameters parameters) in e:\Source\Public\Confuser2\Confuser.Protections\ReferenceProxy\ReferenceProxyPhase.cs:line 109 at Confuser.Core.ProtectionPipeline.ExecuteStage(PipelineStage stage, Action1 func, Func1 targets, ConfuserContext context) in e:\Source\Public\Confuser2\Confuser.Core\ProtectionPipeline.cs:line 131 at Confuser.Core.ConfuserEngine.RunPipeline(ProtectionPipeline pipeline, ConfuserContext context) in e:\Source\Public\Confuser2\Confuser.Core\ConfuserEngine.cs:line 230 at Confuser.Core.ConfuserEngine.RunInternal(ConfuserParameters parameters, CancellationToken token) in e:\Source\Public\Confuser2\Confuser.Core\ConfuserEngine.cs:line 175 [ERROR] ---BEGIN DEBUG INFO--- [ERROR] Installed Framework Versions: [ERROR] v2.0.50727 2.0.50727.4927 [ERROR] v3.0 3.0.30729.4926 [ERROR] v3.5 3.5.30729.4926 [ERROR] v4 [ERROR] Client 4.7.02046 [ERROR] Full 4.7.02046 [ERROR] v4.0 [ERROR] Client 4.0.0.0 [ERROR] v4.5 460798 [ERROR] [ERROR] Cached assemblies: [ERROR] CTX_IC_InterCompany, Version=2.0.20.21597, Culture=neutral, PublicKeyToken=null (D:\IC\VSTS_IC\SAP B1 9.1 Compatibility Patch\Addon Code PL 21\IC\bin\x64\Release\CTX_IC_InterCompany.exe) [ERROR] mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 [ERROR] System.Core, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 [ERROR] CTX_IC_DAL, Version=2.0.20.21596, Culture=neutral, PublicKeyToken=null [ERROR] System.Data, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 [ERROR] System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 [ERROR] System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 [ERROR] System.Xml, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 [ERROR] System.Management, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a [ERROR] System.Configuration, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a [ERROR] CTX_SBOClassLibrary, Version=2.0.19.21590, Culture=neutral, PublicKeyToken=null [ERROR] Microsoft.CSharp, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a [ERROR] System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a [ERROR] System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a [ERROR] mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 (C:\WINDOWS\Microsoft.NET\assembly\GAC_32\mscorlib\v4.0_4.0.0.0__b77a5c561934e089\mscorlib.dll) [ERROR] System.Core, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 (C:\WINDOWS\Microsoft.NET\assembly\GAC_MSIL\System.Core\v4.0_4.0.0.0__b77a5c561934e089\System.Core.dll) [ERROR] mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 [ERROR] System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 [ERROR] System.Xml, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 [ERROR] System.Numerics, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 [ERROR] System.Security, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a [ERROR] CTX_IC_DAL, Version=2.0.20.21596, Culture=neutral, PublicKeyToken=null (D:\IC\VSTS_IC\SAP B1 9.1 Compatibility Patch\Addon Code PL 21\IC\bin\x64\Release\CTX_IC_DAL.dll) [ERROR] mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 [ERROR] System.Data, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 [ERROR] System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 [ERROR] System.Xml, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 [ERROR] System.Core, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 [ERROR] System.Configuration, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a [ERROR] Microsoft.CSharp, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a [ERROR] CTX_SBOClassLibrary, Version=2.0.19.21590, Culture=neutral, PublicKeyToken=null [ERROR] System.Data, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 (C:\WINDOWS\Microsoft.NET\assembly\GAC_32\System.Data\v4.0_4.0.0.0__b77a5c561934e089\System.Data.dll) [ERROR] mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 [ERROR] System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 [ERROR] System.Xml, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 [ERROR] System.Transactions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 [ERROR] System.Numerics, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 [ERROR] System.Configuration, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a [ERROR] System.Runtime.Caching, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a [ERROR] System.Core, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 [ERROR] System.EnterpriseServices, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a [ERROR] System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 (C:\WINDOWS\Microsoft.NET\assembly\GAC_MSIL\System\v4.0_4.0.0.0__b77a5c561934e089\System.dll) [ERROR] mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 [ERROR] System.Configuration, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a [ERROR] System.Xml, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 [ERROR] System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 (C:\WINDOWS\Microsoft.NET\assembly\GAC_MSIL\System.Windows.Forms\v4.0_4.0.0.0__b77a5c561934e089\System.Windows.Forms.dll) [ERROR] mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 [ERROR] System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a [ERROR] System.Security, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a [ERROR] System.Xml, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 [ERROR] System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 [ERROR] System.Core, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 [ERROR] System.Configuration, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a [ERROR] Accessibility, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a [ERROR] System.Deployment, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a [ERROR] System.Runtime.Serialization.Formatters.Soap, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a [ERROR] System.Xml, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 (C:\WINDOWS\Microsoft.NET\assembly\GAC_MSIL\System.Xml\v4.0_4.0.0.0__b77a5c561934e089\System.Xml.dll) [ERROR] mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 [ERROR] System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 [ERROR] System.Data.SqlXml, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 [ERROR] System.Configuration, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a [ERROR] System.Management, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a (C:\WINDOWS\Microsoft.NET\assembly\GAC_MSIL\System.Management\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.Management.dll) [ERROR] mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 [ERROR] System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 [ERROR] System.Configuration.Install, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a [ERROR] Microsoft.JScript, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a [ERROR] System.Configuration, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a (C:\WINDOWS\Microsoft.NET\assembly\GAC_MSIL\System.Configuration\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.Configuration.dll) [ERROR] mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 [ERROR] System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 [ERROR] System.Xml, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 [ERROR] System.Security, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a [ERROR] System.Core, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 [ERROR] CTX_SBOClassLibrary, Version=2.0.19.21590, Culture=neutral, PublicKeyToken=null (D:\IC\VSTS_IC\SAP B1 9.1 Compatibility Patch\Addon Code PL 21\IC\bin\x64\Release\CTX_SBOClassLibrary.dll) [ERROR] mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 [ERROR] System.Core, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 [ERROR] System.Data, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 [ERROR] System.Configuration, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a [ERROR] System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 [ERROR] Microsoft.CSharp, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a [ERROR] System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 [ERROR] Microsoft.CSharp, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a (C:\WINDOWS\Microsoft.NET\assembly\GAC_MSIL\Microsoft.CSharp\v4.0_4.0.0.0__b03f5f7f11d50a3a\Microsoft.CSharp.dll) [ERROR] mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 [ERROR] System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 [ERROR] System.Core, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 [ERROR] System.Dynamic, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a [ERROR] System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a (C:\WINDOWS\Microsoft.NET\assembly\GAC_32\System.Web\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.Web.dll) [ERROR] mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 [ERROR] System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a [ERROR] System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 [ERROR] System.Configuration, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a [ERROR] System.Core, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 [ERROR] System.Data, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 [ERROR] System.Xml, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 [ERROR] System.DirectoryServices, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a [ERROR] System.EnterpriseServices, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a [ERROR] System.Web.RegularExpressions, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a [ERROR] System.Design, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a [ERROR] System.Web.ApplicationServices, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35 [ERROR] System.ComponentModel.DataAnnotations, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35 [ERROR] System.DirectoryServices.Protocols, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a [ERROR] System.Security, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a [ERROR] System.ServiceProcess, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a [ERROR] System.Web.Services, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a [ERROR] Microsoft.Build.Utilities.v4.0, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a [ERROR] Microsoft.Build.Framework, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a [ERROR] Microsoft.Build.Tasks.v4.0, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a [ERROR] System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 [ERROR] System.Runtime.Caching, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a [ERROR] System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a (C:\WINDOWS\Microsoft.NET\assembly\GAC_MSIL\System.Drawing\v4.0_4.0.0.0__b03f5f7f11d50a3a\System.Drawing.dll) [ERROR] mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 [ERROR] System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 [ERROR] System.Configuration, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a [ERROR] ---END DEBUG INFO--- Failed at 11:11 AM, 2:14 elapsed.

Please suggest how to proceed further.

Regards, Yash

yashrastogi3104 avatar Oct 04 '17 05:10 yashrastogi3104

Disable reference proxies and try again.

g4m3r0 avatar Oct 25 '17 17:10 g4m3r0