Нет описания
Вы не можете выбрать более 25 тем Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. @echo off
  2. setlocal
  3. title Remote Access Platform - Setup
  4. echo ============================================
  5. echo Remote Access Platform - Setup
  6. echo ============================================
  7. echo.
  8. REM --- Check Node.js ---
  9. where node >nul 2>nul
  10. if errorlevel 1 (
  11. echo [X] Node.js is not installed.
  12. echo Please install Node.js 22.5 or newer from https://nodejs.org
  13. echo Then run this SETUP.bat again.
  14. echo.
  15. pause
  16. exit /b 1
  17. )
  18. for /f "tokens=*" %%v in ('node -v') do set NODEV=%%v
  19. echo [OK] Node.js found: %NODEV%
  20. echo.
  21. REM --- Install server dependencies ---
  22. echo Installing SERVER dependencies...
  23. pushd "%~dp0server"
  24. call npm install --no-audit --no-fund
  25. if errorlevel 1 ( echo [X] Server install failed. & popd & pause & exit /b 1 )
  26. popd
  27. echo [OK] Server ready.
  28. echo.
  29. REM --- Install agent dependencies (Electron + input injection) ---
  30. echo Installing AGENT dependencies (Electron download may take a few minutes)...
  31. pushd "%~dp0agent"
  32. call npm install --no-audit --no-fund
  33. if errorlevel 1 ( echo [!] Agent install had issues. Input injection may be limited, but the agent will still run. )
  34. popd
  35. echo [OK] Agent ready.
  36. echo.
  37. echo ============================================
  38. echo Setup complete!
  39. echo ============================================
  40. echo.
  41. echo Next steps:
  42. echo 1. Double-click Start-Server.bat
  43. echo 2. Open http://localhost:8090 in your browser
  44. echo 3. Register a team, set up 2FA, enroll a machine (copy the token)
  45. echo 4. Double-click Start-Agent.bat and paste the token
  46. echo.
  47. pause