Ledger-Donjon / rainbow

Makes Unicorn traces. Generic Side-Channel and Fault Injection simulator
GNU Lesser General Public License v3.0
172 stars 34 forks source link

Provide APIs for stubbing #19

Closed yhql closed 2 years ago

yhql commented 2 years ago

Provides two new functions that ease the process of hooking onto a function:

hook_bypass can be called without a pyfunc, 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.