> Windows Syscalls

Générateur de syscalls directs

Générez des stubs de syscalls directs en C, ASM, Rust, Nim et Go. Style Hell's Gate, Halo's Gate et SysWhispers.

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.

Les stubs générés sont destinés à la recherche défensive, aux CTF et aux engagements red-team autorisés uniquement.