Files
kematianc2/panel/reset.bat
T
2026-08-27 11:23:01 -06:00

55 lines
2.0 KiB
Batchfile

@echo off
rem ============================================================
rem Kematian panel - full reset
rem Project: https://t.me/electronic_sex
rem
rem Stops the panel, then deletes:
rem - kematian.db (all clients / loot / admin account)
rem - kematian_e2ee.key (E2EE keypair - regenerates on start)
rem - .setup_done (re-enables /setup)
rem - builds\*.exe (previously built agents)
rem - loot\* (hosted files)
rem - __pycache__ (stale bytecode)
rem - final\kematian.exe (built agent)
rem - final\kematian.log (agent run log)
rem
rem Keeps panel.env (ingest key / secret). Delete panel.env too if
rem you want setup.bat to prompt for fresh credentials again.
rem ============================================================
cd /d "%~dp0"
echo.
echo This will WIPE all collected data and the admin account.
echo Built agents under builds\ and final\ are deleted too.
echo (panel.env with your ingest key is KEPT.)
echo.
set /p confirm="Type RESET to continue, anything else to cancel: "
if /i not "%confirm%"=="RESET" (
echo Cancelled.
pause
exit /b 0
)
echo.
echo [1/2] Stopping any running panel (port 5000)...
for /f "tokens=5" %%p in ('netstat -ano ^| findstr ":5000" ^| findstr "LISTENING"') do (
echo killing PID %%p
taskkill /f /pid %%p >nul 2>&1
)
echo [2/2] Deleting state...
if exist kematian.db del /f kematian.db
if exist kematian_e2ee.key del /f kematian_e2ee.key
if exist .setup_done del /f .setup_done
if exist builds del /f /q builds\*.exe 2>nul
if exist loot rmdir /s /q loot
if exist __pycache__ rmdir /s /q __pycache__
if exist "..\Kematian-Standalone\final\kematian.exe" del /f "..\Kematian-Standalone\final\kematian.exe"
if exist "..\Kematian-Standalone\final\kematian.log" del /f "..\Kematian-Standalone\final\kematian.log"
echo.
echo Done. Start the panel with setup.bat (or python app.py) and
echo visit http://localhost:5000/setup to create a fresh admin account.
echo.
pause