Skip to content
MufancPublic

About

A lightweight Rust library for inline hooking on Android

Resources

Stars

6 stars

Watchers

0 watching

Forks

Latest commit

 

History

33 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Wisp

wisp

Wisp is a lightweight Rust inline hooking library for Android ARM64 (aarch64-linux-android). It replaces or intercepts function calls by patching executable code at runtime.

The project is under development, and the public API may change in future releases. See the safety requirements and limitations before use.

Features

  • Replace functions with proxy implementations.
  • Hook functions while retaining access to the original implementation.
  • Retrieve the original function dynamically with orig_fn!().
  • Intercept function entries and modify saved argument registers through a callback.
  • Install single-instruction entry patches through nearby branch islands.
  • Detect overlapping hooks and serialize management operations within one Wisp instance.
  • Synchronize the instruction cache after code changes.

Documentation

About

A lightweight Rust library for inline hooking on Android

Resources

Stars

6 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages