Closed yhql closed 2 years ago
Provides two new functions that ease the process of hooking onto a function:
rainbow.hook_prolog(name, pyfunc)
rainbow.hook_bypass(name, pyfunc)
hook_bypass can be called without a pyfunc, in which case calling the emuated function will be skipped.
hook_bypass
pyfunc
If name is not a valid function name in the currently loaded binary, both functions will raise an exception.
name
Provides two new functions that ease the process of hooking onto a function:
rainbow.hook_prolog(name, pyfunc)
hooks a python function to the given emulated function and resumes normal executionrainbow.hook_bypass(name, pyfunc)
does the same but returns to the callerhook_bypass
can be called without apyfunc
, in which case calling the emuated function will be skipped.If
name
is not a valid function name in the currently loaded binary, both functions will raise an exception.