2026-01-08 08:01:05 +01:00
2026-01-08 08:01:05 +01:00
2026-01-08 07:56:19 +01:00
2026-01-08 07:56:19 +01:00
2026-01-08 08:01:05 +01:00
2026-01-08 07:56:19 +01:00
2026-01-08 08:01:05 +01:00

Tetanus

Windows Detouring Library in Rust

x86 · x64 · ARM · ARM64

Tetanus is a lightweight Windows user-mode function hooking library written in Rust, providing inline detours and related hooking techniques across all major Windows architectures.

Inspired by MinHook, Tetanus reimplements its core behavior in idiomatic Rust, with added ARM support and a modular, safety-focused design.


Features

  • Inline detours with trampolines (MinHook-like)
  • Enable / disable hooks at runtime
  • Original function access via trampoline
  • Architecture-aware instruction patching
  • Safe for use in injected or external DLLs

Supported Architectures

  • x86 (32-bit)
  • x64 (64-bit)
  • ARM32 (Windows on ARM)
  • ARM64 (Windows on ARM64)

Hooking Techniques

  • Inline detours
  • IAT (Import Address Table) hooking
  • EAT (Export Address Table) hooking
  • VEH (Vectored Exception Handler) hooks

Design Goals

  • Correctness over cleverness
  • Explicit and well-documented unsafe code
  • Clear hook lifecycle management
  • No MinHook source reuse

License

BSD 2-Clause License


Disclaimer

This is a low-level library. Incorrect usage can crash the target process. Use responsibly.

S
Description
MinHook like Detouring in Rust.
Readme BSD-2-Clause
42 KiB
Languages
Rust 100%