Basic Hook vs Trampoline Hook

428 Views Asked by At

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:

  1. Create jump to my own code in the function I've hooked
  2. Jump to my own code
  3. 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

0

There are 0 best solutions below