vtable_hook

Crates.iovtable_hook
lib.rsvtable_hook
version0.1.1
sourcesrc
created_at2024-06-10 10:32:01.074039
updated_at2024-06-10 10:39:07.672481
descriptionSimple crate for hooking C++ VTables
homepagehttps://github.com/nepcat/vtable_hook
repositoryhttps://github.com/nepcat/vtable_hook
max_upload_size
id1266933
size15,310
(nepcat)

documentation

README

VTable Hook

Simple crate for hooking C++ VTables

Installing

Add this line to your Cargo.toml

[dependencies]
vtable_hook = { version = "0.1.1" }

Available methods

Copy

Replacing original VTable with our own copy of that VTable. Available in two implementations:

  • Default (or wrapped) - uses lifetimes to prevent undefined behaviour when victim class gets freed. Disables itself on drop.
  • Raw - uses raw pointers, undefined behaviour should be prevented by the user.

Rewrite original VTable

TODO

Example usage

See here

Commit count: 4

cargo fmt