mirror of
https://github.com/maxDcb/C2Core
synced 2026-06-08 15:48:01 +00:00
arch for modules that need it
This commit is contained in:
@@ -79,7 +79,6 @@ AssemblyExec::~AssemblyExec()
|
||||
}
|
||||
|
||||
|
||||
// TODO add arch
|
||||
std::string AssemblyExec::getInfo()
|
||||
{
|
||||
std::string info;
|
||||
@@ -220,20 +219,7 @@ int AssemblyExec::init(std::vector<std::string> &splitedCmd, C2Message &c2Messag
|
||||
{
|
||||
// if we create a process we need to exite process with donut shellcode
|
||||
// Otherwise we exite the threadd
|
||||
std::string arch = "x64";
|
||||
|
||||
// for tests
|
||||
#ifdef _WIN32
|
||||
#if defined(_M_X64) || defined(__x86_64__)
|
||||
arch = "x64";
|
||||
#elif defined(_M_IX86) || defined(__i386__)
|
||||
arch = "x86";
|
||||
#elif defined(_M_ARM64) || defined(__aarch64__)
|
||||
arch = "arm64";
|
||||
#endif
|
||||
#endif
|
||||
|
||||
creatShellCodeDonut(inputFile, method, args, payload, true, false, arch);
|
||||
creatShellCodeDonut(inputFile, method, args, payload, true, false, m_windowsArch);
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user