public bool runModules(PandaState pandaState, PandaContext pandaContext) { new PandaMarker().Execute(pandaState, pandaContext); if (pandaContext.pandaIG.getIGModules() == null) { return(false); } if (pandaContext.pandaIG.getIGModules().Count == 0) { return(false); } foreach (PandaProtection p in pandaContext.register.getRegistredModules()) { foreach (PandaProtection panda in pandaContext.pandaIG.getIGModules()) { if (p.Id == panda.Id) { panda.Execute(pandaState, pandaContext); } } } return(true); }
public PandaEngine(PandaContext pandaContext) { if (pandaContext == null) { new ArgumentNullException("pandaContext is null!"); } _pandaContext = pandaContext; moduleManager = new PandaModuleManager(); foreach (PandaProtection p in moduleManager.pandaProtections()) { p.Register(pandaContext); } }
public override void Register(PandaContext pandaContext) { //... }
public override void Execute(PandaState pandaState, PandaContext pandaContext) { pandaContext.moduleDef.GlobalType.NestedTypes.Add(new TypeDefUser("PandaObfuscator")); }
public abstract void Execute(PandaState pandaState, PandaContext pandaContext);
public abstract void Register(PandaContext pandaContext);