@echo off
title FRP-SOCKS Status
echo === Process status ===
tasklist /FI "IMAGENAME eq gost.exe" 2>nul | find /I "gost.exe" >nul && (echo gost.exe: RUNNING) || (echo gost.exe: NOT RUNNING)
tasklist /FI "IMAGENAME eq frpc.exe" 2>nul | find /I "frpc.exe" >nul && (echo frpc.exe: RUNNING) || (echo frpc.exe: NOT RUNNING)
echo.
echo === Port 1080 test ===
powershell -Command "Test-NetConnection -ComputerName 127.0.0.1 -Port 1080 -WarningAction SilentlyContinue | Select-Object TcpTestSucceeded" 2>nul
echo.
pause
