Skip to content

Automated C++ Hooking and Injection Tool for Linux/x64. It generates relocatable trampolines, implements VTable patching, and handles all boilerplate for dynamic function interception.

Notifications You must be signed in to change notification settings

mamodev/PhantomHook

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Injector Tool

This tool allows you to generate compile time code to runtime inject C++ classes.

It works with both virtual methods and non-virtual methods. (Also proxying inherited classes.)

In order to proxy non virtual methods, the tool generate a trampoline that overrides the methods and forward the calls to the injected class, this need to decode assembly code to replace relative calls/jumps/references.

Project is only compatible with x86_64 linux systems.

Note that proxy works only when functions are not inlined by the compiler.

Usage


Usage: injector class_name#header_file [class_name#header_file ...] > output.hpp

About

Automated C++ Hooking and Injection Tool for Linux/x64. It generates relocatable trampolines, implements VTable patching, and handles all boilerplate for dynamic function interception.

Resources

Stars

Watchers

Forks

Packages

No packages published