When you try to instance this class, one of the architecture specific
implementations is returned instead.
Instances act as an action callback for code breakpoints set at the
beginning of a function. It automatically retrieves the parameters from
the stack, sets a breakpoint at the return address and retrieves the
return value from the function call.
|
__init__(self,
preCB=None,
postCB=None,
paramCount=None,
signature=None,
arch=None)
x.__init__(...) initializes x; see help(type(x)) for signature |
source code
|
|
|
_cast_signature_pointers_to_void(self,
signature) |
source code
|
|
|
|
|
_get_return_address(self,
aProcess,
aThread) |
source code
|
|
|
_get_function_arguments(self,
aProcess,
aThread) |
source code
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
__push_params(self,
tid,
params)
Remembers the arguments tuple for the last call to the hooked
function from this thread. |
source code
|
|
|
__pop_params(self,
tid)
Forgets the arguments tuple for the last call to the hooked function
from this thread. |
source code
|
|
tuple( arg, arg, arg... )
|
get_params(self,
tid)
Returns the parameters found in the stack when the hooked function
was last called by this thread. |
source code
|
|
list of tuple( arg, arg, arg... )
|
get_params_stack(self,
tid)
Returns the parameters found in the stack each time the hooked
function was called by this thread and hasn't returned yet. |
source code
|
|
|
hook(self,
debug,
pid,
address)
Installs the function hook at a given process and address. |
source code
|
|
|
unhook(self,
debug,
pid,
address)
Removes the function hook at a given process and address. |
source code
|
|
Inherited from object :
__delattr__ ,
__format__ ,
__getattribute__ ,
__hash__ ,
__reduce__ ,
__reduce_ex__ ,
__repr__ ,
__setattr__ ,
__sizeof__ ,
__str__ ,
__subclasshook__
|