Beacon config

This commit is contained in:
maxdcb
2024-12-12 08:23:05 -05:00
parent 96474cf4af
commit f1bd0635cf
17 changed files with 271 additions and 116 deletions
+12
View File
@@ -203,6 +203,18 @@ int AssemblyExec::init(std::vector<std::string> &splitedCmd, C2Message &c2Messag
}
int AssemblyExec::initConfig(const nlohmann::json &config)
{
for (auto& it : config.items())
{
if(it.key()=="process")
m_processToSpawn = it.value();
}
return 0;
}
int AssemblyExec::process(C2Message &c2Message, C2Message &c2RetMessage)
{
const std::string payload = c2Message.data();