yck1509 / ConfuserEx

An open-source, free protector for .NET applications
http://yck1509.github.io/ConfuserEx/
Other
3.56k stars 1.62k forks source link

Compiler unable to run obfuscated code #339

Open jfrierso opened 8 years ago

jfrierso commented 8 years ago

Hello,

I am having some difficulty attempting to run obfuscated code in IIS v8. The code is generated w/ no errors, however when ran in web server, the following error is received:

Compiler Error Message: The compiler failed with error code -1073741819.

C:\Windows\SysWOW64\inetsrv> "C:\Windows\Microsoft.NET\Framework\v4.0.30319\vbc.exe" /t:library /utf8output /R:"C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.ServiceModel.Web\v4.0_4.0.0.031bf3856ad364e35\System.ServiceModel.Web.dll" /R:"C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System\v4.0_4.0.0.0b77a5c561934e089\System.dll" /R:"C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Runtime.Serialization\v4.0_4.0.0.0b77a5c561934e089\System.Runtime.Serialization.dll" /R:"C:\Windows\Microsoft.Net\assembly\GAC_MSIL\Microsoft.CSharp\v4.0_4.0.0.0b03f5f7f11d50a3a\Microsoft.CSharp.dll" /R:"C:\Windows\Microsoft.Net\assembly\GAC_32\System.Data\v4.0_4.0.0.0b77a5c561934e089\System.Data.dll" /R:"C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.IdentityModel\v4.0_4.0.0.0b77a5c561934e089\System.IdentityModel.dll" /R:"C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Web.Entity\v4.0_4.0.0.0b77a5c561934e089\System.Web.Entity.dll" /R:"F:\tempdir\v4.0.30319\legitigant_desktop\88233f9c\58cbbb08\assembly\dl3\7bf59bf5\6b66c0eb_d901d101\Ajaxified.dll" /R:"C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Activities\v4.0_4.0.0.031bf3856ad364e35\System.Activities.dll" /R:"C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.ServiceModel.Activities\v4.0_4.0.0.031bf3856ad364e35\System.ServiceModel.Activities.dll" /R:"C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Web.ApplicationServices\v4.0_4.0.0.031bf3856ad364e35\System.Web.ApplicationServices.dll" /R:"C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Web.DynamicData\v4.0_4.0.0.031bf3856ad364e35\System.Web.DynamicData.dll" /R:"C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.ComponentModel.DataAnnotations\v4.0_4.0.0.031bf3856ad364e35\System.ComponentModel.DataAnnotations.dll" /R:"C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Configuration\v4.0_4.0.0.0b03f5f7f11d50a3a\System.Configuration.dll" /R:"C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Xml\v4.0_4.0.0.0b77a5c561934e089\System.Xml.dll" /R:"C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.ServiceModel\v4.0_4.0.0.0b77a5c561934e089\System.ServiceModel.dll" /R:"F:\tempdir\v4.0.30319\legitigant_desktop\88233f9c\58cbbb08\assembly\dl3\e8880d9c\33e951c7_db01d101\Microsoft.Web.Preview.dll" /R:"F:\tempdir\v4.0.30319\legitigant_desktop\88233f9c\58cbbb08\assembly\dl3\ff7167d1\a30e20f1_d901d101\SCS.Web.UI.WebControls.Toolbar.dll" /R:"C:\Windows\Microsoft.Net\assembly\GAC_32\System.Web\v4.0_4.0.0.0b03f5f7f11d50a3a\System.Web.dll" /R:"C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Data.DataSetExtensions\v4.0_4.0.0.0__b77a5c561934e089\System.Data.DataSetExtensions.dll" /R:"F:\tempdir\v4.0.30319\legitigant_desktop\88233f9c\58cbbb08\assembly\dl3\b0b5ff12\81d3b9ad_f201d101\Legitigant_WebApp.dll" /R:"C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.ServiceModel.Activation\v4.0_4.0.0.031bf3856ad364e35\System.ServiceModel.Activation.dll" /R:"C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Drawing\v4.0_4.0.0.0b03f5f7f11d50a3a\System.Drawing.dll" /R:"C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Web.Services\v4.0_4.0.0.0b03f5f7f11d50a3a\System.Web.Services.dll" /R:"C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Xml.Linq\v4.0_4.0.0.0b77a5c561934e089\System.Xml.Linq.dll" /R:"C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Web.Extensions\v4.0_4.0.0.031bf3856ad364e35\System.Web.Extensions.dll" /R:"C:\Windows\Microsoft.Net\assembly\GAC_32\System.EnterpriseServices\v4.0_4.0.0.0b03f5f7f11d50a3a\System.EnterpriseServices.dll" /R:"C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.WorkflowServices\v4.0_4.0.0.031bf3856ad364e35\System.WorkflowServices.dll" /R:"C:\Windows\Microsoft.Net\assembly\GAC_MSIL\System.Core\v4.0_4.0.0.0b77a5c561934e089\System.Core.dll" /R:"F:\tempdir\v4.0.30319\legitigant_desktop\88233f9c\58cbbb08\assembly\dl3\ccaac98f\8077c6ca_db01d101\AjaxControlToolkit.dll" /out:"F:\tempdir\v4.0.30319\legitigant_desktop\88233f9c\58cbbb08\App_Web_login.aspx.cdcab7d2.1ij5r0dl.dll" /debug- /win32resource:"F:\tempdir\v4.0.30319\legitigant_desktop\88233f9c\58cbbb08\t24dwgw2.res" /nowarn:41008,40000,40008 /define:_MYTYPE=\"Web\" /imports:Microsoft.VisualBasic,System,System.Collections,System.Collections.Generic,System.Collections.Specialized,System.Configuration,System.Text,System.Text.RegularExpressions,System.Linq,System.Xml.Linq,System.Web,System.Web.Caching,System.Web.SessionState,System.Web.Security,System.Web.Profile,System.Web.UI,System.Web.UI.WebControls,System.Web.UI.WebControls.WebParts,System.Web.UI.HtmlControls /warnaserror- /optionInfer+ "F:\tempdir\v4.0.30319\legitigant_desktop\88233f9c\58cbbb08\App_Web_login.aspx.cdcab7d2.1ij5r0dl.0.vb" "F:\tempdir\v4.0.30319\legitigant_desktop\88233f9c\58cbbb08\App_Web_login.aspx.cdcab7d2.1ij5r0dl.1.vb"

