重构,将常量混淆相关节点移到Emit目录
parent
27d952aa4d
commit
6b476c7091
|
@ -4,7 +4,7 @@ using NUnit.Framework;
|
|||
using Obfuz.Emit;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace Obfuz.Virtualization
|
||||
namespace Obfuz.Emit
|
||||
{
|
||||
public class CompileContext
|
||||
{
|
|
@ -1,7 +1,7 @@
|
|||
using System;
|
||||
using UnityEngine.Assertions;
|
||||
|
||||
namespace Obfuz.Virtualization
|
||||
namespace Obfuz.Emit
|
||||
{
|
||||
public struct ConstValue
|
||||
{
|
|
@ -1,7 +1,7 @@
|
|||
using Obfuz.Emit;
|
||||
using Obfuz.Utils;
|
||||
|
||||
namespace Obfuz.Virtualization
|
||||
namespace Obfuz.Emit
|
||||
{
|
||||
public struct CreateExpressionOptions
|
||||
{
|
|
@ -1,4 +1,4 @@
|
|||
namespace Obfuz.Virtualization
|
||||
namespace Obfuz.Emit
|
||||
{
|
||||
public abstract class DataNodeCreatorBase : IDataNodeCreator
|
||||
{
|
|
@ -1,4 +1,4 @@
|
|||
namespace Obfuz.Virtualization
|
||||
namespace Obfuz.Emit
|
||||
{
|
||||
public enum DataNodeType
|
||||
{
|
|
@ -4,7 +4,7 @@ using System.Linq;
|
|||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace Obfuz.Virtualization
|
||||
namespace Obfuz.Emit
|
||||
{
|
||||
[NodeOutput(DataNodeType.Bytes)]
|
||||
public class BytesFromEncryptedBytesNode : DataNodeAny
|
|
@ -10,7 +10,7 @@ using System.Threading.Tasks;
|
|||
using static UnityEngine.Networking.UnityWebRequest;
|
||||
using UnityEngine.UIElements;
|
||||
|
||||
namespace Obfuz.Virtualization
|
||||
namespace Obfuz.Emit
|
||||
{
|
||||
[NodeOutput(DataNodeType.Int32)]
|
||||
[NodeOutput(DataNodeType.Int64)]
|
|
@ -1,7 +1,7 @@
|
|||
using dnlib.DotNet.Emit;
|
||||
using System;
|
||||
|
||||
namespace Obfuz.Virtualization
|
||||
namespace Obfuz.Emit
|
||||
{
|
||||
[NodeOutput(DataNodeType.Int32)]
|
||||
[NodeOutput(DataNodeType.Int64)]
|
|
@ -1,6 +1,6 @@
|
|||
using System.Collections.Generic;
|
||||
|
||||
namespace Obfuz.Virtualization
|
||||
namespace Obfuz.Emit
|
||||
{
|
||||
[NodeOutput(DataNodeType.Int32)]
|
||||
[NodeOutput(DataNodeType.Int64)]
|
|
@ -4,7 +4,7 @@ using System;
|
|||
using System.Reflection;
|
||||
using System.Runtime.CompilerServices;
|
||||
|
||||
namespace Obfuz.Virtualization
|
||||
namespace Obfuz.Emit
|
||||
{
|
||||
public class ConstFieldDataNode : DataNodeAny
|
||||
{
|
|
@ -4,7 +4,7 @@ using System.Linq;
|
|||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace Obfuz.Virtualization
|
||||
namespace Obfuz.Emit
|
||||
{
|
||||
public class ConstFromBytesNode : DataNodeAny
|
||||
{
|
|
@ -10,7 +10,7 @@ using System.Threading.Tasks;
|
|||
using static UnityEngine.Networking.UnityWebRequest;
|
||||
using UnityEngine.UIElements;
|
||||
|
||||
namespace Obfuz.Virtualization
|
||||
namespace Obfuz.Emit
|
||||
{
|
||||
[NodeOutput(DataNodeType.Int32)]
|
||||
[NodeOutput(DataNodeType.Int64)]
|
|
@ -1,6 +1,6 @@
|
|||
using dnlib.DotNet;
|
||||
|
||||
namespace Obfuz.Virtualization
|
||||
namespace Obfuz.Emit
|
||||
{
|
||||
public abstract class DataNodeBase : IDataNode
|
||||
{
|
|
@ -4,7 +4,7 @@ using System.Linq;
|
|||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace Obfuz.Virtualization
|
||||
namespace Obfuz.Emit
|
||||
{
|
||||
public class RvaBytesNode : DataNodeBase<byte[]>
|
||||
{
|
|
@ -4,7 +4,7 @@ using System.Linq;
|
|||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace Obfuz.Virtualization
|
||||
namespace Obfuz.Emit
|
||||
{
|
||||
public class StringFromEncryptedBytesNode : DataNodeAny
|
||||
{
|
|
@ -5,7 +5,7 @@ using System.Linq;
|
|||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace Obfuz.Virtualization.Functions
|
||||
namespace Obfuz.Emit.Functions
|
||||
{
|
||||
public class BytesInitializeFromFieldRvaDataCreator : NodeCreatorBase
|
||||
{
|
|
@ -5,7 +5,7 @@ using System.Linq;
|
|||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace Obfuz.Virtualization.Functions
|
||||
namespace Obfuz.Emit.Functions
|
||||
{
|
||||
public class ConstDataCreator : NodeCreatorBase
|
||||
{
|
|
@ -4,7 +4,7 @@ using System.Linq;
|
|||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace Obfuz.Virtualization.Functions
|
||||
namespace Obfuz.Emit.Functions
|
||||
{
|
||||
public class ConstFieldDataCreator : NodeCreatorBase
|
||||
{
|
|
@ -5,7 +5,7 @@ using System.Linq;
|
|||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace Obfuz.Virtualization.Functions
|
||||
namespace Obfuz.Emit.Functions
|
||||
{
|
||||
public class ConstFromFieldRvaDataCreator : NodeCreatorBase
|
||||
{
|
|
@ -3,7 +3,7 @@ using NUnit.Framework;
|
|||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
|
||||
namespace Obfuz.Virtualization
|
||||
namespace Obfuz.Emit
|
||||
{
|
||||
|
||||
public abstract class FunctionBase : IFunction
|
|
@ -6,7 +6,7 @@ using System.Linq;
|
|||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace Obfuz.Virtualization.Functions
|
||||
namespace Obfuz.Emit.Functions
|
||||
{
|
||||
public class IntAdd : FunctionBase
|
||||
{
|
|
@ -8,7 +8,7 @@ using System.Text;
|
|||
using System.Threading.Tasks;
|
||||
using static UnityEngine.Networking.UnityWebRequest;
|
||||
|
||||
namespace Obfuz.Virtualization.Functions
|
||||
namespace Obfuz.Emit.Functions
|
||||
{
|
||||
public class IntRotateShift : FunctionBase
|
||||
{
|
|
@ -7,7 +7,7 @@ using System.Text;
|
|||
using System.Threading.Tasks;
|
||||
using static UnityEngine.Networking.UnityWebRequest;
|
||||
|
||||
namespace Obfuz.Virtualization.Functions
|
||||
namespace Obfuz.Emit.Functions
|
||||
{
|
||||
public class IntXor : FunctionBase
|
||||
{
|
|
@ -8,7 +8,7 @@ using System.Threading.Tasks;
|
|||
using Unity.Collections.LowLevel.Unsafe;
|
||||
using UnityEngine.Assertions;
|
||||
|
||||
namespace Obfuz.Virtualization.DataNodes
|
||||
namespace Obfuz.Emit.DataNodes
|
||||
{
|
||||
public class MemoryCastIntAsFloat : FunctionBase
|
||||
{
|
|
@ -1,6 +1,6 @@
|
|||
using System.Collections.Generic;
|
||||
|
||||
namespace Obfuz.Virtualization
|
||||
namespace Obfuz.Emit
|
||||
{
|
||||
public abstract class NodeCreatorBase : IFunction
|
||||
{
|
|
@ -4,7 +4,7 @@ using System.Text;
|
|||
using System.Threading.Tasks;
|
||||
using UnityEditor;
|
||||
|
||||
namespace Obfuz.Virtualization
|
||||
namespace Obfuz.Emit
|
||||
{
|
||||
|
||||
public interface IDataNode
|
|
@ -1,4 +1,4 @@
|
|||
namespace Obfuz.Virtualization
|
||||
namespace Obfuz.Emit
|
||||
{
|
||||
public interface IDataNodeCreator
|
||||
{
|
|
@ -1,6 +1,6 @@
|
|||
using System.Collections.Generic;
|
||||
|
||||
namespace Obfuz.Virtualization
|
||||
namespace Obfuz.Emit
|
||||
{
|
||||
public interface IFunction
|
||||
{
|
|
@ -4,7 +4,7 @@ using System.Linq;
|
|||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace Obfuz.Virtualization
|
||||
namespace Obfuz.Emit
|
||||
{
|
||||
[AttributeUsage(AttributeTargets.Class, Inherited = false, AllowMultiple = true)]
|
||||
public class NodeOutputAttribute : Attribute
|
|
@ -1,10 +1,10 @@
|
|||
|
||||
using Obfuz.Utils;
|
||||
using Obfuz.Virtualization.DataNodes;
|
||||
using Obfuz.Virtualization.Functions;
|
||||
using Obfuz.Emit.DataNodes;
|
||||
using Obfuz.Emit.Functions;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace Obfuz.Virtualization
|
||||
namespace Obfuz.Emit
|
||||
{
|
||||
public class RandomDataNodeCreator : DataNodeCreatorBase
|
||||
{
|
|
@ -1,4 +1,4 @@
|
|||
using Obfuz.Virtualization;
|
||||
using Obfuz.Emit;
|
||||
|
||||
namespace Obfuz
|
||||
{
|
||||
|
|
|
@ -3,7 +3,7 @@ using Obfuz.DynamicProxy;
|
|||
using Obfuz.ExprObfuscation;
|
||||
using Obfuz.MemEncrypt;
|
||||
using Obfuz.Rename;
|
||||
using Obfuz.Virtualization;
|
||||
using Obfuz.Emit;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.IO;
|
||||
|
@ -11,6 +11,7 @@ using System.Linq;
|
|||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using UnityEngine;
|
||||
using Obfuz.Virtualization;
|
||||
|
||||
namespace Obfuz
|
||||
{
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
using dnlib.DotNet;
|
||||
using dnlib.DotNet.Emit;
|
||||
using Obfuz.Utils;
|
||||
using Obfuz.Virtualization;
|
||||
using Obfuz.Emit;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
using Obfuz.Virtualization;
|
||||
using Obfuz.Emit;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
|
|
Loading…
Reference in New Issue