I've been learning about hooking functions of processes which has been fun and I have managed to hook a process by doing the following:
- Create jump to my own code in the function I've hooked
- Jump to my own code
- Jump back to the instruction after my jump in the hooked function
However, I've come across the trampoline hook and I understand what it's doing but I don't quite understand the benefit of using it over the basic hook I have mentioned above. I don't suppose someone could let me know the benefits of using a trampoline hook over the basic hook or point me in the right direction?
Any help is greatly appreciated