mirror of
https://github.com/ivellioscolin/pykd.git
synced 2025-04-20 03:23:23 +08:00
31 lines
638 B
Python
31 lines
638 B
Python
![]() |
|
||
|
import sys
|
||
|
from pykd import *
|
||
|
|
||
|
def processInfo():
|
||
|
|
||
|
nt = module( "nt" )
|
||
|
|
||
|
processList = typedVarList( nt.PsActiveProcessHead, "nt!_EPROCESS", "ActiveProcessLinks" )
|
||
|
|
||
|
for process in processList:
|
||
|
print "".join( [chr(i) for i in process.ImageFileName if i != 0] )
|
||
|
|
||
|
def run():
|
||
|
|
||
|
if not isWindbgExt():
|
||
|
if not loadDump( sys.argv[1] ):
|
||
|
dprintln( sys.argv[1] + " - load failed" )
|
||
|
return
|
||
|
|
||
|
if not isKernelDebugging():
|
||
|
dprintln( "not a kernel debugging" )
|
||
|
return
|
||
|
|
||
|
processInfo()
|
||
|
|
||
|
if __name__ == "__main__":
|
||
|
run()
|
||
|
|
||
|
|