找回密码
 立即注册→加入我们

QQ登录

只需一步,快速开始

搜索
热搜: 下载 VB C 实现 编写
查看: 471|回复: 0

在MacOS高版本上使用IDA7.0

[复制链接]
发表于 2024-5-12 17:38:25 | 显示全部楼层 |阅读模式

欢迎访问技术宅的结界,请注册或者登录吧。

您需要 登录 才可以下载或查看,没有账号?立即注册→加入我们

×

背景

  由于MacOS高版本默认搭载Python3.x,而IDA7.0默认使用Python2.7,因此IDA7.0启动时因无法找到Python环境,无法使用Python脚本功能。

dlopen(/Applications/IDAPro/ida64.app/Contents/MacOS/plugins/python64.dylib): dlopen(/Applications/IDAPro/ida64.app/Contents/MacOS/plugins/python64.dylib, 0x0002): Library not loaded: /System/Library/Frameworks/Python.framework/Versions/2.7/Python
  Referenced from: <9ABFA618-49D6-38D0-8B94-CB4E602700E8> /Applications/IDAPro/ida.app/Contents/MacOS/plugins/python64.dylib
  Reason: tried: '/System/Library/Frameworks/Python.framework/Versions/2.7/Python' (no such file), '/System/Volumes/Preboot/Cryptexes/OS/System/Library/Frameworks/Python.framework/Versions/2.7/Python' (no such file), '/System/Library/Frameworks/Python.framework/Versions/2.7/Python' (no such file, not in dyld cache), '/Library/Frameworks/Python.framework/Versions/2.7/Python' (no such file)
/Applications/IDAPro/ida64.app/Contents/MacOS/plugins/python64.dylib: can't load file

  为什么使用IDA7.0?因为Mac版本最高只有该版本破解版是原生支持的,更高的版本需要在Win模拟环境中运行(如Wineskin)。笔者同时有IDA7.0及Wine版的IDA7.7,很多脚本是在7.0上开发的,不兼容于7.7。
  为了解决该问题,笔者专门研究了一下,经测试无法使用Conda环境的Python2.7,非标准Python会导致IDA启动弹窗"Importing site failed"。最终笔者探索出如下方式:

  1. 从Python官网安装Python2.7(https://www.python.org/ftp/python/2.7.18/python-2.7.18-macosx10.9.pkg).   
  2. 替换python64.dylib中的依赖库.   
    install_name_tool -change /System/Library/Frameworks/Python.framework/Versions/2.7/Python /Library/Frameworks/Python.framework/Versions/2.7/Python python64.dylib

最终,IDA7.0成功启动

回复

使用道具 举报

本版积分规则

QQ|Archiver|小黑屋|技术宅的结界 ( 滇ICP备16008837号 )|网站地图

GMT+8, 2024-9-8 09:47 , Processed in 0.032220 second(s), 21 queries , Gzip On.

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

快速回复 返回顶部 返回列表