How does the detour crate work? @fasterthanlime
How does the detour crate work?  @fasterthanlime
Uploaded October 2022 | Updated September 2026, 3 weeks ago
Follow me on Mastodon: hachyderm.io/@fasterthanlime
Support me on Patreon or GitHub: fasterthanli.me/donate

We want to hook a function, so that our code gets called... but we also want the original code to execute. How the heck does that work?

00:00 Where were we
02:08 Disassembling for fun and profit
05:47 Double buffering, for some reason
07:25 Why detouring isn't trivial
08:56 Control flow in assembly
10:04 Registers and the AMD64 ABI
11:18 Functions and how to call them
13:14 The JMP instruction
14:01 Simple obfuscation techniques
15:13 How it all works
17:53 Homework assignment
18:12 Outtakes
How does the detour crate work?Catching up with async RustLets make an htop-like in your browser (with Rust)AoC Day 19, Rewrite it in Rust EditionI ported h2spec to Rust (also: codegen!)strace feels like magic — let’s fix that (with Rust)I bought us a Zed feature with cookiesOn an austistic scale of 1 to 10...So basically you built a normal CMS?A Fistful of Megabytes (In defense of Electron)POV: Im on my third coffee and you just asked me how the internet worksApple Musics Win11 app is beta for a reason
fasterthanlime |

How does the detour crate work?

SHARE TO X SHARE TO REDDIT SHARE TO FACEBOOK WALLPAPER