CS-FreeStyle / 10000-How-To-Do-in-CS

1 stars 0 forks source link

intercept functions #88

Open liuty10 opened 4 years ago

liuty10 commented 4 years ago

A simple example: http://www.jayconrod.com/posts/23

Intercept "dlsym" itself: https://opensourceforu.com/2011/08/lets-hook-a-library-function/

A more advanced example: sometimes functions' address are found by other functions, so we need to intercept the latter functions first and check the compare parameters with functions' name. https://github.com/nouspiro/kiroku/blob/master/lib/intercept.cpp