Nytro Posted May 17, 2013 Report Posted May 17, 2013 [h=1]Code Injection Techniques[/h]ViperEye May 02, 2013DLL Injection using QueueUserAPC We begin by creating a process using CreateProcess, which is the where we are trying to inject the code into:PROCESS_INFORMATION pi; STARTUPINFOA Startup; ZeroMemory(&Startup, sizeof(Startup)); ZeroMemory(?, sizeof(pi)); CreateProcessA("C:\\Windows\\notepad.exe" NULL, NULL, NULL, NULL, CREATE_SUSPENDED, NULL, NULL, &Startup, ?);Once the process is created, OpenProcess is called with the following arguments:OpenProcess(PROCESS_ALL_ACCESS,FALSE, /*ProcessId*/ 348); [TABLE][TR][TD=class: gutter][/TD][TD=class: code][/TD][/TR][/TABLE] Once the process is opened with all access, memory can be allocated to it using VirtualAllocEx().ARTICOL COMPLET:http://resources.infosecinstitute.com/code-injection-techniques/ Quote