Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Allocate the thread hijacker.
- UINT8* hijacker = CreateHijacker( ctx.Eip );
- // Change the program counter to go into the hijacker, then resume the thread.
- ctx.Eip = (DWORD)hijacker;
- if ( SetThreadContext( hThread, &ctx ) ) {
- cprintf("Assigned context OK!\n");
- } else cprintf("Couldn't assign context. Windows error %d\n",GetLastError());
Add Comment
Please, Sign In to add comment