I'm trying to hook recv() and send() functions in C++ on Linux.
I know how to hook functions (github: zeek/subhook).
But I would like some help to learn how to find recv() or send() functions' addresses (at runtime, or with a version independent solution).
I'm open to any kind of documentation or advice that could help me to understand mechanisms involved here.
[EDIT] A clarification: I don't wanna use LD_PRELOAD= because I inject my shared library with this tool : linux-inject.