Nytro Posted December 22, 2012 Report Posted December 22, 2012 [h=1]Using RtlCreateUserThread[/h]Author: zwclose7This is the example usage of RtlCreateUserThreadThis program will create a remote thread that call ExitProcess within target process, cause the target process to exitSource code:#include <iostream>#include <Windows.h>using namespace std;typedef struct _CLIENT_ID{ PVOID UniqueProcess; PVOID UniqueThread;} CLIENT_ID, *PCLIENT_ID;typedef long (*_RtlCreateUserThread)(HANDLE, PSECURITY_DESCRIPTOR, BOOLEAN,ULONG, PULONG,PULONG, PVOID,PVOID, PHANDLE,PCLIENT_ID);_RtlCreateUserThread RtlCreateUserThread;int main(){ HANDLE hThd; CLIENT_ID cid; DWORD pid; HMODULE ntdll=LoadLibrary("ntdll.dll"); HMODULE k32=LoadLibrary("kernel32.dll"); RtlCreateUserThread=(_RtlCreateUserThread)GetProcAddress(ntdll,"RtlCreateUserThread"); cin >>pid; HANDLE hProc=OpenProcess(PROCESS_ALL_ACCESS,false,pid); RtlCreateUserThread(hProc,NULL,false,0,0,0,(PVOID)GetProcAddress(k32,"ExitProcess"),0,&hThd,&cid); WaitForSingleObject(hThd,INFINITE); CloseHandle(hThd); CloseHandle(hProc); FreeLibrary(k32); FreeLibrary(ntdll); return 0;}http://www.rohitab.com/discuss/index.php?app=core&module=attach§ion=attach&attach_id=3746Sursa: Using RtlCreateUserThread - rohitab.com - Forums Quote