Files
Maxime dcb 108a370807 CommandSpecs & Tests
* CommandSpecs

* CommandSpecs

* feat(command-specs): add simple module specs

* listModule

* AssemblyExec

* AssemblyExecTests

* Minor

* Inject

* InjectTests

* Spec modules

* Folder layout

* upload & download

* Chisel Minidump Powershell & Script

* CoffLoader DotnetExec /KerberosUseTicket PsExec PwSh ScreenShot

* add artifact_filters

* Minor

* stabilisation

* Fixes

* manual test

* manual test

* manual test

* manual test

* manual test

* manual test

* manual test

* manual test

* ScreenShot png

* socks5 hostname

* Maj for AI

* minor
2026-05-10 21:28:40 +02:00

43 lines
872 B
C++

#pragma once
#include "ModuleCmd.hpp"
#include "Common.hpp"
class MiniDump : public ModuleCmd
{
public:
MiniDump();
~MiniDump();
std::string getInfo();
int init(std::vector<std::string>& splitedCmd, C2Message& c2Message);
int recurringExec(C2Message& c2RetMessage) override;
int process(C2Message& c2Message, C2Message& c2RetMessage);
int errorCodeToMsg(const C2Message &c2RetMessage, std::string& errorMsg);
int osCompatibility()
{
return OS_WINDOWS;
}
private:
int emitChunk(C2Message& c2RetMessage);
std::string m_outputfile;
std::string m_taskUuid;
std::string m_dumpBuffer;
std::size_t m_bytesSent = 0;
};
#ifdef _WIN32
extern "C" __declspec(dllexport) MiniDump * MiniDumpConstructor();
#else
extern "C" __attribute__((visibility("default"))) MiniDump * MiniDumpConstructor();
#endif