Catalyst / admin/Synapse-NetscanXi 14.8 GB / 57.8 GB 40.0 GB free
Help Sign in

admin / Synapse-NetscanXi

public

Network Scanning, Vulnerability and Compliance Application

Code Issues Pull requests Pipelines Packages Security Insights Wiki Settings
Synapse-NetscanXi / NetscanXiVersion13 / run.sh 806 B · main
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#!/usr/bin/env bash
# Native launcher for NetScan Xi. Creates a venv on first run.
# Usage: sudo ./run.sh [host] [port]
set -euo pipefail
cd "$(dirname "$0")"

HOST="${1:-0.0.0.0}"
PORT="${2:-5000}"

if ! command -v nmap >/dev/null 2>&1; then
  echo "ERROR: nmap not found. Install it:  sudo apt install -y nmap" >&2
  exit 1
fi

if [ ! -d .venv ]; then
  echo "Creating virtualenv…"
  python3 -m venv .venv
  .venv/bin/pip install --quiet --upgrade pip
  .venv/bin/pip install --quiet -r requirements.txt
fi

# -O / -sS need root. Warn if not running as root.
if [ "$(id -u)" -ne 0 ]; then
  echo "WARNING: not running as root — OS detection and SYN scans will be limited." >&2
fi

echo "Starting NetScan Xi on http://${HOST}:${PORT}"
exec .venv/bin/python -m app.server --host "$HOST" --port "$PORT"