> Windows Syscalls

Generator für direkte Syscalls

Generieren Sie direkte Syscall-Stubs in C, ASM, Rust, Nim und Go. Hell's Gate, Halo's Gate und SysWhispers-Stil.

nt-allocate-virtual-memory-ssn-hardcoded.c
// NtAllocateVirtualMemory — direct syscall stub
// Technique: SSN hardcoded (GCC/MinGW inline asm)
// SSN: 0x18 (winserver-2025)
// For defensive research, CTF and authorized red-team use only.

#include <windows.h>
#include <winternl.h>

extern NTSTATUS NtAllocateVirtualMemory(
    HANDLE         ProcessHandle,
    PVOID*         BaseAddress,
    ULONG_PTR      ZeroBits,
    PSIZE_T        RegionSize,
    ULONG          AllocationType,
    ULONG          Protect
);

__asm__(
    ".globl NtAllocateVirtualMemory\n"
    "NtAllocateVirtualMemory:\n"
    "    mov r10, rcx\n"
    "    mov eax, 0x18\n"
    "    syscall\n"
    "    ret\n"
);

// NOTE: MSVC has no x64 inline asm. Put the stub in a separate .asm file
//       and assemble with ml64 instead.

Generierte Stubs dienen ausschließlich defensiver Forschung, CTFs und autorisierten Red-Team-Einsätzen.