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