<pre lang="c++"> DWORD id; BYTE *dll; //the Dll that this saved as byte array DWORD ByteOfWriten; HMODULE hModule = GetModuleHandle(NULL); DWORD size=((PIMAGE_OPTIONAL_HEADER)((LPVOID)((BYTE*)(hModule)+((PIMAGE_DOS_HEADER)(hModule))->e_lfanew+sizeof(DWORD)+sizeof(IMAGE_FILE_HEADER))))->SizeOfImage; char * NewModule = (char*)VirtualAllocEx(hProc,hModule,size,MEM_COMMIT|MEM_RESERVE,PAGE_EXECUTE_READWRITE); WriteProcessMemory(hProc,NewModule,hModule,size,&ByteOfWriten); //CreateRemoteThread
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)