Closed techei closed 1 year ago
How this issue is invalid @sunnamed434 ?
How this issue is invalid @sunnamed434 ?
Oh, its kinda I meant that not issue is invalid but specifically the problem that's happened is invalid, perhaps I would selected wrong issue tag
So, most of the protection didn't work because of the wrong assembly resolve, soon will pre-release a new version, which should resolve the problem
Forgot to send the message about that also, so, the problem should be fixed now, see
Closing it due to inactive, for me problem is solved, I used different files and its fine! Feel free to reopen this
Description
Application I am trying to obfuscate is a complex one & it responsible to encrypt all files in configured directory. It is a C# exe so I can't use obfuscation protections compatible with Mono. I tried to use following protections but it makes dll unusable.
Only 2 protection configurations are usable for my use case, sharing my experiment results, let me know if I am missing something.
Protections which we planned to use : AntiDebugBreakpoints, BitTimeDateStamp, FullRenamer, StringsEncryption, AntiILdasm, AntiDe4Dot, BitMethodDotnet
Obfuscation Protections we are not using:
AntiDebugBreakpoints: not stable
FullRenamer: not stable
DotNetHook: MemberNotImportedException exception in-> some dll(s) refer logs attached
CallToCalli: MemberNotImportedException exception in-> MyApplication.dll, MyApplicationographer.dll, MyApplication.exe
NoNamespaces: run time error in event viewer Application: MyApplication.exe CoreCLR Version: 5.0.921.35908 .NET Version: 5.0.9 Description: The process was terminated due to an unhandled exception. Exception Info: System.TypeInitializationException: The type initializer for 'Program' threw an exception. ---> System.ArgumentNullException: Value cannot be null. (Parameter 'provider') at System.ThrowHelper.Throw(String paramName) at System.ThrowHelper.ThrowIfNull(Object argument, String paramName) at Microsoft.Extensions.DependencyInjection.ServiceProviderServiceExtensions.GetService[T](IServiceProvider provider) at Program..cctor() in D:\MyApplication\Program.cs:line 56 --- End of inner exception stack trace --- at Program.Main(String[] args) in D:\MyApplication\Program.cs:line 97
AntiDe4Dot: run time error in event viewer Application: MyApplication.exe Framework Version: v4.0.30319 Description: The process was terminated due to an unhandled exception. Exception Info: System.Runtime.InteropServices.MarshalDirectiveException at MyApplication.Program.SetProcessDPIAware() at MyApplication.Program.Main()
AntiILdasm: run time error in event viewer: Application: MyApplication.exe Framework Version: v4.0.30319 Description: The process was terminated due to an unhandled exception. Exception Info: System.Runtime.InteropServices.MarshalDirectiveException at MyApplication.Program.SetProcessDPIAware() at MyApplication.Program.Main()
BitMethodDotnet: run time error in event viewer
StringsEncryption: Protection encrypts strings using basic AES encryption, but not everyone like it because it makes the worse performance of application.
BitDotnet: Only compatible with Mono. Dnlib exploit & modifies the file metadata (PE) Unrecognizable for dnSpy
BitMono: Only compatible with Mono. Modifies th file metadata (PE) Unrecognizable for Detect It Easy.
AntiDecompiler: Only compatible with Mono. Sets non-public accessibility attributes according to ECMA(European Computer Manufactures Association) CIL(Common Intermediate Language) standard Old dnSpy will crash decompiling, latest version won't crash.
Only following protection levels can be used: BitTimeDateStamp, ObjectReturnType