mirror of
https://github.com/BigBodyCobain/Shadowbroker.git
synced 2026-09-23 01:10:42 +02:00
v0.9.6: InfoNet hashchain, Wormhole gate encryption, mesh reputation, 16 community contributors
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
This commit is contained in:
@@ -0,0 +1,60 @@
|
||||
#!/usr/bin/env bash
|
||||
set -euo pipefail
|
||||
|
||||
echo "=========================================="
|
||||
echo " SHADOWBROKER - Kill Wormhole Process"
|
||||
echo "=========================================="
|
||||
echo
|
||||
|
||||
# 1. Try graceful API shutdown via the backend
|
||||
echo "[*] Attempting graceful shutdown via API..."
|
||||
if curl -s -X POST http://127.0.0.1:8000/api/wormhole/leave > /dev/null 2>&1; then
|
||||
echo "[+] API leave request sent."
|
||||
else
|
||||
echo "[-] Backend not reachable, skipping API call."
|
||||
fi
|
||||
|
||||
# 2. Kill any process listening on port 8787 (Wormhole server)
|
||||
echo "[*] Checking port 8787 for Wormhole process..."
|
||||
if command -v lsof > /dev/null 2>&1; then
|
||||
PIDS=$(lsof -ti :8787 2>/dev/null || true)
|
||||
if [ -n "$PIDS" ]; then
|
||||
for PID in $PIDS; do
|
||||
echo "[*] Found PID $PID on port 8787, killing..."
|
||||
kill -TERM "$PID" 2>/dev/null || kill -9 "$PID" 2>/dev/null || true
|
||||
echo "[+] Killed PID $PID"
|
||||
done
|
||||
else
|
||||
echo "[-] No process found on port 8787."
|
||||
fi
|
||||
elif command -v ss > /dev/null 2>&1; then
|
||||
PIDS=$(ss -tlnp 'sport = :8787' 2>/dev/null | grep -oP 'pid=\K[0-9]+' || true)
|
||||
if [ -n "$PIDS" ]; then
|
||||
for PID in $PIDS; do
|
||||
echo "[*] Found PID $PID on port 8787, killing..."
|
||||
kill -TERM "$PID" 2>/dev/null || kill -9 "$PID" 2>/dev/null || true
|
||||
echo "[+] Killed PID $PID"
|
||||
done
|
||||
else
|
||||
echo "[-] No process found on port 8787."
|
||||
fi
|
||||
else
|
||||
echo "[-] Neither lsof nor ss available, skipping port check."
|
||||
fi
|
||||
|
||||
# 3. Kill any python process running wormhole_server.py
|
||||
echo "[*] Searching for wormhole_server.py processes..."
|
||||
PIDS=$(pgrep -f "wormhole_server.py" 2>/dev/null || true)
|
||||
if [ -n "$PIDS" ]; then
|
||||
for PID in $PIDS; do
|
||||
echo "[*] Killing wormhole_server.py PID $PID"
|
||||
kill -TERM "$PID" 2>/dev/null || kill -9 "$PID" 2>/dev/null || true
|
||||
echo "[+] Killed PID $PID"
|
||||
done
|
||||
else
|
||||
echo "[-] No wormhole_server.py processes found."
|
||||
fi
|
||||
|
||||
echo
|
||||
echo "[+] Wormhole cleanup complete."
|
||||
echo " If processes persist, check 'ps aux | grep wormhole' manually."
|
||||
Reference in New Issue
Block a user