Quantcast
Channel: Essence Sharing | 干货分享 - iOSRE
Viewing all articles
Browse latest Browse all 301

Frida-iOS-dump无法安装在Catalina的解决方案

$
0
0

@Lakr233 wrote:

原理很简单:
Python.framework -> /System/Volumes/Data/System/Library/FrameworksStash/Python.framework

Catalina启动的时候挂载顺序如下

/dev/disk2s6 on / (apfs, local, read-only, journaled)
/dev/disk2s2 on /System/Volumes/Data (apfs, local, journaled, nobrowse)

Catalina恢复模式挂载如下

/dev/disk2s6 on /Volumes/macOS
/dev/disk2s2 on /Volumes/macOS\ -\ Data

Solution: 进入恢复模式或者从U盘启动,开个终端进uid0

#创建临时文件夹
mkdir -p /System/Volumes/Data/System/Library/FrameworksStash/Python.framework
#移动这个framework到数据分区
mv /System/Library/Frameworks/Python.framework\
⁠ ⁠ ⁠ ⁠ ⁠ ⁠ ⁠ ⁠ ⁠ ⁠ /Volumes/macOS\ - \ Data/System/Library/FrameworksStash/Python.framework
#链接framework到临时文件夹也就是启动以后会挂载的目标文件夹
ln -s /System/Volumes/Data/System/Library/FrameworksStash/Python.framework
⁠ ⁠ ⁠ ⁠ ⁠ ⁠ ⁠ ⁠ ⁠ ⁠/System/Library/Frameworks/Python.framework
#删除临时文件夹防止挂载冲突
rm -rf /System/Volumes/Data/System/Library/FrameworksStash/Python.framework

然后再按照标准过程安装就不会有问题了,安装完成记得修改一下访问权限 如果后续再出现No module named的话可以考虑指定python版本


11

Posts: 2

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 301

Trending Articles