News for hackers. Stuff that matters.
Re:Hotpatching a C Function on x86 by deathanatos on Friday April 01, 2016 @04:29PM (#11408316)
Except the technique presented requires recompiling the target function, doesn't it? (To add all those GCC attributes, and to add the `lea` instruction.)
Re:Hotpatching a C Function on x86 by reubenmorais on Friday April 01, 2016 @08:46PM (#11409639)
The specific technique shown here requires it, but you can also do it generically by overwriting the first 8 bytes of the function and then restoring it later if you want to undo the hook.