mirror of
https://github.com/ivellioscolin/pykd.git
synced 2025-04-20 11:43:23 +08:00

[+] bp without callback - always break when triggered, goLib - demo for this case [+] python thread restore for dbgCommand [~] remove trailing blanks git-svn-id: https://pykd.svn.codeplex.com/svn@69510 9b283d60-5439-405e-af05-b73fd8c4d996
35 lines
464 B
Python
35 lines
464 B
Python
"""
|
|
Using bp class without callback
|
|
"""
|
|
|
|
from pykd import *
|
|
|
|
|
|
if __name__ == "__main__":
|
|
|
|
if not isKernelDebugging():
|
|
|
|
if not isWindbgExt():
|
|
startProcess("calc.exe")
|
|
|
|
kernel32 = loadModule("kernel32")
|
|
|
|
bpA = bp( kernel32.LoadLibraryA )
|
|
bpW = bp( kernel32.LoadLibraryW )
|
|
|
|
go()
|
|
dbgCommand("gu")
|
|
|
|
dprintln( dbgCommand("!dlls @$retreg") )
|
|
|
|
else:
|
|
|
|
dprintln("Script for user mode only")
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|