Package Libs :: Module libhook :: Class Hook
[hide private]
[frames] | no frames]

Class Hook

source code

Known Subclasses:
AccessViolationHook, AllExceptHook, BpHook, CreateProcessHook, CreateThreadHook, ExitProcessHook, ExitThreadHook, LoadDLLHook, LogBpHook, PostAnalysisHook, PreBpHook, RunUntilAV, UnloadDLLHook

Instance Methods [hide private]
  __init__(self)
  enable(self)
Enable hook execution
  disable(self)
Disable hook execution
  UnHook(self)
Remove the hook
  add(self, description, address=0, force=0, timeout=0, mode=0)
Add hook to Immunity Debugger hook database
  _run(self, regs)
regs is the actual cpu context, be sure of using this values and not the ones from imm.getRegs() at hook time
  _runTimeout(self, regs)
regs is the actual cpu context, be sure of using this values and not the ones from imm.getRegs() at hook time
  run(self, regs)
  runTimeout(self, regs)

Method Details [hide private]

__init__(self)
(Constructor)

source code 
None

enable(self)

source code 
Enable hook execution

disable(self)

source code 
Disable hook execution

UnHook(self)

source code 
Remove the hook

add(self, description, address=0, force=0, timeout=0, mode=0)

source code 
Add hook to Immunity Debugger hook database
Parameters:
  • type - Type of hook
  • desc - Descriptive string
  • force - Force hook adding
  • timeout - time to live in memory
  • mode - thread mode of ttl execution

_run(self, regs)

source code 
regs is the actual cpu context, be sure of using this values and not the ones from imm.getRegs() at hook time

_runTimeout(self, regs)

source code 
regs is the actual cpu context, be sure of using this values and not the ones from imm.getRegs() at hook time

run(self, regs)

source code 
None

runTimeout(self, regs)

source code 
None