美文网首页
MobSF安装 for Mac

MobSF安装 for Mac

作者: 沈宥 | 来源:发表于2020-06-10 11:53 被阅读0次

环境要求

  • 安装 Git

  • 安装 Python 3.7 (3.8 is not supported)

  • macOS Catalina 用户必须卸载现有的python3并从Python.org安装. 转到 /Applications/Python 3.7/ 然后运行 Install Certificates.commandUpdate Shell Profile.command

  • 安装 JDK 8+

  • 安装命令行工具 xcode-select --install

  • 下载和安装 wkhtmltopdf 按照 WIKI操作指南

  • macOS Mojave 用户, 请安装 headers(如果可用):

sudo installer -pkg /Library/Developer/CommandLineTools/Packages/macOS_SDK_headers_for_macOS_10.14.pkg -target /

下载安装

git clone https://github.com/MobSF/Mobile-Security-Framework-MobSF.git
cd Mobile-Security-Framework-MobSF
./setup.sh

安装问题汇总

1、RPC failed; curl 56 LibreSSL SSL_read: SSL_ERROR_SYSCALL, errno 60

原因:该项目由于时代久远,所以导致整个项目比较复杂庞大,而curl的postBuffer默认值太小
解决方法:

git config --global http.postBuffer 524288000
git config --global https.postBuffer 524288000
2、RPC failed; curl 56 LibreSSL SSL_read: SSL_ERROR_SYSCALL, errno 54

原因:必须改为 ssh 方式,使用公私钥的方式进行账号验证
解决方法:在GitHub中配置SSH key,登录到GitHub,在Accounting settings中选择SSH key, 点击Add SSH key

3、packet_write_wait: Connection to 13.229.188.59 port 22: Broken pipe

原因:网络下载速度缓慢
解决方法:命令行输入

git config --global http.lowSpeedLimit 0
git config --global http.lowSpeedTime 999999
4、ERROR: Failed building wheel for frida

原因:Python3版本需要手动安装frida依赖
解决方法:
手动下载frida-12.9.4-py3.7-macosx-10.9-x86_64.egg版本

官方下载网站:https://pypi.org/project/frida/#files

安装完成

git clone --depth=1 git@github.com:Shemiou/Mobile-Security-Framework-MobSF.git
正克隆到 'Mobile-Security-Framework-MobSF'...
remote: Enumerating objects: 425, done.
remote: Counting objects: 100% (425/425), done.
remote: Compressing objects: 100% (398/398), done.
remote: Total 425 (delta 39), reused 267 (delta 19), pack-reused 0
接收对象中: 100% (425/425), 132.33 MiB | 234.00 KiB/s, 完成.
处理 delta 中: 100% (39/39), 完成.
正在更新文件: 100% (376/376), 完成.

运行MobSF

./run.sh

升级MobSF

cd Mobile-Security-Framework-MobSF/
git pull origin master
. venv/bin/activate
pip install --no-cache-dir -r requirements.txt
python manage.py makemigrations
python manage.py makemigrations StaticAnalyzer
python manage.py migrate
deactivate

相关文章

网友评论

      本文标题:MobSF安装 for Mac

      本文链接:https://www.haomeiwen.com/subject/pbqszhtx.html