mirror of
https://github.com/maxDcb/C2Core
synced 2026-06-08 15:48:01 +00:00
Beacon config
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user