Cannot Hook the Callback functions. #5

Closed
rtibdewal opened this Issue Oct 27, 2011 · 1 comment

Projects

None yet

1 participant

@rtibdewal

Hello there,

If you modify puts() in file testputs.c for using callback mechanism then function hooking does not work.

Below is the source code to test it.

include <stdio.h>

include <unistd.h>

int main() {

typeof(puts) *putting = puts;

while(1) {
    putting("Hi!\n");
    sleep(1);
}

}

In interpose we are using symbol table to hook so we cannot manage function pointers.

@rtibdewal rtibdewal closed this Feb 14, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment