Package sysmon :: Module callback :: Class SysmonCallback
[hide private]
[frames] | no frames]

Class SysmonCallback

source code

A flexible and extensible callback class for sysmon.

Callback functions are registered with a unique identifying string, usually of the form part1.part2.specific.

Callback functions are called with a single argument, usually a dictionary. Callback functions are called in the order they were registered.

Instance Methods [hide private]
 
__init__(self)
Creates an empty callback.
source code
 
hook(self, name, func)
Hooks the given function onto a string.
source code
 
call(self, name, part)
Calls all hooks matching the string with the given data (usually the caller).
source code
Method Details [hide private]

hook(self, name, func)

source code 

Hooks the given function onto a string.

Whenever the string is called, the given function will be called with a single argument (passed from the original caller).

call(self, name, part)

source code 

Calls all hooks matching the string with the given data (usually the caller).

The hooks are called in the order they were created.