How does fastloghook work in immunity debugger pycommand section? i cant figure it out. Everything i try does not work and i know this code is a mess. I seriously dont understand fastloghook which makes me crazy when bphook worked so nicely. I need an explanation :/#!/usr/bin/env pythonimport immlibimport structfrom immlib import FastLogHookdef main(args):    Will hook and run its own assembly code then return controlimm = immlib.Debugger()# Set nameName = hippiefast = imm.getKnowledge(Name)if fast:    hook_list = fast.getAllLog()    imm.log(str(hook_list))        imm.log(%s item[1[0]])# Instantiate fastloghookfast = immlib.FastLogHook(imm)# Primary address to hook on tofast.logFunction(imm.getAddress(msvcrt.strcpy))# Takes register and offset. dereference parameters from the stack# or capture data at a known offset from a registerfast.logBaseDisplacement('ESP', 0x4)fast.logBaseDisplacement('ESP', 0x8)# Tracks the value of a specific register when the hook is hitfast.logRegister(ESP)# Logs known memory offset at hook time# fast.logDirectMemory()# Set the hookfast.Hook()# Save data so we can retrieve results laterimm.addKnowledge(Name, fast, force_add=1)return LogBPHook installed`
How to use fastloghook in immunity debugger
python;immunity debugger