0

我正在使用https://github.com/MarioVilas/winappdbg开发一个调试自动化系统。

我想从事件对象中检索进程名称。这是我的代码:

def EventHandler(event):
    print 'Inside event handler'
    # I want to print the  process name here, In this case which should be somefile.exe

debug = Debug( EventHandler, bKillOnExit = True )
proc = debug.execv(['c:\somefile.exe','arg'])
debug.loop()
4

1 回答 1

1

工具作者在 github 上回答了我的问题:Here is the solution

我们可以做 event.get_process().get_filename(),或者如果我们想要更花哨:

process = event.get_process()
name = process.get_filename()
print "Process: %s" % name
于 2017-03-26T04:26:01.990 回答