Tagged articles
2 articles
Page 1 of 1
Tencent Cloud Developer
Tencent Cloud Developer
Sep 5, 2022 · Fundamentals

Static Function Hooking in Objective-C Using LLVM Pass

The article presents a technique for static function hooking in Objective‑C by writing a custom LLVM Pass that modifies the intermediate representation during compilation to inject stub calls at chosen points inside a function, and details the required LLVM setup, Pass implementation, Clang integration, and Xcode configuration.

ClangIR ModificationLLVM
0 likes · 11 min read
Static Function Hooking in Objective-C Using LLVM Pass
MaGe Linux Operations
MaGe Linux Operations
Dec 13, 2018 · Operations

How to Hook Kernel Functions Safely on Modern Linux Systems

This article explains why traditional function‑hooking tricks fail on modern Linux due to executable‑memory protections, and presents a step‑by‑step method using page‑table remapping and the kernel's text_poke utilities to replace kernel functions safely, complete with code examples and a diagram.

KernelKernel Modulefunction hooking
0 likes · 10 min read
How to Hook Kernel Functions Safely on Modern Linux Systems