当前位置: 首页 > 工具软件 > MobSF > 使用案例 >

ubuntu16.04 mobsf 配置指南

周阳成
2023-12-01

一、安装需要内容

(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-15.0.8.tar.gz (9.1 kB)
Collecting ruamel.yaml==0.16.13
  Downloading ruamel.yaml-0.16.13-py2.py3-none-any.whl (111 kB)
     |████████████████████████████████| 111 kB 1.1 MB/s
Collecting click==7.1.2
  Downloading click-7.1.2-py2.py3-none-any.whl (82 kB)
     |████████████████████████████████| 82 kB 1.3 MB/s
Collecting decorator==4.4.2
  Downloading decorator-4.4.2-py2.py3-none-any.whl (9.2 kB)
Collecting sqlparse>=0.2.2
  Downloading sqlparse-0.4.1-py3-none-any.whl (42 kB)
     |████████████████████████████████| 42 kB 1.5 MB/s
Collecting asgiref<4,>=3.3.2
  Downloading asgiref-3.4.1-py3-none-any.whl (25 kB)
Collecting pytz
  Downloading pytz-2021.1-py2.py3-none-any.whl (510 kB)
     |████████████████████████████████| 510 kB 1.1 MB/s
Collecting pyasn1>=0.1.3
  Downloading pyasn1-0.4.8-py2.py3-none-any.whl (77 kB)
     |████████████████████████████████| 77 kB 1.4 MB/s
Collecting urllib3<1.27,>=1.21.1
  Downloading urllib3-1.26.6-py2.py3-none-any.whl (138 kB)
     |████████████████████████████████| 138 kB 1.1 MB/s
Collecting idna<4,>=2.5; python_version >= "3"
  Downloading idna-3.2-py3-none-any.whl (59 kB)
     |████████████████████████████████| 59 kB 1.3 MB/s
Collecting charset-normalizer~=2.0.0; python_version >= "3"
  Downloading charset_normalizer-2.0.4-py3-none-any.whl (36 kB)
Collecting certifi>=2017.4.17
  Downloading certifi-2021.5.30-py2.py3-none-any.whl (145 kB)
     |████████████████████████████████| 145 kB 1.1 MB/s
Collecting beautifulsoup4
  Downloading beautifulsoup4-4.9.3-py3-none-any.whl (115 kB)
     |████████████████████████████████| 115 kB 1.1 MB/s
Collecting altgraph>=0.15
  Downloading altgraph-0.17-py2.py3-none-any.whl (21 kB)
Requirement already satisfied: setuptools>=3.0 in ./venv/lib/python3.8/site-packages (from gunicorn>=20.0.4->-r requirements.txt (line 11)) (56.0.0)
Collecting mitmproxy>=6.0.0<=6.0.2
  Downloading mitmproxy-7.0.0-py3-none-any.whl (1.1 MB)
     |████████████████████████████████| 1.1 MB 1.1 MB/s
Collecting pyyaml>=5.3
  Downloading PyYAML-5.4.1-cp38-cp38-manylinux1_x86_64.whl (662 kB)
     |████████████████████████████████| 662 kB 1.1 MB/s
Collecting semgrep==0.53.0
  Downloading semgrep-0.53.0-cp36.cp37.cp38.cp39.py36.py37.py38.py39-none-any.whl (66.9 MB)
     |████████████████████████████████| 66.9 MB 459 kB/s
Collecting matplotlib>=3.0.2
  Downloading matplotlib-3.4.2-cp38-cp38-manylinux1_x86_64.whl (10.3 MB)
     |████████████████████████████████| 10.3 MB 719 kB/s
Collecting ipython>=5.0.0
  Downloading ipython-7.26.0-py3-none-any.whl (786 kB)
     |████████████████████████████████| 786 kB 413 kB/s
Collecting colorama>=0.4.1
  Downloading colorama-0.4.4-py2.py3-none-any.whl (16 kB)
Collecting pygments>=2.3.1
  Downloading Pygments-2.9.0-py3-none-any.whl (1.0 MB)
     |████████████████████████████████| 1.0 MB 566 kB/s
Collecting pydot>=1.4.1
  Downloading pydot-1.4.2-py2.py3-none-any.whl (21 kB)
Collecting networkx>=2.2
  Downloading networkx-2.6.2-py3-none-any.whl (1.9 MB)
     |████████████████████████████████| 1.9 MB 408 kB/s
Collecting yara-python-dex>=1.0.0
  Downloading yara_python_dex-1.0.1-cp38-cp38-manylinux2010_x86_64.whl (582 kB)
     |████████████████████████████████| 582 kB 454 kB/s
Collecting graphviz
  Downloading graphviz-0.17-py3-none-any.whl (18 kB)
Collecting pandas
  Downloading pandas-1.3.1-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (11.7 MB)
     |████████████████████████████████| 11.7 MB 458 kB/s
Collecting plotly
  Downloading plotly-5.1.0-py2.py3-none-any.whl (20.6 MB)
     |████████████████████████████████| 20.6 MB 267 kB/s
Collecting tqdm
  Downloading tqdm-4.62.0-py2.py3-none-any.whl (76 kB)
     |████████████████████████████████| 76 kB 458 kB/s
Collecting prettytable
  Downloading prettytable-2.1.0-py3-none-any.whl (22 kB)
Collecting prompt-toolkit==3.0.19
  Downloading prompt_toolkit-3.0.19-py3-none-any.whl (368 kB)
     |████████████████████████████████| 368 kB 421 kB/s
Collecting ruamel.yaml.clib>=0.1.2; platform_python_implementation == "CPython" and python_version < "3.10"
  Downloading ruamel.yaml.clib-0.2.6-cp38-cp38-manylinux1_x86_64.whl (570 kB)
     |████████████████████████████████| 570 kB 452 kB/s
Collecting soupsieve>1.2; python_version >= "3.0"
  Downloading soupsieve-2.2.1-py3-none-any.whl (33 kB)
Collecting flask<2.1,>=1.1.1
  Downloading Flask-2.0.1-py3-none-any.whl (94 kB)
     |████████████████████████████████| 94 kB 547 kB/s
Collecting blinker<1.5,>=1.4
  Downloading blinker-1.4.tar.gz (111 kB)
     |████████████████████████████████| 111 kB 483 kB/s
Collecting kaitaistruct<0.10,>=0.7
  Downloading kaitaistruct-0.9.tar.gz (5.5 kB)
Collecting ldap3<2.10,>=2.8
  Downloading ldap3-2.9.1-py2.py3-none-any.whl (432 kB)
     |████████████████████████████████| 432 kB 468 kB/s
Collecting passlib<1.8,>=1.6.5
  Downloading passlib-1.7.4-py2.py3-none-any.whl (525 kB)
     |████████████████████████████████| 525 kB 483 kB/s
Collecting zstandard<0.16,>=0.11
  Downloading zstandard-0.15.2-cp38-cp38-manylinux2014_x86_64.whl (2.2 MB)
     |████████████████████████████████| 2.2 MB 971 kB/s
Collecting pyperclip<1.9,>=1.6.0
  Downloading pyperclip-1.8.2.tar.gz (20 kB)
Collecting publicsuffix2<3,>=2.20190812
  Downloading publicsuffix2-2.20191221-py2.py3-none-any.whl (89 kB)
     |████████████████████████████████| 89 kB 385 kB/s
Collecting cryptography<3.5,>=3.3
  Downloading cryptography-3.4.7-cp36-abi3-manylinux2014_x86_64.whl (3.2 MB)
     |████████████████████████████████| 3.2 MB 604 kB/s
Collecting h11<0.13,>=0.11
  Downloading h11-0.12.0-py3-none-any.whl (54 kB)
     |████████████████████████████████| 54 kB 819 kB/s
Collecting wsproto<1.1,>=1.0
  Downloading wsproto-1.0.0-py3-none-any.whl (24 kB)
Collecting pyOpenSSL<20.1,>=20.0
  Downloading pyOpenSSL-20.0.1-py2.py3-none-any.whl (54 kB)
     |████████████████████████████████| 54 kB 850 kB/s
Collecting urwid<2.2,>=2.1.1
  Downloading urwid-2.1.2.tar.gz (634 kB)
     |████████████████████████████████| 634 kB 575 kB/s
Collecting tornado<7,>=4.3
  Downloading tornado-6.1-cp38-cp38-manylinux2010_x86_64.whl (427 kB)
     |████████████████████████████████| 427 kB 571 kB/s
Collecting msgpack<1.1.0,>=1.0.0
  Downloading msgpack-1.0.2-cp38-cp38-manylinux1_x86_64.whl (302 kB)
     |████████████████████████████████| 302 kB 436 kB/s
Collecting protobuf<3.18,>=3.14
  Downloading protobuf-3.17.3-cp38-cp38-manylinux_2_5_x86_64.manylinux1_x86_64.whl (1.0 MB)
     |████████████████████████████████| 1.0 MB 216 kB/s
Collecting h2<5,>=4.0
  Downloading h2-4.0.0-py3-none-any.whl (57 kB)
     |████████████████████████████████| 57 kB 261 kB/s
Collecting Brotli<1.1,>=1.0
  Downloading Brotli-1.0.9-cp38-cp38-manylinux1_x86_64.whl (357 kB)
     |████████████████████████████████| 357 kB 221 kB/s
Collecting hyperframe<7,>=6.0
  Downloading hyperframe-6.0.1-py3-none-any.whl (12 kB)
Collecting pyparsing<2.5,>=2.4.2
  Downloading pyparsing-2.4.7-py2.py3-none-any.whl (67 kB)
     |████████████████████████████████| 67 kB 298 kB/s
Collecting sortedcontainers<2.5,>=2.3
  Downloading sortedcontainers-2.4.0-py2.py3-none-any.whl (29 kB)
Collecting attrs>=19.3.0
  Downloading attrs-21.2.0-py2.py3-none-any.whl (53 kB)
     |████████████████████████████████| 53 kB 342 kB/s
Collecting jsonschema~=3.2.0
  Downloading jsonschema-3.2.0-py2.py3-none-any.whl (56 kB)
     |████████████████████████████████| 56 kB 329 kB/s
Collecting packaging>=20.4
  Downloading packaging-21.0-py3-none-any.whl (40 kB)
     |████████████████████████████████| 40 kB 287 kB/s
Collecting kiwisolver>=1.0.1
  Downloading kiwisolver-1.3.1-cp38-cp38-manylinux1_x86_64.whl (1.2 MB)
     |████████████████████████████████| 1.2 MB 291 kB/s
Collecting pillow>=6.2.0
  Downloading Pillow-8.3.1-cp38-cp38-manylinux_2_5_x86_64.manylinux1_x86_64.whl (3.0 MB)
     |████████████████████████████████| 3.0 MB 619 kB/s
Collecting numpy>=1.16
  Downloading numpy-1.21.1-cp38-cp38-manylinux_2_12_x86_64.manylinux2010_x86_64.whl (15.8 MB)
     |████████████████████████████████| 15.8 MB 793 kB/s
Collecting python-dateutil>=2.7
  Downloading python_dateutil-2.8.2-py2.py3-none-any.whl (247 kB)
     |████████████████████████████████| 247 kB 743 kB/s
Collecting cycler>=0.10
  Downloading cycler-0.10.0-py2.py3-none-any.whl (6.5 kB)
Collecting traitlets>=4.2
  Downloading traitlets-5.0.5-py3-none-any.whl (100 kB)
     |████████████████████████████████| 100 kB 1.0 MB/s
Collecting matplotlib-inline
  Downloading matplotlib_inline-0.1.2-py3-none-any.whl (8.2 kB)
Collecting jedi>=0.16
  Downloading jedi-0.18.0-py2.py3-none-any.whl (1.4 MB)
     |████████████████████████████████| 1.4 MB 860 kB/s
Collecting pexpect>4.3; sys_platform != "win32"
  Downloading pexpect-4.8.0-py2.py3-none-any.whl (59 kB)
     |████████████████████████████████| 59 kB 1.2 MB/s
Collecting backcall
  Downloading backcall-0.2.0-py2.py3-none-any.whl (11 kB)
Collecting pickleshare
  Downloading pickleshare-0.7.5-py2.py3-none-any.whl (6.9 kB)
Collecting tenacity>=6.2.0
  Downloading tenacity-8.0.1-py3-none-any.whl (24 kB)
Collecting six
  Downloading six-1.16.0-py2.py3-none-any.whl (11 kB)
Collecting wcwidth
  Downloading wcwidth-0.2.5-py2.py3-none-any.whl (30 kB)
Collecting Jinja2>=3.0
  Downloading Jinja2-3.0.1-py3-none-any.whl (133 kB)
     |████████████████████████████████| 133 kB 1.0 MB/s
Collecting itsdangerous>=2.0
  Downloading itsdangerous-2.0.1-py3-none-any.whl (18 kB)
Collecting Werkzeug>=2.0
  Downloading Werkzeug-2.0.1-py3-none-any.whl (288 kB)
     |████████████████████████████████| 288 kB 1.1 MB/s
Collecting cffi>=1.12
  Downloading cffi-1.14.6-cp38-cp38-manylinux1_x86_64.whl (411 kB)
     |████████████████████████████████| 411 kB 1.1 MB/s
Collecting hpack<5,>=4.0
  Downloading hpack-4.0.0-py3-none-any.whl (32 kB)
Collecting pyrsistent>=0.14.0
  Downloading pyrsistent-0.18.0-cp38-cp38-manylinux1_x86_64.whl (118 kB)
     |████████████████████████████████| 118 kB 1.2 MB/s
Collecting ipython-genutils
  Downloading ipython_genutils-0.2.0-py2.py3-none-any.whl (26 kB)
Collecting parso<0.9.0,>=0.8.0
  Downloading parso-0.8.2-py2.py3-none-any.whl (94 kB)
     |████████████████████████████████| 94 kB 1.4 MB/s
Collecting ptyprocess>=0.5
  Downloading ptyprocess-0.7.0-py2.py3-none-any.whl (13 kB)
Collecting MarkupSafe>=2.0
  Downloading MarkupSafe-2.0.1-cp38-cp38-manylinux2010_x86_64.whl (30 kB)
Collecting pycparser
  Downloading pycparser-2.20-py2.py3-none-any.whl (112 kB)
     |████████████████████████████████| 112 kB 1.2 MB/s
Using legacy 'setup.py install' for biplist, since package 'wheel' is not installed.
Using legacy 'setup.py install' for bs4, since package 'wheel' is not installed.
Using legacy 'setup.py install' for http-tools, since package 'wheel' is not installed.
Using legacy 'setup.py install' for libsast, since package 'wheel' is not installed.
Using legacy 'setup.py install' for google-play-scraper, since package 'wheel' is not installed.
Using legacy 'setup.py install' for frida, since package 'wheel' is not installed.
Using legacy 'setup.py install' for blinker, since package 'wheel' is not installed.
Using legacy 'setup.py install' for kaitaistruct, since package 'wheel' is not installed.
Using legacy 'setup.py install' for pyperclip, since package 'wheel' is not installed.
Using legacy 'setup.py install' for urwid, since package 'wheel' is not installed.
Installing collected packages: sqlparse, asgiref, pytz, Django, lxml, pyasn1, rsa, biplist, urllib3, idna, charset-normalizer, certifi, requests, soupsieve, beautifulsoup4, bs4, colorlog, altgraph, macholib, whitenoise, gunicorn, psutil, shelljob, asn1crypto, oscrypto, distro, IP2Location, lief, MarkupSafe, Jinja2, itsdangerous, Werkzeug, click, flask, blinker, kaitaistruct, ldap3, passlib, zstandard, pyperclip, publicsuffix2, pycparser, cffi, cryptography, h11, wsproto, six, pyOpenSSL, urwid, tornado, msgpack, protobuf, hyperframe, hpack, h2, Brotli, pyparsing, sortedcontainers, ruamel.yaml.clib, ruamel.yaml, mitmproxy, http-tools, pyyaml, attrs, pyrsistent, jsonschema, packaging, colorama, tqdm, semgrep, libsast, pdfkit, google-play-scraper, kiwisolver, pillow, numpy, python-dateutil, cycler, matplotlib, ipython-genutils, traitlets, wcwidth, prompt-toolkit, pygments, matplotlib-inline, decorator, parso, jedi, ptyprocess, pexpect, backcall, pickleshare, ipython, pydot, networkx, androguard, yara-python-dex, apkid, graphviz, pandas, tenacity, plotly, prettytable, quark-engine, frida
    Running setup.py install for biplist ... done
    Running setup.py install for bs4 ... done
    Running setup.py install for blinker ... done
    Running setup.py install for kaitaistruct ... done
    Running setup.py install for pyperclip ... done
    Running setup.py install for urwid ... done
    Running setup.py install for http-tools ... done
    Running setup.py install for libsast ... done
    Running setup.py install for google-play-scraper ... done
    Running setup.py install for frida ... done
ERROR: pip's legacy dependency resolver does not consider dependency conflicts when selecting packages. This behaviour is the source of the following dependency conflicts.
quark-engine 21.6.3 requires click==8.0.1, but you'll have click 7.1.2 which is incompatible.
Successfully installed Brotli-1.0.9 Django-3.2.5 IP2Location-8.6.2 Jinja2-3.0.1 MarkupSafe-2.0.1 Werkzeug-2.0.1 altgraph-0.17 androguard-3.4.0a1 apkid-2.1.2 asgiref-3.4.1 asn1crypto-1.4.0 attrs-21.2.0 backcall-0.2.0 beautifulsoup4-4.9.3 biplist-1.0.3 blinker-1.4 bs4-0.0.1 certifi-2021.5.30 cffi-1.14.6 charset-normalizer-2.0.4 click-7.1.2 colorama-0.4.4 colorlog-5.0.1 cryptography-3.4.7 cycler-0.10.0 decorator-4.4.2 distro-1.6.0 flask-2.0.1 frida-15.0.8 google-play-scraper-1.0.0 graphviz-0.17 gunicorn-20.1.0 h11-0.12.0 h2-4.0.0 hpack-4.0.0 http-tools-2.1.0 hyperframe-6.0.1 idna-3.2 ipython-7.26.0 ipython-genutils-0.2.0 itsdangerous-2.0.1 jedi-0.18.0 jsonschema-3.2.0 kaitaistruct-0.9 kiwisolver-1.3.1 ldap3-2.9.1 libsast-1.4.5 lief-0.11.5 lxml-4.6.3 macholib-1.14 matplotlib-3.4.2 matplotlib-inline-0.1.2 mitmproxy-7.0.0 msgpack-1.0.2 networkx-2.6.2 numpy-1.21.1 oscrypto-1.2.1 packaging-21.0 pandas-1.3.1 parso-0.8.2 passlib-1.7.4 pdfkit-0.6.1 pexpect-4.8.0 pickleshare-0.7.5 pillow-8.3.1 plotly-5.1.0 prettytable-2.1.0 prompt-toolkit-3.0.19 protobuf-3.17.3 psutil-5.8.0 ptyprocess-0.7.0 publicsuffix2-2.20191221 pyOpenSSL-20.0.1 pyasn1-0.4.8 pycparser-2.20 pydot-1.4.2 pygments-2.9.0 pyparsing-2.4.7 pyperclip-1.8.2 pyrsistent-0.18.0 python-dateutil-2.8.2 pytz-2021.1 pyyaml-5.4.1 quark-engine-21.6.3 requests-2.26.0 rsa-4.7.2 ruamel.yaml-0.16.13 ruamel.yaml.clib-0.2.6 semgrep-0.53.0 shelljob-0.6.3 six-1.16.0 sortedcontainers-2.4.0 soupsieve-2.2.1 sqlparse-0.4.1 tenacity-8.0.1 tornado-6.1 tqdm-4.62.0 traitlets-5.0.5 urllib3-1.26.6 urwid-2.1.2 wcwidth-0.2.5 whitenoise-5.3.0 wsproto-1.0.0 yara-python-dex-1.0.1 zstandard-0.15.2
[INSTALL] Clean Up

=======================MobSF Clean Script for Unix=======================
Running this script will delete the Scan database, all files uploaded and generated.

Deleting all Uploads
Deleting all Downloads
Deleting Static Analyzer Migrations
Deleting Dynamic Analyzer Migrations
Deleting MobSF Migrations
Deleting python byte code files
Deleting temp and log files
Deleting DB
Deleting Secret File
Done
[INSTALL] Migrating Database
/data/mobsf/framework/venv/lib/python3.8/site-packages/pdfkit/source.py:11: SyntaxWarning: "is" with a literal. Did you mean "=="?
  if self.type is 'file':
[INFO] 02/Aug/2021 05:57:11 -
  __  __       _    ____  _____         _____ _  _
 |  \/  | ___ | |__/ ___||  ___| __   _|___ /| || |
 | |\/| |/ _ \| '_ \___ \| |_    \ \ / / |_ \| || |_
 | |  | | (_) | |_) |__) |  _|    \ V / ___) |__   _|
 |_|  |_|\___/|_.__/____/|_|       \_/ |____(_) |_|

