Maj tests defines

This commit is contained in:
maxdcb
2026-04-29 18:27:28 +02:00
parent d67acbae19
commit c5e34750bf
36 changed files with 58 additions and 59 deletions
+2 -2
View File
@@ -61,7 +61,7 @@ std::string ModuleTemplate::getInfo()
// Method that will be trigged server side to construct the message that will be send to the beacon and interpreted by the process method
int ModuleTemplate::init(std::vector<std::string> &splitedCmd, C2Message &c2Message)
{
#if defined(BUILD_TEAMSERVER) || defined(BUILD_TESTS)
#if defined(BUILD_TEAMSERVER) || defined(C2CORE_BUILD_TESTS)
if (splitedCmd.size() >= 2 )
{
string args = "args from the splited command line";
@@ -85,7 +85,7 @@ int ModuleTemplate::init(std::vector<std::string> &splitedCmd, C2Message &c2Mess
// For exemple a file to write on the disk
int ModuleTemplate::followUp(const C2Message &c2RetMessage)
{
#if defined(BUILD_TEAMSERVER) || defined(BUILD_TESTS)
#if defined(BUILD_TEAMSERVER) || defined(C2CORE_BUILD_TESTS)
// check if there is an error
if(c2RetMessage.errorCode()==-1)
{