Hello,
I have a little question. What is the official endorsed way for f.e. a plugin to a specific software to hook some functionality in the original software through direct code manipulation.
The problem I have is, that I need to exchange functionality of some functions in a Software, that are not meant to be hooked. Without anything like PAX/Grsecurity I would simply get the address of the function and overwrite the beginning with a stub that jumps to me. (Much like you would see it in a virus or rootkit or so...)
Obviously self modifying code like this should not work with PAX. Is there any "compatible" way to get parts of the code writeable, write to it and later remove the writeable bit?
-s