ida插件keypatch报错
IDA版本:7.5
invalid syntax
E:\100 Program files\130 CTF\IDAPro\plugins\keypatch.py: invalid syntax (E:/100 Program files/130 CTF/IDAPro/plugins/keypatch.py, line 97)
Traceback (most recent call last):
File "E:\100 Program files\130 CTF\IDAPro\python\3\ida_idaapi.py", line 615, in IDAPython_ExecScript
code = compile(raw.decode(encoding), script, 'exec')
File "E:/100 Program files/130 CTF/IDAPro/plugins/keypatch.py", line 97
except HTTPError, e:
^
SyntaxError: invalid syntax
这里是文件内容出错,重新下载即可。
NameError: name 'KS_ARCH_X86' is not defined
E:\100 Program files\130 CTF\IDAPro\plugins\keypatch1.py: name 'KS_ARCH_X86' is not defined
Traceback (most recent call last):
File "E:\100 Program files\130 CTF\IDAPro\python\3\ida_idaapi.py", line 616, in IDAPython_ExecScript
exec(code, g)
File "E:/100 Program files/130 CTF/IDAPro/plugins/keypatch1.py", line 265, in <module>
class Keypatch_Asm:
File "E:/100 Program files/130 CTF/IDAPro/plugins/keypatch1.py", line 268, in Keypatch_Asm
"X86 16-bit": (KS_ARCH_X86, KS_MODE_16), # X86 16-bit
NameError: name 'KS_ARCH_X86' is not defined
解决:
需要安装 keystone-engine。直接 pip install keystone-engine 即可
或者64位系统只需要安装这个就行
https://github.com/keystone-engine/keystone/releases/download/0.9.1/keystone-0.9.1-python-win64.msi
我这里选了为python3安装