public void RegisterAgentModule(IAgentModule module) { var info = module.GetModuleInfo(); AgentModules.Add(info); module.Init(this, Config); if (info.NotifyTeamServer) { SendData(new AgentMessage { IdempotencyKey = Guid.NewGuid().ToString(), Metadata = Config.GetOption(ConfigSetting.Metadata) as AgentMetadata, Data = new C2Data { Module = "Core", Command = "RegisterAgentModule", Data = Serialisation.SerialiseData(info) } }); } }
public void RegisterAgentModule(IAgentModule module) { module.Init(this, Config); var info = module.GetModuleInfo(); AgentModules.Add(info); if (info.NotifyTeamServer) { SendData(new AgentMessage { Metadata = AgentMetadata, Data = new C2Data { Module = "Core", Command = "RegisterAgentModule", Data = Serialisation.SerialiseData(info) } }); } }