[INFO] 02/Aug/2021 05:57:11 - Mobile Security Framework v3.4.5 Beta
REST API Key: 74b19b1d6238e156438121de23bbd48aad9b627bdecec9d7bf7221329a010e7a
[INFO] 02/Aug/2021 05:57:11 - OS: Linux
[INFO] 02/Aug/2021 05:57:11 - Platform: Linux-4.15.0-144-generic-x86_64-with-glibc2.27
[INFO] 02/Aug/2021 05:57:11 - Dist: ubuntu 18.04 bionic
[INFO] 02/Aug/2021 05:57:11 - MobSF Basic Environment Check
[WARNING] 02/Aug/2021 05:57:11 - Dynamic Analysis related functions will not work.
Make sure a Genymotion Android VM/Android Studio Emulator is running before performing Dynamic Analysis.
No changes detected
[INFO] 02/Aug/2021 05:57:17 - Checking for Update.
[INFO] 02/Aug/2021 05:57:17 - No updates available.
[INFO] 02/Aug/2021 05:57:17 -
  __  __       _    ____  _____         _____ _  _
 |  \/  | ___ | |__/ ___||  ___| __   _|___ /| || |
 | |\/| |/ _ \| '_ \___ \| |_    \ \ / / |_ \| || |_
 | |  | | (_) | |_) |__) |  _|    \ V / ___) |__   _|
 |_|  |_|\___/|_.__/____/|_|       \_/ |____(_) |_|

