2025-05-30 13:32:29 +08:00
|
|
|
|
using dnlib.DotNet;
|
|
|
|
|
using dnlib.DotNet.Emit;
|
2025-05-21 09:23:29 +08:00
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
|
|
|
|
|
namespace Obfuz.ObfusPasses.CallObfus
|
|
|
|
|
{
|
|
|
|
|
public interface IObfuscator
|
|
|
|
|
{
|
2025-07-01 18:46:09 +08:00
|
|
|
|
bool Obfuscate(MethodDef callingMethod, IMethod calledMethod, bool callVir, List<Instruction> obfuscatedInstructions);
|
2025-05-21 09:23:29 +08:00
|
|
|
|
|
|
|
|
|
void Done();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public abstract class ObfuscatorBase : IObfuscator
|
|
|
|
|
{
|
2025-07-01 18:46:09 +08:00
|
|
|
|
public abstract bool Obfuscate(MethodDef callingMethod, IMethod calledMethod, bool callVir, List<Instruction> obfuscatedInstructions);
|
|
|
|
|
|
2025-05-21 09:23:29 +08:00
|
|
|
|
public abstract void Done();
|
|
|
|
|
}
|
|
|
|
|
}
|