4 ms·
Do you know of anything similar for amd64 Mac/Linux? Not PLT hooking but the sort of deal where the beginning of the function is overwritten with a jump to the
by jevinskie 13y ago
Do you know of anything similar for amd64 Mac/Linux? Not PLT hooking but the sort of deal where the beginning of the function is overwritten with a jump to the hook. The overwritten instructions in the original function are copied to a mmap()ed area of memory that jumps back past the hook jump.
I found an old copy of MobileSubstrate that has partial support for i386 and x86_64 (which works fine on Linux since the ABI is the same as Mac). I found out that it doesn't support all the possible jumps in the overwritten area. I've been slowly patching and improving it[0] but I'd rather be spending my time hooking stuff than writing the hooker.
[0]: https://github.com/jevinskie/substrate https://github.com/jevinskie/substrate
- wslh 13y agoI forwarded your comment to the right people in my company. In the meantime have you tried to ask these kind of questions in http://reverseengineering.stackexchange.com/ http://reverseengineering.stackexchange.com/
- kranner 13y agohttps://github.com/rentzsch/mach_override https://github.com/rentzsch/mach_override https://github.com/rentzsch/mach_inject https://github.com/rentzsch/mach_inject