@echo off title REAPER v2.0 - All-in-one launcher color 0C cd /d "%~dp0" :: ============================================================================ :: Single-file entry: Python check, pip deps, folders, smoke test, launch GUI :: ============================================================================ set PYTHONIOENCODING=utf-8 set PYTHONUNBUFFERED=1 cls echo. echo ╔══════════════════════════════════════════════════════════════╗ echo ║ REAPER v2.0 — ALL-IN-ONE ║ echo ║ deps · env · launch ║ echo ╚══════════════════════════════════════════════════════════════╝ echo. echo [1/6] Python... python --version >nul 2>&1 if %errorlevel% neq 0 ( echo [FAIL] Python not in PATH. Install 3.8+ from https://python.org/downloads pause exit /b 1 ) for /f "tokens=2" %%i in ('python --version 2^>^&1') do set pyver=%%i echo [OK] %pyver% echo. echo [2/6] Dependencies ^(pip^)... python -m pip install --upgrade pip -q if exist "requirements.txt" ( python -m pip install -r requirements.txt -q ) else ( python -m pip install aiohttp aiohttp-socks -q ) if %errorlevel% neq 0 ( echo [WARN] pip reported an issue — continuing ) else ( echo [OK] Requirements satisfied ) echo. echo [3/6] Directories... if not exist "wordlists" mkdir wordlists if not exist "results" mkdir results echo [OK] wordlists, results echo. echo [4/6] Project files ^& optional rdpthread.exe... set FILES=main.py gui.py scanner.py bruteforce.py ip_utils.py proxy.py for %%f in (%FILES%) do ( if exist "%%f" ( echo [OK] %%f ) else ( echo [WARN] missing %%f ) ) if not exist "results\good.txt" echo. > "results\good.txt" if exist "rdpthread.exe" ( echo [OK] rdpthread.exe — credential validation available ) else ( echo [--] rdpthread.exe optional — bundle for verified spray ) echo. echo [5/6] Import smoke test... python -c "from scanner import scan_ips, RDP_PORTS; from ip_utils import parse_ranges_file; from bruteforce import spray_all_hosts, TOP50_PASSWORDS; from proxy import ProxyManager; print(' [OK] imports')" 2>&1 if %errorlevel% neq 0 ( echo [FAIL] Import check failed. pause exit /b 1 ) echo. echo [6/6] Starting application... echo. python main.py set APP_EXIT=%errorlevel% if %APP_EXIT% neq 0 ( echo. echo [!] Exited with code %APP_EXIT% pause ) exit /b %APP_EXIT%