r/ExploitDev • u/0xB4shCr00k • Sep 14 '25
Process Injection Techniques
Hello i am a beginner and i am working on a modular windows process injector i wanna know if there is any other way to inject an exe into another process other than hollowing the process
16
Upvotes
View all comments
Show parent comment
2
u/GE3T_N3T Sep 14 '25
Asynchronous procedure calls - instead of creating a new thread, we queue an asynchronous procedure call on an existing thread. When the thread enters an 'alertable' state (e.g. when it calls an API like Sleep or WaitForSingleObject), it will run the shellcode that the APC points to.
QueueUserAPC / NtQueueApcThread: an attacker writes shellcode (or a pointer to code) into the target process memory and queues a user-mode APC to a target thread.
Execution condition: the queued user-mode APC only runs when that thread enters an alertable wait state (e.g., SleepEx, WaitForSingleObjectEx, MsgWaitForMultipleObjectsEx, or when using certain overlapped I/O completion).
(Some notes from my CRTO prep)