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

Method AddServerGroup

AdaptixClient/Source/Agent/Commander.cpp:93–102  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

91void Commander::SetMainCommands(const CommandsGroup &group) { mainCommandsGroup = group; }
92
93void Commander::AddServerGroup(const QString &scriptName, const QString &description, const CommandsGroup &group)
94{
95 ServerCommandsGroup sg;
96 sg.scriptName = scriptName;
97 sg.description = description;
98 sg.enabled = true;
99 sg.group = group;
100 serverGroups[scriptName] = sg;
101 Q_EMIT commandsUpdated();
102}
103
104void Commander::RemoveServerGroup(const QString &scriptName)
105{

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected