mitm/diagnose_proxy.bat

35 lines
947 B
Batchfile

@echo off
echo ========================================
echo MITM Proxy Diagnostic Tool
echo ========================================
echo.
echo 1. Testing if port 8080 is listening...
netstat -an | findstr ":8080"
if %errorlevel% neq 0 (
echo ❌ Port 8080 is not listening
) else (
echo ✅ Port 8080 is listening
)
echo.
echo 2. Testing direct HTTP connection to proxy...
curl -v --max-time 5 http://127.0.0.1:8080/proxy-health 2>&1
echo.
echo 3. Checking Windows proxy settings...
reg query "HKCU\Software\Microsoft\Windows\CurrentVersion\Internet Settings" /v ProxyEnable
reg query "HKCU\Software\Microsoft\Windows\CurrentVersion\Internet Settings" /v ProxyServer
echo.
echo 4. Testing proxy with simple HTTP request...
curl -v --proxy http://127.0.0.1:8080 --max-time 10 http://httpbin.org/ip 2>&1
echo.
echo 5. Checking if any process is using port 8080...
netstat -ano | findstr ":8080"
echo.
echo Diagnostic complete.
pause