arch for modules that need it

This commit is contained in:
maxdcb
2026-05-01 14:38:13 +02:00
parent aba4949d44
commit d2cb88a75b
8 changed files with 57 additions and 46 deletions
+1 -15
View File
@@ -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
{