mirror of
https://github.com/MobSF/Mobile-Security-Framework-MobSF.git
synced 2026-10-12 02:06:59 +00:00
31 lines
1.0 KiB
Batchfile
31 lines
1.0 KiB
Batchfile
@echo off
|
|
echo =======================MobSF Clean Script for Windows=======================
|
|
echo Running this script will delete the Scan database, all files uploaded and generated.
|
|
SET mypath=%~dp0
|
|
echo %mypath:~0,-1%
|
|
IF "%~1"=="y" (
|
|
echo Deleting all Uploads
|
|
rmdir "mobsf\uploads" /q /s >nul 2>&1
|
|
echo Deleting all Downloads
|
|
rmdir "mobsf\downloads" /q /s >nul 2>&1
|
|
echo Deleting Static Analyzer Migrations
|
|
rmdir "mobsf\StaticAnalyzer\migrations" /q /s >nul 2>&1
|
|
echo Deleting Dynamic Analyzer Migrations
|
|
rmdir "mobsf\DynamicAnalyzer\migrations" /q /s >nul 2>&1
|
|
echo Deleting MobSF Migrations
|
|
rmdir "mobsf\MobSF\migrations" /q /s >nul 2>&1
|
|
echo Deleting temp and log files
|
|
del /f "mobsf\debug.log" >nul 2>&1
|
|
del /f "classes*" >nul 2>&1
|
|
echo Deleting DB
|
|
del /f "mobsf\db.sqlite3" >nul 2>&1
|
|
echo Deleting Secret File
|
|
del /f "mobsf\secret" >nul 2>&1
|
|
echo Deleting Previous Setup files
|
|
rmdir "%UserProfile%\MobSF" /q /s >nul 2>&1
|
|
del /f "setup_done.txt" >nul 2>&1
|
|
echo Done
|
|
) ELSE (
|
|
echo Please run script from mobsf.MobSF directory
|
|
echo 'scripts/clean.bat y
|
|
) |