frida-ios-dump遇到的问题记录

1.No module named 'frida'

Traceback (most recent call last):
  File "/opt/dump/dump.py", line 11, in 
    import frida
ModuleNotFoundError: No module named 'frida'
Traceback (most recent call last):
  File "/opt/dump/dump.py", line 22, in 
    from scp import SCPClient
ModuleNotFoundError: No module named 'scp'
Traceback (most recent call last):
  File "/opt/dump/dump.py", line 23, in 
    from tqdm import tqdm
ModuleNotFoundError: No module named 'tqdm'

解决方式:缺什么就装什么

pip3 install 要装的模块名 

例如:

pip3 install tqdm

需要看日志就加上--log

pip3 install 要装的模块名 --log 日志输出的文件

例如:

pip3 install tqdm --log ~/Desktop/Log.txt

如果上面的方式解决不了可以参考下面的方式
关于这个报错网上有说是头文件引用问题的
解决方式:

vim /opt/dump/dump.py #找到并编辑dump.py  找不到的试试这个  which dump.py
#把 “#!/usr/bin/env python” 改为 “#!/usr/bin/env python3”

2.ERROR: Command errored out with exit status 1

Collecting cryptography>=2.5
  Using cached cryptography-37.0.4.tar.gz (585 kB)
  Installing build dependencies ... done
  Getting requirements to build wheel ... error
ERROR: Command errored out with exit status 1: /Applications/Xcode.app/Contents/Developer/usr/bin/python3 /Applications/Xcode.app/Contents/Developer/Library/Frameworks/Python3.framework/Versions/3.8/lib/python3.8/site-packages/pip/_vendor/pep517/_in_process.py get_requires_for_build_wheel /var/folders/hz/zs6y7gr93nz7qt8tdwr5h9800000gn/T/tmpivy2_4b7 Check the logs for full command output.
WARNING: You are using pip version 20.2.3; however, version 22.1.2 is available.
You should consider upgrading via the '/Applications/Xcode.app/Contents/Developer/usr/bin/python3 -m pip install --upgrade pip' command.

解决方法:按照警告里面的提示更新pip然后再继续

/Applications/Xcode.app/Contents/Developer/usr/bin/python3 -m pip install --upgrade pip

3.开始砸壳报错"need Gadget to attach on jailed iOS"

need Gadget to attach on jailed iOS; its default location is: /Users/xxxx/.cache/frida/gadget-ios.dylib

到这里下载对应的gadget

image.png

然后解压后放到提示的目录下再继续,没有就创建,记得改名字gadget-ios.dylib

~/.cache/frida/gadget-ios.dylib

使用:

dump.py -l #列出手机上的应用列表
dump.py 应用名 -o 输出文件夹 #砸壳应用并将ipa文件放到指定的位置

你可能感兴趣的:(frida-ios-dump遇到的问题记录)