[INFO] 02/Aug/2021 05:57:17 - Mobile Security Framework v3.4.5 Beta
REST API Key: 74b19b1d6238e156438121de23bbd48aad9b627bdecec9d7bf7221329a010e7a
[INFO] 02/Aug/2021 05:57:17 - OS: Linux
[INFO] 02/Aug/2021 05:57:17 - Platform: Linux-4.15.0-144-generic-x86_64-with-glibc2.27
[INFO] 02/Aug/2021 05:57:17 - Dist: ubuntu 18.04 bionic
[INFO] 02/Aug/2021 05:57:17 - MobSF Basic Environment Check
[WARNING] 02/Aug/2021 05:57:17 - Dynamic Analysis related functions will not work.
Make sure a Genymotion Android VM/Android Studio Emulator is running before performing Dynamic Analysis.
Migrations for 'StaticAnalyzer':
  mobsf/StaticAnalyzer/migrations/0001_initial.py
    - Create model RecentScansDB
    - Create model StaticAnalyzerAndroid
    - Create model StaticAnalyzerIOS
    - Create model StaticAnalyzerWindows
[INFO] 02/Aug/2021 05:57:23 - Checking for Update.
[INFO] 02/Aug/2021 05:57:24 - No updates available.
[INFO] 02/Aug/2021 05:57:25 -
  __  __       _    ____  _____         _____ _  _
 |  \/  | ___ | |__/ ___||  ___| __   _|___ /| || |
 | |\/| |/ _ \| '_ \___ \| |_    \ \ / / |_ \| || |_
 | |  | | (_) | |_) |__) |  _|    \ V / ___) |__   _|
 |_|  |_|\___/|_.__/____/|_|       \_/ |____(_) |_|

