Skip to content

Comparison of function hooking libraries

Ole André Vadla Ravnås edited this page Jul 26, 2016 · 14 revisions
Frida CydiaSubstrate Substitute Detours Deviare EasyHook diStormX
Open Source ✅ ❌ ✅ ❌ ✅ ✅ ✅
Allows use in closed-source software¹ ✅ ✅ ✅ ❌ ❌ ✅ ✅
Windows ✅ ❌ ❌ ✅ ✅ ✅ ✅
Mac ✅ ❌ ✅ ❌ ❌ ❌ ❌
Linux ✅ ❌ ❌ ❌ ❌ ❌ ❌
iOS ✅ ✅ ✅ ❌ ❌ ❌ ❌
Android ✅ ✅ ❌ ❌ ❌ ❌ ❌
QNX ✅ ❌ ❌ ❌ ❌ ❌ ❌
x86-32 ✅ ✅ ✅ ✅ ✅ ✅ ✅
x86-64 ✅ ❌ ✅ ✅ ✅ ✅ ✅
arm ✅ ✅ ✅ ❌ ❌ ❌ ❌
arm64 ✅ ✅ ✅ ❌ ❌ ❌ ❌
MIPS ✅ ❌ ❌ ❌ ❌ ❌ ❌
Language bindings ✅ ❌ ❌ ❌ ✅ ❌ ❌
Instruction-level probes ✅ ❌ ❌ ❌ ❌ ❌ ❌
Zero-knowledge before/after hooks² ✅ ❌ ❌ ❌ ✅ ❌ ❌
Transactional (batching) ✅ ❌ ✅ ✅ ✅ ❌ ✅
Intelligent relocation³ ✅ ❌ ✅ ❌ ❌ ❌ ❌
Tiny functions (code caves) ✅ ❌ ❌ ❌ ❌ ❌ ❌
Rollback ✅ ❌ ❌ ✅ ✅ ✅ ✅

¹ Without paying for a commercial license.

² Get a callback before/after a function is called/returns, without knowing anything about the function's calling convention, return type, or argument types.

³ This means for example detecting that an instruction further downstream jumps back up, and taking care not to overwrite beyond that point. Another example is to avoid overwriting beyond CALL instructions as another thread might have its return address on its stack and will return there later.

Clone this wiki locally