allocates and builds the trampoline to a heap allocated executable memory region.
hooks the function with the given fn_addr
from the given module
such that when the function is called it instead jumps
to the given hook_to_addr
.
hooks the function with the fn_name
from the library with the provided library_name
such that when the function is called it instead jumps
to the given hook_to_addr
.
returns a slice which represents the possible content of the function at the given address in the given module.
prepares a hook to be placed on the given fn_addr
from the given module
, but doesn’t actually put the hook on the function.