hlsdk

Untitled

Jul 9th, 2010
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.37 KB | None | 0 0
  1. // Allocate the thread hijacker.
  2. UINT8* hijacker = CreateHijacker( ctx.Eip );
  3.  
  4. // Change the program counter to go into the hijacker, then resume the thread.
  5. ctx.Eip = (DWORD)hijacker;
  6.  
  7. if ( SetThreadContext( hThread, &ctx ) ) {
  8. cprintf("Assigned context OK!\n");
  9. } else cprintf("Couldn't assign context. Windows error %d\n",GetLastError());
Add Comment
Please, Sign In to add comment