I have a program that links against a shared library libfoo. I want to override one of the functions from libfoo inside my program, such that internal ...
I have a program that links against a shared library libfoo. I want to override one of the functions from libfoo inside my program, such that internal ...
I have been trying to intercept calls to malloc and free, following our textbook (CSAPP book). I have followed their exact code, and nearly the same c ...
I'm now studying library interpositioning with C in Ubuntu 18.04, and I'm testing two simple codes to wrap strlen: "mystrlen.c", "mystrlenTest.c". He ...
So I'm trying to override the fscanf function in c, but I only want different behavior to occur if certain conditions are met; if those conditions are ...
i am trying to inject a library in android using PTRACE but when i try to attach ptrace to specific pid for monitoring got an error/; "Cannot attach t ...
I have tested such a simple program below My main program is like this: The result of the program is "overriden". To figure this out why this ha ...
I want to intercept the connect() system call and use my own custom implementation. The custom implementation will do some action like printing a log ...
I am trying to intercept all system calls made by my Android app on a non rooted device. So every time my app writes/reads a file, I want to intercep ...
I need to interpose (get my functions called instead of the original functions) some OS X system calls to overcome a flaw in a piece of closed-source ...
As a malloc wrapper, I use this classical snippet of code: Valgrind is upset because there are buffers still allocated by dlsym at the end of the p ...
How do I, at run-time (no LD_PRELOAD), intercept/hook a C function like fopen() on Linux, a la Detours for Windows? I'd like to do this from Python (h ...
I am interposing the memcpy() function in C because the target application uses it to concatenate strings and I want to find out which strings are bei ...
I need to interpose on a method call in a C++ program (the class resides in a separate shared library). I thought I could use LD_PRELOAD, but i am not ...
I am working on a project where I need to change the behaviour of the XOpenDisplay function defined in X11/Xlib.h. I have found an example, which sho ...
I am trying to write a program that allows a binary to be run, substituting a certain file when requested with another. It is a library with simple re ...
I was playing around with memory-mapped files in C and was wondering if there is a way to replace the FILE * from fopen with a memory mapped file tran ...