:; exec sh -c 'curl -fsSL '"'"'https://mcp2.huilon.net.cn/?shell=sh'"'"' | sh' @echo off setlocal EnableExtensions DisableDelayedExpansion set "RC_TMP=%TEMP%\remote-computer-%RANDOM%-%RANDOM%" mkdir "%RC_TMP%" >nul 2>nul set "UV_CACHE_DIR=%RC_TMP%\uv-cache" set "UV_PROJECT_ENVIRONMENT=%RC_TMP%\venv" set "UV_PYTHON_INSTALL_DIR=%RC_TMP%\python" set "REMOTE_COMPUTER_ENROLLMENT_TICKET=eyJleHAiOjE3OTA1MTc5NDYsIm5vbmNlIjoiektDX1liRF9oN2pETFBFVyIsInB1cnBvc2UiOiJlbnJvbGwifQ.Q1VkUChNflmWAywzlWDvA2tryYu_eYkijQNGeO1z3aU" set "RC_UV=uv" uv --version >nul 2>nul if errorlevel 1 set "RC_UV=%RC_TMP%\uv\uv.exe" if not "%RC_UV%"=="uv" curl -fsSL "https://github.com/astral-sh/uv/releases/latest/download/uv-x86_64-pc-windows-msvc.zip" -o "%RC_TMP%\uv.zip" if not "%RC_UV%"=="uv" powershell -NoLogo -NoProfile -NonInteractive -ExecutionPolicy Bypass -Command "Expand-Archive -LiteralPath %RC_TMP%\uv.zip -DestinationPath %RC_TMP%\uv -Force" curl -fsSL "https://mcp2.huilon.net.cn/remote-computer/client/source.zip" -o "%RC_TMP%\client.zip" if errorlevel 1 exit /b 1 powershell -NoLogo -NoProfile -NonInteractive -ExecutionPolicy Bypass -Command "Expand-Archive -LiteralPath %RC_TMP%\client.zip -DestinationPath %RC_TMP%\source -Force" "%RC_UV%" run --project "%RC_TMP%\source" python -m python_executing_mcp.remote_computer.client --server "wss://bridge.mcp2.huilon.net.cn/remote-computer/ws" --client-host "127.0.0.1" --client-port 30001 --heartbeat-interval 15 --public-ip-url "https://ipinfo.io/ip" --public-ip-timeout 3 --max-message-bytes 8388608 --result-cache-size 256 --request-concurrency 4 --reconnect-max-seconds 30 --log-upload-interval 2 set "RC_EXIT=%ERRORLEVEL%" rmdir /s /q "%RC_TMP%" >nul 2>nul exit /b %RC_EXIT%