This API will analyze uploaded file with MobSF and return analysis result as JSON
- File upload to API
- Extract malware path and name variables from request
- Functions to send request to MobSF
- Upload file to MobSF
- Scan file
- Return JSON response
- Return JSON response to request
- Define static MobSF API key
- Refactor file structure
- Dockerize
- Build API image
- Build docker-compose and yml file
- ?Set static MobSF API KEY as secret variable
You can start by downloading this repo with git command below
git clone https://github.com/s-kali/MobSF-ScanAPI.git
Move to project directory
cd MobSF-ScanAPI
Run docker containers using compose (you can add --build tag)
docker-compose -f docker-compose.dev.yml up
curl -F 'file=@<filepath>' http://<API IP>:5000/file-upload