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
|
|
|
|
|
{
|
|
|
|
|
void Obfuscate(MethodDef callingMethod, IMethod calledMethod, bool callVir, bool needCacheCall, List<Instruction> obfuscatedInstructions);
|
|
|
|
|
|
|
|
|
|
void Done();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public abstract class ObfuscatorBase : IObfuscator
|
|
|
|
|
{
|
|
|
|
|
public abstract void Obfuscate(MethodDef callingMethod, IMethod calledMethod, bool callVir, bool needCacheCall, List<Instruction> obfuscatedInstructions);
|
|
|
|
|
public abstract void Done();
|
|
|
|
|
}
|
|
|
|
|
}
|