mirror of
https://github.com/ApfelTeeSaft/Tetanus.git
synced 2026-08-26 19:33:41 +00:00
main
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
unsafecode - 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.
Languages
Rust
100%