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

Method Clear

AdaptixClient/Source/Client/AxScript/AxScriptManager.cpp:44–62  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

42AxUiFactory* AxScriptManager::GetUiFactory() const { return uiFactory; }
43
44void AxScriptManager::Clear()
45{
46 if (mainScript) {
47 auto commanderList = adaptixWidget->GetCommandersAll();
48 for (const auto& commander : commanderList)
49 commander->RemoveClientGroup(mainScript->context.name);
50
51 delete mainScript;
52 mainScript = nullptr;
53 }
54
55 for (auto &entry : config_scripts)
56 delete entry.engine;
57 config_scripts.clear();
58 qDeleteAll(scripts);
59 scripts.clear();
60 qDeleteAll(server_scripts);
61 server_scripts.clear();
62}
63
64void AxScriptManager::ResetMain()
65{

Callers

nothing calls this directly

Calls 3

GetCommandersAllMethod · 0.80
RemoveClientGroupMethod · 0.80
clearMethod · 0.45

Tested by

no test coverage detected