The obfuscated code is a DLL for an asp.net web application using .net 3.5 framework. I am using the GUI of ConfuserEx v5 w/ Normal protection to generate the code.

Any help is appreciated.

jfrierso commented 8 years ago

Hi Ki,

Is there any progress on this issue?

yck1509 commented 8 years ago

Sorry I can't reproduce this issue here. Is there any sample project that can demonstrate the error?

jfrierso commented 8 years ago

Hi Ki, My apologies for the late reply. I have attached a sample of dll that has been encrypted. Please have a look. If you any questions, please do not hesitate to email me. Any help is appreciated.

On Tuesday, October 27, 2015 7:14 AM, Ki <notifications@github.com> wrote:

Sorry I can't reproduce this issue here. Is there any sample project that can demonstrate the error?— Reply to this email directly or view it on GitHub.

yck1509 commented 8 years ago

Hi, It seems GitHub doesn't support attachment by email. You could send the sample to confuser.net@gmail.com for me to have a look.

jfrierso commented 8 years ago

Hi Ki, Any progress on this issue? Help is appreciated.

On Tuesday, October 27, 2015 7:14 AM, Ki <notifications@github.com> wrote:

Sorry I can't reproduce this issue here. Is there any sample project that can demonstrate the error?— Reply to this email directly or view it on GitHub.

yck1509 commented 8 years ago

I'm sorry for the very late response. I still cannot get the app you sent to me running. Do you mind providing the instruction of running it with IIS 8?

jfrierso commented 8 years ago

Hi Ki, Thanks for the reply. It is appreciated. No instructions required. When you mean not running are seeing any error messages or the app won't load?

On Wednesday, February 3, 2016 9:25 AM, Ki <notifications@github.com> wrote:

I'm sorry for the very late response. I still cannot get the app you sent to me running. Do you mind providing the instruction of running it with IIS 8?— Reply to this email directly or view it on GitHub.

yck1509 commented 8 years ago

I'm sorry for the confusing wording, I mean since I am not familiar with ASP.NET, I have no idea how to run the app you sent to me.