Files
maxDcb-C2Core/modules/KillProcess/KillProcess.hpp
T
2025-07-31 05:02:17 -04:00

24 lines
624 B
C++

#pragma once
#include "ModuleCmd.hpp"
class KillProcess : public ModuleCmd
{
public:
KillProcess();
~KillProcess();
std::string getInfo();
int init(std::vector<std::string>& splitedCmd, C2Message& c2Message);
int process(C2Message& c2Message, C2Message& c2RetMessage);
int errorCodeToMsg(const C2Message &c2RetMessage, std::string& errorMsg);
int osCompatibility() {return OS_LINUX | OS_WINDOWS;}
};
#ifdef _WIN32
extern "C" __declspec(dllexport) KillProcess * KillProcessConstructor();
#else
extern "C" __attribute__((visibility("default"))) KillProcess * KillProcessConstructor();
#endif