Example of injection with QueueUserAPC2 (Works only starting from Windows 11)
Apc2Injector {dll_path} {exe_name}
dll_path
- Path to dll payload. Can be a relative path
exe_name
- Name of target process.
For example:
Apc2Injector Apc2Dll.dll explorer.exe
- Defining target process and getting handle
- Loading path to dll into target process
- Loading shell code of APC function to target process
- Take handle on target process thread (I prefer to take main thread)
- Call
QueueUserAPC2
- Support of Wow64 targets
- Detailed description of injection method
- Add more comments (?)