MCPcopy Create free account
hub / github.com/Adaptix-Framework/AdaptixC2 / AddAgent

Method AddAgent

AdaptixClient/Source/UI/Graph/SessionsGraph.cpp:65–82  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

63}
64
65void SessionsGraph::AddAgent(Agent *agent, bool drawTree)
66{
67 if (agent->data.Mark == "Terminated" || agent->data.Mark == "Inactive")
68 return;
69
70 GraphItem* item = new GraphItem( this, agent );
71 agent->graphItem = item;
72
73 if (agent->parentId.isEmpty())
74 this->LinkToRoot(item);
75
76 this->graphScene->addItem( item );
77 this->graphScene->addItem( item->parentLink );
78 this->items.push_back( item );
79
80 if (drawTree)
81 this->TreeDraw();
82}
83
84void SessionsGraph::RemoveAgent(Agent* agent, bool drawTree)
85{

Callers 2

processSyncPacketMethod · 0.80
UpdateMethod · 0.80

Calls 5

LinkToRootMethod · 0.95
TreeDrawMethod · 0.95
push_backMethod · 0.80
isEmptyMethod · 0.45
addItemMethod · 0.45

Tested by

no test coverage detected