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

Method GetCommands

AdaptixClient/Source/Agent/Commander.cpp:656–673  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

654}
655
656QStringList Commander::GetCommands()
657{
658 QStringList commandList;
659 QStringList helpCommandList;
660
661 collectCommandsFromGroup(mainCommandsGroup.commands, commandList, helpCommandList);
662
663 for (const auto &server_group : serverGroups) {
664 if (server_group.enabled)
665 collectCommandsFromGroup(server_group.group.commands, commandList, helpCommandList);
666 }
667
668 for (const auto &client_group : clientGroups)
669 collectCommandsFromGroup(client_group.commands, commandList, helpCommandList);
670
671 commandList << helpCommandList;
672 return commandList;
673}

Callers 2

upgradeCompleterMethod · 0.80
get_commandsMethod · 0.80

Calls 1

collectCommandsFromGroupFunction · 0.85

Tested by

no test coverage detected