hooking_macros 0.1.0

hooking libs in rust
Documentation
  • Coverage
  • 0%
    0 out of 2 items documented0 out of 1 items with examples
  • Size
  • Source code size: 2.08 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 992.29 kB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 11s Average build duration of successful builds.
  • all releases: 8s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • pigeonhands/hooking-rs
    1 0 0
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • pigeonhands

hooking

Function hooking in rust

Each function creates a stub in memory that consists of

Section Description
Original fn detour stub address A function pointer the generated detour stub to call the original function
Hooking stub A small stub that adds some metadata (like adding detour stub address to r10 reg) before calling the hook
Original fn detour stub stub that re-creates the orignal fn call instructions lost to hook, then calls the hooked function