Skip to content

Instantly share code, notes, and snippets.

View gremlinbeet's full-sized avatar
💖
The shared collective build number undecorated with C or F.

gremblinbeet gremlinbeet

💖
The shared collective build number undecorated with C or F.
  • Gemblenerit
View GitHub Profile
@gremlinbeet
gremlinbeet / onexit.h
Created June 24, 2025 11:40
ON_EXIT macro
//
// onexit.h
//
// Defines ON_EXIT macro to create finalizer objects.
// These objects execute specified code when they go out of scope.
//
// Useful when you can't be bothered writing RAII wrappers for every little thing in 3rd-party code,
// but still want to reduce cognitive load by not tracking stuff you might need to cleanup.
//
// Usage example:
@gremlinbeet
gremlinbeet / PsSyscallProviderDispatch.h
Created May 12, 2025 20:07
nt!PsSyscallProviderDispatch
// Pseudocode and structs for nt!PsSyscallProviderDispatch.
// For ntosknrl win11 24H2 10.0.26100.1742.
// Restored by Cyra, adjusted by @sixtyvividtails.
//
// See actual research:
// by @gal_kristal: https://gist.github.com/Kristal-g/eec050b3fcea2a77715ef0cff4acf841
// by @0xfluxsec: https://fluxsec.red/alt-syscalls-for-windows-11
// name's mine // @gal_kristal: _PS_SYSCALL_PROVIDER_SERVICE_DESCRIPTOR_GROUP