@echo off REM Set console to UTF-8 encoding to prevent garbled text on Chinese Windows systems chcp 65001 >nul 2>&1 echo Starting MITM Proxy Server... echo. echo Warning: This program requires administrator privileges! echo If you encounter permission issues, please run this script as administrator. echo. REM Check if running as administrator net session >nul 2>&1 if %errorLevel% neq 0 ( echo Error: Administrator privileges required! echo Please right-click this script and select "Run as administrator" pause exit /b 1 ) REM Check necessary files if not exist "cert.p12" ( echo Warning: cert.p12 file not found, program will use default configuration ) if not exist "CA.crt" ( echo Warning: CA.crt file not found, CA certificate installation will be skipped ) if not exist "config.toml" ( echo Error: config.toml configuration file not found! pause exit /b 1 ) REM Run program echo Starting proxy server... echo Press Ctrl+C to stop the program echo. go run . echo. echo Program exited. pause