mirror of
https://github.com/CyberSecurityUP/NeuroSploit.git
synced 2026-03-02 15:53:22 +00:00
116 modules | 100 vuln types | 18 API routes | 18 frontend pages Major features: - VulnEngine: 100 vuln types, 526+ payloads, 12 testers, anti-hallucination prompts - Autonomous Agent: 3-stream auto pentest, multi-session (5 concurrent), pause/resume/stop - CLI Agent: Claude Code / Gemini CLI / Codex CLI inside Kali containers - Validation Pipeline: negative controls, proof of execution, confidence scoring, judge - AI Reasoning: ReACT engine, token budget, endpoint classifier, CVE hunter, deep recon - Multi-Agent: 5 specialists + orchestrator + researcher AI + vuln type agents - RAG System: BM25/TF-IDF/ChromaDB vectorstore, few-shot, reasoning templates - Smart Router: 20 providers (8 CLI OAuth + 12 API), tier failover, token refresh - Kali Sandbox: container-per-scan, 56 tools, VPN support, on-demand install - Full IA Testing: methodology-driven comprehensive pentest sessions - Notifications: Discord, Telegram, WhatsApp/Twilio multi-channel alerts - Frontend: React/TypeScript with 18 pages, real-time WebSocket updates
82 lines
2.3 KiB
Bash
Executable File
82 lines
2.3 KiB
Bash
Executable File
#!/bin/bash
|
|
# NeuroSploit v3 - Build Kali Linux Sandbox Image
|
|
#
|
|
# Usage:
|
|
# ./scripts/build-kali.sh # Normal build (uses cache)
|
|
# ./scripts/build-kali.sh --fresh # Full rebuild (no cache)
|
|
# ./scripts/build-kali.sh --test # Build + run health check
|
|
|
|
set -e
|
|
|
|
SCRIPT_DIR="$(cd "$(dirname "$0")" && pwd)"
|
|
PROJECT_DIR="$(dirname "$SCRIPT_DIR")"
|
|
IMAGE_NAME="neurosploit-kali:latest"
|
|
|
|
cd "$PROJECT_DIR"
|
|
|
|
echo "================================================"
|
|
echo " NeuroSploit Kali Sandbox Builder"
|
|
echo "================================================"
|
|
echo ""
|
|
|
|
# Check Docker
|
|
if ! docker info > /dev/null 2>&1; then
|
|
echo "ERROR: Docker daemon is not running."
|
|
echo " Start Docker Desktop and try again."
|
|
exit 1
|
|
fi
|
|
|
|
# Parse args
|
|
NO_CACHE=""
|
|
RUN_TEST=false
|
|
|
|
for arg in "$@"; do
|
|
case $arg in
|
|
--fresh|--no-cache)
|
|
NO_CACHE="--no-cache"
|
|
echo "[*] Full rebuild mode (no cache)"
|
|
;;
|
|
--test)
|
|
RUN_TEST=true
|
|
echo "[*] Will run health check after build"
|
|
;;
|
|
esac
|
|
done
|
|
|
|
echo "[*] Building image: $IMAGE_NAME"
|
|
echo "[*] Dockerfile: docker/Dockerfile.kali"
|
|
echo "[*] Context: docker/"
|
|
echo ""
|
|
|
|
# Build
|
|
docker build $NO_CACHE \
|
|
-f docker/Dockerfile.kali \
|
|
-t "$IMAGE_NAME" \
|
|
docker/
|
|
|
|
echo ""
|
|
echo "[+] Build complete: $IMAGE_NAME"
|
|
|
|
# Show image info
|
|
docker image inspect "$IMAGE_NAME" --format \
|
|
" Size: {{.Size}} bytes ({{printf \"%.0f\" (divf .Size 1048576)}} MB)
|
|
Created: {{.Created}}
|
|
Arch: {{.Architecture}}" 2>/dev/null || true
|
|
|
|
# Run test if requested
|
|
if [ "$RUN_TEST" = true ]; then
|
|
echo ""
|
|
echo "[*] Running health check..."
|
|
docker run --rm "$IMAGE_NAME" \
|
|
"nuclei -version 2>&1; echo '---'; naabu -version 2>&1; echo '---'; httpx -version 2>&1; echo '---'; subfinder -version 2>&1; echo '---'; nmap --version 2>&1 | head -1; echo '---'; nikto -Version 2>&1 | head -1; echo '---'; sqlmap --version 2>&1; echo '---'; ffuf -V 2>&1; echo '---'; echo 'ALL OK'"
|
|
echo ""
|
|
echo "[+] Health check passed"
|
|
fi
|
|
|
|
echo ""
|
|
echo "================================================"
|
|
echo " Build complete! To use:"
|
|
echo " - Start NeuroSploit backend (it auto-creates containers per scan)"
|
|
echo " - Monitor via Sandbox Dashboard: http://localhost:8000/sandboxes"
|
|
echo "================================================"
|