Skip to content

Instantly share code, notes, and snippets.

View tjdidit's full-sized avatar
🖥️
huh

T.J. tjdidit

🖥️
huh
  • jerzee
View GitHub Profile
@tjdidit
tjdidit / ez_ntdll.c
Last active August 29, 2022 20:57
having fun with ntdll
/** calling ntdll stuff from usermode **/
#include <stdio.h>
#include <Windows.h>
#include <winternl.h>
#include <ntstatus.h>
#include "win_structs.h"
// for this example, win_structs.h contains the structs and enums that can be found
// here: https://docs.microsoft.com/en-us/windows/win32/api/winternl/nf-winternl-ntquerysysteminformation