Files
maxDcb-C2Core/modules/Inject/Inject.hpp
T
2024-12-13 06:37:58 -05:00

38 lines
599 B
C++

#pragma once
#include "ModuleCmd.hpp"
#ifdef _WIN32
#include <Windows.h>
#endif
class Inject : public ModuleCmd
{
public:
Inject();
~Inject();
std::string getInfo();
int initConfig(const nlohmann::json &config);
int init(std::vector<std::string>& splitedCmd, C2Message& c2Message);
int process(C2Message& c2Message, C2Message& c2RetMessage);
private:
std::string m_processToSpawn;
bool m_useSyscall;
};
#ifdef _WIN32
extern "C" __declspec(dllexport) Inject * A_InjectConstructor();
#else
extern "C" __attribute__((visibility("default"))) Inject * InjectConstructor();
#endif