Overview of Pinjectra process injection library
masterPinjectra is a C/C++ library designed to implement various process injection techniques, specifically optimized for Windows 10 64-bit. The library uses a "mix and match" architectural style, allowing developers to compose different injection primitives into a single execution flow.
Key features include:
- Modular composition of injection primitives.
- Implementation of the "Stack Bomber" technique, which works on Windows 10 64-bit even when Control Flow Guard (CFG) and Code Integrity Guard (CIG) are enabled.
- Designed for research and testing of process injection capabilities.
// CreateRemoteThread Demo + DLL Load (i.e., LoadLibraryA as Entry Point)
executor = new CodeViaCreateRemoteThread(
new OpenProcess_VirtualAllocEx_WriteProcessMemory(
(void *)"MsgBoxOnProcessAttach.dll",
25,
PROCESS_VM_WRITE | PROCESS_CREATE_THREAD | PROCESS_VM_OPERATION,
MEM_COMMIT | MEM_RESERVE,
PAGE_READWRITE),
LoadLibraryA
);
executor->inject(pid, tid);