obfuz/Editor/ObfusPasses/CallObfus/IObfuscator.cs

24 lines
689 B
C#
Raw Normal View History

2025-04-24 11:58:22 +08:00
using dnlib.DotNet.Emit;
using dnlib.DotNet;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
2025-05-04 19:55:10 +08:00
namespace Obfuz.ObfusPasses.CallObfus
2025-04-24 11:58:22 +08:00
{
2025-05-10 09:41:45 +08:00
public interface IObfuscator
2025-04-24 11:58:22 +08:00
{
2025-05-10 11:25:07 +08:00
void Obfuscate(MethodDef callingMethod, IMethod calledMethod, bool callVir, bool needCacheCall, List<Instruction> obfuscatedInstructions);
2025-04-28 11:37:48 +08:00
void Done();
2025-04-24 11:58:22 +08:00
}
2025-05-10 18:25:43 +08:00
public abstract class ObfuscatorBase : IObfuscator
{
public abstract void Obfuscate(MethodDef callingMethod, IMethod calledMethod, bool callVir, bool needCacheCall, List<Instruction> obfuscatedInstructions);
public abstract void Done();
}
2025-04-24 11:58:22 +08:00
}