Skip to content

Instantly share code, notes, and snippets.

View kawaii-ghost's full-sized avatar
🥹
Despite everything, it's still you.

<I°_°I> kawaii-ghost

🥹
Despite everything, it's still you.
View GitHub Profile
@kawaii-ghost
kawaii-ghost / keyedevent0.cpp
Last active June 16, 2025 13:27
Keyed Event demonstration
#include <cstdio>
#include <Veil.h>
NTSTATUS NTAPI print(PVOID arg);
#define NTHREAD 8
struct _THREAD_ARG {
LONG volatile g_Counter;
HANDLE KeyedEvent;
@kawaii-ghost
kawaii-ghost / WoA.cpp
Last active June 15, 2025 00:34
NtWaitForAlertByThreadId demonstration
#include <cstdio>
#include <Veil.h>
NTSTATUS NTAPI print(PVOID arg);
#define NTHREAD 8
struct _THREAD_ARG {
LONG volatile g_Counter;
HANDLE ThreadId;
@kawaii-ghost
kawaii-ghost / WaitAll_futex_io_uring.c
Created July 20, 2025 10:48
Trying to handle timeout with io_uring_submit_and_wait_timeout
#include <stdio.h>
#include <string.h>
#include <liburing.h>
#include <unistd.h>
#include <linux/futex.h>
#define QUEUE_DEPTH 64
#define BUFFER_SIZE (64 * 1024)
#define BLOCK_SZ 4096
#define WAIT_NR 64