mirror of
https://github.com/BigBodyCobain/Shadowbroker.git
synced 2026-04-23 02:56:08 +02:00
668ce16dc7
Gate messages now propagate via the Infonet hashchain as encrypted blobs — every node syncs them through normal chain sync while only Gate members with MLS keys can decrypt. Added mesh reputation system, peer push workers, voluntary Wormhole opt-in for node participation, fork recovery, killwormhole scripts, obfuscated terminology, and hardened the self-updater to protect encryption keys and chain state during updates. New features: Shodan search, train tracking, Sentinel Hub imagery, 8 new intelligence layers, CCTV expansion to 11,000+ cameras across 6 countries, Mesh Terminal CLI, prediction markets, desktop-shell scaffold, and comprehensive mesh test suite (215 frontend + backend tests passing). Community contributors: @wa1id, @AlborzNazari, @adust09, @Xpirix, @imqdcr, @csysp, @suranyami, @chr0n1x, @johan-martensson, @singularfailure, @smithbh, @OrfeoTerkuci, @deuza, @tm-const, @Elhard1, @ttulttul
111 lines
2.8 KiB
Batchfile
111 lines
2.8 KiB
Batchfile
@echo off
|
|
title ShadowBroker - Mesh Node
|
|
color 0B
|
|
|
|
echo ===================================================
|
|
echo S H A D O W B R O K E R -- MESH NODE
|
|
echo ===================================================
|
|
echo.
|
|
echo Lightweight node — syncs the Infonet chain only.
|
|
echo No map, no frontend, no data feeds.
|
|
echo Close this window to stop the node.
|
|
echo.
|
|
|
|
:: Check for Python
|
|
where python >nul 2>&1
|
|
if %errorlevel% neq 0 (
|
|
echo [!] ERROR: Python is not installed or not in PATH.
|
|
echo [!] Install Python 3.10-3.12 from https://python.org
|
|
echo [!] IMPORTANT: Check "Add to PATH" during install.
|
|
echo.
|
|
pause
|
|
exit /b 1
|
|
)
|
|
|
|
:: Check Python version
|
|
for /f "tokens=2 delims= " %%v in ('python --version 2^>^&1') do set PYVER=%%v
|
|
echo [*] Found Python %PYVER%
|
|
|
|
:: Kill anything on port 8000
|
|
echo [*] Clearing port 8000...
|
|
for /f "tokens=5" %%a in ('netstat -ano ^| findstr ":8000 " ^| findstr "LISTENING"') do (
|
|
taskkill /F /PID %%a >nul 2>&1
|
|
)
|
|
timeout /t 1 /nobreak >nul
|
|
|
|
cd backend
|
|
|
|
:: Setup venv
|
|
where uv >nul 2>&1
|
|
if %errorlevel% neq 0 goto :use_pip
|
|
|
|
echo [*] Using UV for Python dependency management.
|
|
if not exist "venv\" (
|
|
echo [*] Creating Python virtual environment...
|
|
uv venv
|
|
if %errorlevel% neq 0 (
|
|
echo [!] ERROR: Failed to create virtual environment.
|
|
pause
|
|
exit /b 1
|
|
)
|
|
)
|
|
call venv\Scripts\activate.bat
|
|
echo [*] Installing Python dependencies via UV (fast)...
|
|
cd ..
|
|
uv sync --frozen --no-dev
|
|
if %errorlevel% neq 0 goto :dep_fail
|
|
cd backend
|
|
goto :deps_ok
|
|
|
|
:use_pip
|
|
if not exist "venv\" (
|
|
echo [*] Creating Python virtual environment...
|
|
python -m venv venv
|
|
if %errorlevel% neq 0 (
|
|
echo [!] ERROR: Failed to create virtual environment.
|
|
pause
|
|
exit /b 1
|
|
)
|
|
)
|
|
call venv\Scripts\activate.bat
|
|
echo [*] Installing Python dependencies...
|
|
pip install -q -r requirements.txt
|
|
if %errorlevel% neq 0 goto :dep_fail
|
|
goto :deps_ok
|
|
|
|
:dep_fail
|
|
echo.
|
|
echo [!] ERROR: Python dependency install failed.
|
|
pause
|
|
exit /b 1
|
|
|
|
:deps_ok
|
|
echo [*] Dependencies OK.
|
|
|
|
:: Install ws package for ais_proxy (needed even in mesh-only mode to avoid import errors)
|
|
if not exist "node_modules\ws" (
|
|
echo [*] Installing backend Node.js dependencies...
|
|
where npm >nul 2>&1
|
|
if %errorlevel% equ 0 (
|
|
call npm ci --omit=dev --silent 2>nul
|
|
)
|
|
)
|
|
|
|
:: Auto-enable the node on startup
|
|
echo [*] Auto-enabling node participation...
|
|
if not exist "data\" mkdir data
|
|
echo {"enabled":true,"updated_at":0} > data\node.json
|
|
|
|
echo.
|
|
echo ===================================================
|
|
echo Mesh node starting on port 8000
|
|
echo Mode: MESH_ONLY (no data feeds)
|
|
echo Relay: %MESH_RELAY_PEERS%
|
|
echo Press Ctrl+C to stop
|
|
echo ===================================================
|
|
echo.
|
|
|
|
set MESH_ONLY=true
|
|
set MESH_NODE_MODE=participant
|
|
python -m uvicorn main:app --host 0.0.0.0 --port 8000
|