Files
Mobile-Security-Framework-M…/run.bat
T
Ajin Abraham be23758bc6 [HOTFIX] Add support for environment variable for MobSF config (#2150)
* add support for environment variable config
* Fixes #2109
* update lief
2023-03-30 12:20:35 -07:00

19 lines
470 B
Batchfile

@echo off
if [%1]==[] goto usage
SET conf=%1
goto :run
:usage
SET conf="0.0.0.0:8000 [::]:8000"
:run
set venv=.\venv\Scripts\activate
set server=.\venv\Scripts\waitress-serve.exe
if exist %server% (
echo Running MobSF on %conf%
%venv%
%server% --listen=%conf% --threads=10 --channel-timeout=3600 mobsf.MobSF.wsgi:application
) else (
echo [ERROR] Incomplete setup. Please ensure that setup.bat completes without any errors.
pause
exit /b
)