![](/img/trans.png)
[英]keep getting access violation after setting a breakpoint with winappdbg
[英]Python winappdbg getting process name from event object
我正在使用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()
工具作者在github上回答了我的問題:這是解決方案
我們可以做event.get_process()。get_filename(),或者如果我們想更漂亮:
process = event.get_process()
name = process.get_filename()
print "Process: %s" % name
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.