class TemplateAgent(AgentType):
async def retreive_agents(self, dto: Dict[str, Any]) -> bytes:
retrives all available Agents on the given C2
raises ValueError in case of invalid dto
raises ConectionError in case of not be able to connect to c2 instance
raises ResourceNotFoundError
'c2_type' :'EmpireC2Type',
"url": "https://127.0.0.1:7443",
"password": "NewPassword!"
'listeners_internal_ids' : ['1','2','3']
async def shell_execute(self, dto: Dict[str, Any]) -> bytes:
executes a command string on the
raises ValueError in case of invalid dto
raises ConectionError in case of not be able to connect to c2 instance
raises ResourceNotFoundError