mirror of
https://github.com/maxDcb/C2Core
synced 2026-06-08 15:48:01 +00:00
29 lines
581 B
C++
29 lines
581 B
C++
#pragma once
|
|
|
|
#include "ModuleCmd.hpp"
|
|
|
|
class IpConfig : public ModuleCmd
|
|
{
|
|
public:
|
|
IpConfig();
|
|
~IpConfig();
|
|
|
|
std::string getInfo();
|
|
|
|
int init(std::vector<std::string>& splitedCmd, C2Message& c2Message);
|
|
int process(C2Message& c2Message, C2Message& c2RetMessage);
|
|
int osCompatibility()
|
|
{
|
|
return OS_LINUX | OS_WINDOWS;
|
|
}
|
|
|
|
private:
|
|
std::string runIpconfig();
|
|
};
|
|
|
|
#ifdef _WIN32
|
|
extern "C" __declspec(dllexport) IpConfig* IpConfigConstructor();
|
|
#else
|
|
extern "C" __attribute__((visibility("default"))) IpConfig* IpConfigConstructor();
|
|
#endif
|