ubuntu16.04 mobsf 配置指南

一、安装 python3.8(1) 安装必要文件sudo apt update sudo apt install software-properties-commonsudo add-apt-repository ppa:deadsnakes/ppasudo apt install python3.8 python3.8-venv(2)配置 python3
摘要由CSDN通过智能技术生成

一、安装需要内容

(1) 安装必要文件

sudo apt update 
sudo apt install software-properties-common
sudo add-apt-repository ppa:deadsnakes/ppa
sudo apt install python3.8 python3.8-venv

(2)配置 python3

$ which python3.8
/usr/bin/python3.8

$ sudo update-alternatives --install /usr/bin/python3 python3 /usr/bin/python3.8 1
$ which python3
/usr/bin/python3

(3)安装 openjdk 1.8, 从 oracle 网站下载 1.8 版本,然后解压;

(4)vim ~/.bashrc 配置 JAVA_HOME路径,文件末尾追加;

export JAVA_HOME="$HOME/Soft/jdk1.8.0_141"
export JRE_HOME="$HOME/Soft/jdk1.8.0_141/jre"
export PATH=$JAVA_HOME/bin:$JAVA_HOME/jre/bin:$PATH

(5)安装其他内容:

参考:https://mobsf.github.io/docs/#/zh-cn/requirements?id=静态分析

sudo apt install python3-dev python3-venv python3-pip build-essential libffi-dev libssl-dev libxml2-dev libxslt1-dev libjpeg8-dev zlib1g-dev wkhtmltopdf

二、下载mbsf并设置

git clone https://github.com/MobSF/Mobile-Security-Framework-MobSF.git
cd Mobile-Security-Framework-MobSF
./setup.sh
$ ./setup.sh
[INSTALL] Found Python 3.8.11
pip 21.2.2 from /home/beantechs/.local/lib/python3.8/site-packages/pip (python 3.8)
[INSTALL] Found pip
Requirement already satisfied: pip in /home/beantechs/.local/lib/python3.8/site-packages (21.2.2)
[INSTALL] Using python virtualenv
[INSTALL] Activating virtualenv
Requirement already satisfied: pip in ./venv/lib/python3.8/site-packages (21.1.1)
Collecting pip
  Using cached pip-21.2.2-py3-none-any.whl (1.6 MB)
Installing collected packages: pip
  Attempting uninstall: pip
    Found existing installation: pip 21.1.1
    Uninstalling pip-21.1.1:
      Successfully uninstalled pip-21.1.1
Successfully installed pip-21.2.2
[INSTALL] Installing Requirements
Ignoring waitress: markers 'platform_system == "Windows"' don't match your environment
Collecting Django>=3.1.5
  Downloading Django-3.2.5-py3-none-any.whl (7.9 MB)
     |████████████████████████████████| 7.9 MB 1.1 MB/s
Collecting lxml>=4.6.2
  Downloading lxml-4.6.3-cp38-cp38-manylinux2014_x86_64.whl (6.8 MB)
     |████████████████████████████████| 6.8 MB 640 kB/s
Collecting rsa>=4.7
  Downloading rsa-4.7.2-py3-none-any.whl (34 kB)
Collecting biplist>=1.0.3
  Downloading biplist-1.0.3.tar.gz (21 kB)
Collecting requests>=2.25.1
  Downloading requests-2.26.0-py2.py3-none-any.whl (62 kB)
     |████████████████████████████████| 62 kB 1.1 MB/s
Collecting bs4>=0.0.1
  Downloading bs4-0.0.1.tar.gz (1.1 kB)
Collecting colorlog>=4.7.2
  Downloading colorlog-5.0.1-py2.py3-none-any.whl (10 kB)
Collecting macholib>=1.14
  Downloading macholib-1.14-py2.py3-none-any.whl (37 kB)
Collecting whitenoise>=5.2.0
  Downloading whitenoise-5.3.0-py2.py3-none-any.whl (19 kB)
Collecting gunicorn>=20.0.4
  Downloading gunicorn-20.1.0-py3-none-any.whl (79 kB)
     |████████████████████████████████| 79 kB 1.0 MB/s
Collecting psutil>=5.8.0
  Downloading psutil-5.8.0-cp38-cp38-manylinux2010_x86_64.whl (296 kB)
     |████████████████████████████████| 296 kB 746 kB/s
Collecting shelljob>=0.6.2
  Downloading shelljob-0.6.3-py3-none-any.whl (9.9 kB)
Collecting asn1crypto>=1.4.0
  Downloading asn1crypto-1.4.0-py2.py3-none-any.whl (104 kB)
     |████████████████████████████████| 104 kB 1.1 MB/s
Collecting oscrypto>=1.2.1
  Downloading oscrypto-1.2.1-py2.py3-none-any.whl (192 kB)
     |████████████████████████████████| 192 kB 1.0 MB/s
Collecting distro>=1.5.0
  Downloading distro-1.6.0-py2.py3-none-any.whl (19 kB)
Collecting IP2Location==8.6.2
  Downloading IP2Location-8.6.2-py2.py3-none-any.whl (9.2 kB)
Collecting lief>=0.11.0
  Downloading lief-0.11.5-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (4.0 MB)
     |████████████████████████████████| 4.0 MB 1.1 MB/s
Collecting http-tools>=2.1.0
  Downloading http-tools-2.1.0.tar.gz (540 kB)
     |████████████████████████████████| 540 kB 665 kB/s
Collecting libsast>=1.4.2
  Downloading libsast-1.4.5.tar.gz (37 kB)
Collecting pdfkit>=0.6.1
  Downloading pdfkit-0.6.1-py3-none-any.whl (12 kB)
Collecting google-play-scraper>=0.1.2
  Downloading google-play-scraper-1.0.0.tar.gz (52 kB)
     |████████████████████████████████| 52 kB 1.2 MB/s
Collecting androguard==3.4.0a1
  Downloading androguard-3.4.0a1-py3-none-any.whl (918 kB)
     |████████████████████████████████| 918 kB 950 kB/s
Collecting apkid==2.1.2
  Downloading apkid-2.1.2-py2.py3-none-any.whl (113 kB)
     |████████████████████████████████| 113 kB 1.1 MB/s
Collecting quark-engine==21.6.3
  Downloading quark_engine-21.6.3-py3-none-any.whl (45 kB)
     |████████████████████████████████| 45 kB 1.4 MB/s
Collecting frida==15.0.8
  Downloading frida-1
  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值