ida pro 7.5 使用ipython Byte报错问题解决

本文最后更新于:2022年11月13日 晚上

ida pro 7.5 使用ipython Byte报错问题解决

这两天使用ida 发现ipython代码无法运行

比如PatchByte(),Byte()都提示
NameError: name ‘Byte’ is not defined
又舍不得放弃7.5(一些题目拿7.5版生成的伪代码比7.0版要好看的多),
于是在网上查了很久,找出了解决办法。

方法1(兼容办法):

其次是在比较方便的在7.5用7.0API办法,来源:https://github.com/0xgalz/Virtuailor/issues/8
在代码面前:
from idc_bc695 import *
即可。

方法2(一劳永逸版):

来源官方文档:https://www.hex-rays.com/products/ida/support/ida74_idapython_no_bc695.shtml
找到

  • ~/.idapro/cfg/idapython.cfg (Linux)
  • %APPDATA%\Hex-Rays\IDA Pro\cfg\idapython.cfg (Windows) (绿色版的话在程序目录下那个cfg文件夹里)

把AUTOIMPORT_COMPAT_IDA695改为YES

文章来源 52pojie论坛用户神慯


ida pro 7.5 使用ipython Byte报错问题解决
https://huajien.gitee.io/2022/34052/
作者
HUAJI
发布于
2022年11月13日
许可协议