Hooking on Linux
Hooking Shared Libraries Sometimes, it's useful to hook calls to shared libraries. On Linux, you can do this by using the LD_PRELOAD environment variable. Let's look at an example to understand this better. Here is a toy C code: #include <stdlib.h> #include