Skip to content

Instantly share code, notes, and snippets.

@Nordwald
Nordwald / debug.c
Last active July 11, 2020 13:11
Code Injection
/*
* Gets Thread token for current thread.
* Returns NULL on failure.
*/
HANDLE GetCurrentThreadToken()
{
HANDLE hToken;
if (!OpenThreadToken(