[INFO] 02/Aug/2021 05:57:25 - Mobile Security Framework v3.4.5 Beta
REST API Key: 74b19b1d6238e156438121de23bbd48aad9b627bdecec9d7bf7221329a010e7a
[INFO] 02/Aug/2021 05:57:25 - OS: Linux
[INFO] 02/Aug/2021 05:57:25 - Platform: Linux-4.15.0-144-generic-x86_64-with-glibc2.27
[INFO] 02/Aug/2021 05:57:25 - Dist: ubuntu 18.04 bionic
[INFO] 02/Aug/2021 05:57:25 - MobSF Basic Environment Check
[WARNING] 02/Aug/2021 05:57:25 - Dynamic Analysis related functions will not work.
Make sure a Genymotion Android VM/Android Studio Emulator is running before performing Dynamic Analysis.
Operations to perform:
  Apply all migrations: StaticAnalyzer, auth, contenttypes, sessions
Running migrations:
  Applying StaticAnalyzer.0001_initial... OK
  Applying contenttypes.0001_initial... OK
  Applying contenttypes.0002_remove_content_type_name... OK
  Applying auth.0001_initial... OK
  Applying auth.0002_alter_permission_name_max_length... OK
  Applying auth.0003_alter_user_email_max_length... OK
  Applying auth.0004_alter_user_username_opts... OK
  Applying auth.0005_alter_user_last_login_null... OK
  Applying auth.0006_require_contenttypes_0002... OK
  Applying auth.0007_alter_validators_add_error_messages... OK
  Applying auth.0008_alter_user_username_max_length... OK
  Applying auth.0009_alter_user_last_name_max_length... OK
  Applying auth.0010_alter_group_name_max_length... OK
  Applying auth.0011_update_proxy_permissions... OK
  Applying auth.0012_alter_user_first_name_max_length... OK
  Applying sessions.0001_initial... OK
[INFO] 02/Aug/2021 05:57:30 - Checking for Update.
[ERROR] 02/Aug/2021 05:57:35 - Cannot Check for updates.

配置成功后运行就可以了。

run.bat 127.0.0.1:8000

然后在浏览器里输入 localhost:8000 就能看到界面了。

 类似资料: