From a725b3eb659e4909c0f0924c664716a590be908d Mon Sep 17 00:00:00 2001 From: Yevgeny Kungurov Date: Sat, 13 Dec 2025 16:51:59 +0300 Subject: [PATCH] Improved diagnostics (#6488) --- service.bat | 28 ++++++++++++++++++++++++++-- 1 file changed, 26 insertions(+), 2 deletions(-) diff --git a/service.bat b/service.bat index 710ace4..ce0b777 100644 --- a/service.bat +++ b/service.bat @@ -82,13 +82,18 @@ if !errorlevel!==0 ( call :test_service zapret call :test_service WinDivert + +set "BIN_PATH=%~dp0bin\" +if not exist "%BIN_PATH%\*.sys" ( + call :PrintRed "WinDivert64.sys file NOT found." +) echo: tasklist /FI "IMAGENAME eq winws.exe" | find /I "winws.exe" > nul if !errorlevel!==0 ( - call :PrintGreen "Bypass (winws.exe) is ACTIVE" + call :PrintGreen "Bypass (winws.exe) is RUNNING." ) else ( - call :PrintRed "Bypass (winws.exe) NOT FOUND" + call :PrintRed "Bypass (winws.exe) is NOT running." ) pause @@ -373,6 +378,16 @@ if !proxyEnabled!==1 ( ) echo: +:: Check netsh +where netsh >nul 2>nul +if !errorlevel! neq 0 ( + call :PrintRed "[X] netsh command not found, check your PATH variable" + echo PATH = "%PATH%" + echo: + pause + goto menu +) + :: TCP timestamps check netsh interface tcp show global | findstr /i "timestamps" | findstr /i "enabled" > nul if !errorlevel!==0 ( @@ -448,6 +463,15 @@ if !errorlevel!==0 ( ) echo: +:: WinDivert64.sys file +set "BIN_PATH=%~dp0bin\" +if not exist "%BIN_PATH%\*.sys" ( + call :PrintRed "WinDivert64.sys file NOT found." +) else ( + call :PrintGreen "WinDivert64.sys file found." +) +echo: + :: VPN sc query | findstr /I "VPN" > nul if !errorlevel!==0 (