I am currently using libc version 2.35, and it looks like __libc_dlopen_mode was removed from the library. I found verification for its removal here, I also can't find it with readelf --dyn-syms. When running the program I get following error:
targeting process "test" with pid 6824
instead of expected SIGTRAP, target stopped with signal 11: Segmentation fault
sending process 6824 a SIGSTOP signal for debugging purposes
Because __libc_dlopen_mode was removed, the following code returns 0 leading to the crash.
long dlopenAddr = getFunctionAddress("__libc_dlopen_mode");
This is probably the same problem as seen in #18 and #16. I'm not sure how to solve this issue, maybe there is an alternative to __libc_dlopen_mode?
I am currently using libc version 2.35, and it looks like
__libc_dlopen_modewas removed from the library. I found verification for its removal here, I also can't find it withreadelf --dyn-syms. When running the program I get following error:Because
__libc_dlopen_modewas removed, the following code returns0leading to the crash.This is probably the same problem as seen in #18 and #16. I'm not sure how to solve this issue, maybe there is an alternative to
__libc_dlopen_mode?