Commit Graph

146 Commits (a231de1f62ea0f41e196e63a4d6714b56341cc69)

Author SHA1 Message Date
walon b2d7637438 修复 VirtualMethodGroupCalculator没有考虑到某个类本身没有实现它的接口类的某个函数但它的父类实现了它的接口类的该函数时没有将接口的该函数和父类的该虚函数计算为一个Group的bug 2025-05-24 00:01:33 +08:00
walon 48f1dfe64a 修复RenameMethod未处理MethodImpl的bug 2025-05-23 23:06:18 +08:00
walon 647619943f 修复VirtualMethodGroup中仅包含非混淆程序集中函数时仍然试图改名的bug 2025-05-23 22:32:21 +08:00
walon f1a225cd81 修复 RenameRecordMap::InitAndAddRename初始化signature的bug 2025-05-23 22:11:41 +08:00
walon d64e57b370 修复虚函数分配名字未检查是否与每个虚函数所在类型其他函数冲突的严重bug 2025-05-23 20:40:54 +08:00
walon 5f4083066b 修复给虚函数分配名字时未考虑到不要与每个虚函数所在命名空间不冲突的bug 2025-05-23 19:48:55 +08:00
walon 5de469c4a6 修复 Obfuscator未检查AssembliesToObfuscate和nonObfuscatedButReferencingObfuscatedAssemblies列表存在空或者重复程序集名的问题 2025-05-23 19:47:43 +08:00
walon 28e276eda5 修复 MetaUtil::AppendIl2CppStackTraceNameOfTypeSig 无法处理TypedReference类型的bug 2025-05-23 19:46:44 +08:00
walon 03b0172240 因为重构了Obfuscator传参方式,而ObfuscateUtil引用了相关代码,连带改动 2025-05-23 12:56:09 +08:00
walon 41230aca29 修复BuildUnityAssemblySearchPaths的WebGL平台PlaybackEngine目录错误的bug。WebGL平台跟其他平台的路径规则不一样。 2025-05-23 12:54:08 +08:00
walon fb9ffae1e8 重构Obfuscator和Obfusacation Pass参数,不再直接传递Settings,而是传递SettingsFacade,简化大量参数复制代码 2025-05-23 12:47:57 +08:00
walon b6500147c2 CallObfusSettings新增maxProxyMethodCountPerDispatchMethod字段,设置每个dispatch函数中最多转发的函数个数 2025-05-23 12:01:04 +08:00
walon 3425abceb5 RvaData初始化时校验密钥的正确性,避免程序集混淆时使用的密钥与运行时加载的密钥不匹配的失误! 2025-05-23 11:45:37 +08:00
walon f5b45a0543 fix: 修复非混淆的程序集中虚函数override混淆程序集中函数,当基类虚函数名被混淆后没有同步修改非混淆程序集中override函数名的bug
remove: 删除 RenameRecordMap中维护parameter映射的代码
2025-05-23 11:13:45 +08:00
walon 4d8737f01c change: 如果类型中包含有`[RuntimeInitializeOnLoadMethod]`并且LoadType等于或者早于AfterAssembliesLoaded的函数,则类型的静态构造函数不混淆 2025-05-23 11:11:08 +08:00
walon d06caf5e38 change: SecretSettings.secretKeyOutputPath拆为staticSecretKeyOutputPath和dynamicSecretKeyOutputPath,方便单独指定每个key的输出路径 2025-05-23 11:09:27 +08:00
walon 32d1aac9ba change: ObfuscatorBuilder::BuildUnityAssemblySearchPaths 为各个平台添加对应的PlaybackEngine目录,解决构建webgl之类平台时找不到一些特定dll的bug 2025-05-23 10:18:37 +08:00
walon cb27fadb08 移除所有Sample中`SetUpStaticSecretKey`函数上的`[ObfuzIngore]`特性,因为Obfuz会自动对`[RuntimeInitializeOnLoadMethod(RuntimeInitializeLoadType.AfterAssembliesLoaded)]`禁用一切混淆 2025-05-23 09:27:31 +08:00
walon 05c3fd24bf change: ObfuscationMethodWhitelist::IsInWhiteList(MethodDef)对于带有`[RuntimeInitializeOnLoadMethod]`的函数,如果LoadType等于或者早于AfterAssembliesLoaded,就不对函数进行混淆 2025-05-23 09:25:44 +08:00
walon 3fe3a6b302 fix: 修复 UnityRenamePolicy::NeedRename(MethodDef)错误地判定当前类型为MonoBehaviour类脚本,如果不是事件函数就直接返回,没有尝试后续检查的bug 2025-05-23 09:24:24 +08:00
walon e19dbe1dc8 SymbolObfus: 不混淆Unity.Behaviour.BlackboardEnum特性标注的枚举类型名及其枚举项名 2025-05-23 08:31:43 +08:00
walon c1beb962f5 SymbolObfus: 不混淆带有`[RuntimeInitializeOnLoadMethod]`的函数及它的父类名(否则Unity无法根据类型和函数名找到此函数) 2025-05-23 08:18:21 +08:00
walon 0efc98fb4d remove comments of GenericArgumentContext 2025-05-22 19:56:35 +08:00
walon bf38f43824 fix: fix bug of GenericArgumentContext that inflate ByRef, SZArray to Ptr. 2025-05-22 19:44:13 +08:00
walon 09fdd3052d change: add ObfuscationProcess.ValidateReferences to check assemblies which reference to obfuscated assemblies must have been added to `ObfuzSettings.AssemblySettings.NonObfuscatedButReferencingObfuscatedAssemblies`. 2025-05-22 11:34:53 +08:00
walon 1e8832ca7e simplify sample DynamicSecretKey. remove hybridclr and obfuz4dhybridclr. 2025-05-22 10:11:02 +08:00
walon 69a4cd686f fix: fix a serious bug that didn't setup _obfuscatedAssemblyTempOutputPath which make all obfuscation passes exclude symbol obfuscation were skipped! 2025-05-22 10:09:02 +08:00
walon 4398ee0875 update package.json for obfuz and obfuz4hybridclr 2025-05-22 09:20:18 +08:00
walon b18a8f70e3 add: add sample project DynamicSecretKey 2025-05-22 09:15:34 +08:00
walon 8cdd69fd45 change: Obfuscator write intermediate obfuscated assembly to temp directory before write to obfuscated assembly directory 2025-05-21 21:29:26 +08:00
walon f265022d0c change: obfuz will try find managed dll in project which is compatible with current build target. 2025-05-21 20:41:01 +08:00
walon 2f7e2be97a fix: fix the bug that TypeSigUtil::ComputePropertyDefSignature didn't compute parameters to final signature. 2025-05-21 19:44:38 +08:00
walon 3d04c15d98 new: AssemblySettings adds a new option: `obfuscateObfuzRuntime` 2025-05-21 18:36:08 +08:00
walon 425db24ee2 fix: fix bug that MetaUtil.GetTypeDefOrGenericTypeBaseOrNull and GetMemberRefTypeDefParentOrNull raise NullException when type is TypeSpec but isn't GenericType 2025-05-21 18:31:10 +08:00
walon 1f29de26cf fix: fix the bug that MetaUtil.AppendIl2CppStackTraceNameOfTypeSig didn't support ElementType.Array 2025-05-21 17:57:31 +08:00
walon b6cc07b54b fix: fix the bug that didn't rename MethodSpec in instruction operand when rename method in Symbol Obfus pass 2025-05-21 17:29:52 +08:00
walon bd370e545a change: add `[Flags]` to ObfuzScope 2025-05-21 16:50:56 +08:00
walon c260cc2379 change: ObfuzIgnoreAttribute support ObfuzScope 2025-05-21 16:24:26 +08:00
walon d258738262 temp 2025-05-21 13:33:03 +08:00
walon 10eef16d78 change: UnityRenamePolicy adds missing MonoBehaviour event methods of Animator, ParticleSystem, UGUI. 2025-05-21 11:49:20 +08:00
walon 2bc310f15e change: add missing Unity MonoBehaviour event methods in UnityRenamePolicy. 2025-05-21 11:39:42 +08:00
walon f332617acc change: SymbolObfus obNamespace inherits value from obName 2025-05-21 11:22:35 +08:00
walon 0a9968f7a1 update: update samples 2025-05-21 10:42:06 +08:00
walon 48779110f6 change: obfuz4hybridclr add menu `HybridCLR/ObfuzExtension/CompileAndObfuscateDll` 2025-05-21 10:31:43 +08:00
walon 0ef162b901 update url of obfuz package 2025-05-21 09:38:33 +08:00
walon 2453acc1d3 remove Obfuz project 2025-05-21 09:26:04 +08:00
walon 8f8422864b move package com.code-philosophy.obfuz and com.code-philosophy.obfuz4hybridclr to root directory 2025-05-21 09:23:29 +08:00
walon acb35e375e rename assembly name ObfuzExtension4HybridCLR to Obfuz4HybridCLR.Editor 2025-05-21 09:19:52 +08:00
walon 4fd71a30c3 add hybridclr package to Obfuz project 2025-05-21 09:11:01 +08:00
walon da47e1283d new: add package com.code-philosophy.obfuz4hybridclr 2025-05-21 09:08:13 +08:00