-
-
[原创]利用wing ide动态调试ida7 python插件
-
发表于:
2018-2-11 16:58
7206
-
[原创]利用wing ide动态调试ida7 python插件
[环境]
win7 64
ida7下载的是IDA_Pro_v7.0_Portable(网上很多)
Wing IDE PRO 6.0(http://www.ddooo.com/softdown/113892.htm 文件安全未知)
python2.7.13
python安装目录D:\Program Files\Python27
ida7安装目录D:\pjtoolz\IDA_Pro_v7.0_Portable
wing安装目录D:\Program Files (x86)\Wing IDE 6.0
[方法]
1,把
D:\Program Files (x86)\Wing IDE 6.0里的wingdbstub.py不用修改直接复制到
D:\pjtoolz\IDA_Pro_v7.0_Portable\python
2,在D:\Program Files\Python27\Lib\site-packages新建mypath.pth文件
D:\pjtoolz\IDA_Pro_v7.0_Portable\python
D:\pjtoolz\IDA_Pro_v7.0_Portable\python\lib\python2.7\lib-dynload\ida_64
因为
D:\pjtoolz\IDA_Pro_v7.0_Portable
有很多sdk需要让wing ide识别,所以要把路径加进来
3,在D:\pjtoolz\IDA_Pro_v7.0_Portable\plugins新建sample_debuggee.py
# filename: sample_debuggee.py
import idaapi
import ida_idaapi
from idc import *
import wingdbstub
def my_debugged_function():
# Set breakpoint here!
var1='aaa'
var2='bbb'
msg(var1)
msg(var2)
class SamplePlugin(idaapi.plugin_t):
flags = idaapi.PLUGIN_PROC
comment = "Sample Debuggee"
help = "Sample Debuggee"
wanted_name = "Sample Debuggee"
wanted_hotkey = "Shift+D"
def init(self):
return idaapi.PLUGIN_KEEP
def term(self):
pass
def run(self, arg):
wingdbstub.Ensure()
my_debugged_function()
def PLUGIN_ENTRY():
return SamplePlugin()
[招生]科锐逆向工程师培训(2024年11月15日实地,远程教学同时开班, 第51期)