下载与运行
- 运行环境配置
- 安装 Git
- 安装python3.8~3.9;前往
/Applications/Python 3.8/
并执行Update Shell Profile.command
(设置python环境)和Install Certificates.command
(安装网络证书) - 安装 JDK 8+
- 安装命令行工具
xcode-select --install
- 下载和安装 wkhtmltopdf 按照 WIKI操作指南
- 脸白的上边就可以一遍过
另一台mac电脑报奇奇怪怪的错 ERROR: Failed building wheel for cryptography 报错1: 找不到openssl,brew reinstall openssl,根据提示设置环境变量 报错2: build/temp.macosx-12.5-arm64-cpython-38/_openssl.c:18674:10: error: implicit declaration of function 'ERR_GET_FUNC' is invalid in C99 [-Werror,-Wimplicit-function-declaration] error: command '/usr/bin/clang' failed with exit code 1 设置环境变量解决: export CFLAGS="-Wno-error=implicit-function-declaration" 最终取消这些环境变量也编成功了
- 下载MobSF
git clone https://github.com/MobSF/Mobile-Security-Framework-MobSF.git cd Mobile-Security-Framework-MobSF ./setup.sh
- 运行MobSF
./run.sh
pycharm调试
run.sh
的最后有运行配置,采用gunicorn运行。
mac额外添加的参数是为了解决多进程异常,永久解决:
sudo echo "export OBJC_DISABLE_INITIALIZE_FORK_SAFETY=YES" >> ~/.bash_profile && source ~/.bash_profile
即可运行和调试
2023-1-4记