Install MobSF in Windows WSL Kali Linux

Dr. Gupta
2 min readOct 11, 2021

--

What is MobSF ?

Mobile Security Framework (MobSF) is an automated, all-in-one mobile application (Android/iOS/Windows) pen-testing, malware analysis and security assessment framework capable of performing static and dynamic analysis. MobSF support mobile app binaries (APK, XAPK, IPA & APPX) along with zipped source code and provides REST APIs for seamless integration with your CI/CD or DevSecOps pipeline.The Dynamic Analyzer helps you to perform runtime security assessment and interactive instrumented testing.

Requirements to Install MobSF in windows WSL Kali Linux :

  • Install Git sudo apt-get install git
  • Install Python 3.8–3.9 sudo apt-get install python3.8
  • Install JDK 8+ sudo apt-get install openjdk-8-jdk
  • Install the following dependencies
  • sudo apt install python3-dev python3-venv python3-pip build-essential libffi-dev libssl-dev libxml2-dev libxslt1-dev libjpeg8-dev zlib1g-dev wkhtmltopdf

I was getting error in installing this dependencylibjpeg8-dev so I have to install another version of it called libjpeg62-turbo-dev with below command:

sudo apt install libjpeg62-turbo-dev

If you like to generate PDF documents of the MobSF report then install wkhtmltopdf too: sudo apt install wkhtmltopdf

  • Other Requirements which you will need in Windows WSL Kali Linux:
  • sudo apt install python3-pip
  • sudo apt install python3.9-venv

Steps to Install MobSF from Github:

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

To run MobSF:

./run.sh It will start a server in localhost:8000 , you can browse it either inside kali linux browser or inside windows browser.

after running ./run.sh
MobSF in localhost:8000 while browsing
MobSF localhost Homepage
MobSF after browsing localhost:8000

To update MobSF:

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

--

--

Dr. Gupta
Dr. Gupta

Written by Dr. Gupta

ll Insomniac Doctor loves Terminal || #Security_Researcher #DayTrader || Learn and Earn || #Web3_Doctor || Rookie Smart Contract Dev & Security Researcher ||

No responses yet