Skip to content

Latest commit

 

History

History
276 lines (220 loc) · 6.5 KB

File metadata and controls

276 lines (220 loc) · 6.5 KB

Zypheron CLI - Troubleshooting Guide

Start with zypheron doctor to diagnose most issues automatically.

Installation

Clone fails / repo not found

git clone https://github.com/KKingZero/Zypheron-CLI.git

Go not installed or too old (need 1.24+)

# Ubuntu/Debian
wget https://go.dev/dl/go1.24.0.linux-amd64.tar.gz
sudo rm -rf /usr/local/go && sudo tar -C /usr/local -xzf go1.24.0.linux-amd64.tar.gz
echo 'export PATH=$PATH:/usr/local/go/bin' >> ~/.bashrc && source ~/.bashrc

# macOS
brew install go

Python too old (need 3.9+)

# Ubuntu/Debian
sudo apt install python3.11 python3.11-venv python3.11-dev

# macOS
brew install python@3.11

Build

Module errors

cd zypheron-go
go clean -cache -modcache -testcache
go mod tidy && go mod download
make build

make not found

sudo apt install build-essential   # Ubuntu/Debian
xcode-select --install             # macOS
# Or build directly: go build -o zypheron ./cmd/zypheron

Binary won't run (permission denied / not found)

chmod +x build/zypheron
# Check architecture match:
file zypheron && uname -m

System-wide install fails

# Option 1: sudo
sudo make install

# Option 2: user-local (no sudo)
mkdir -p ~/.local/bin && cp zypheron ~/.local/bin/ && chmod +x ~/.local/bin/zypheron
echo 'export PATH=$PATH:~/.local/bin' >> ~/.bashrc && source ~/.bashrc

Python / Virtual Environment

"externally-managed-environment" error

cd zypheron-ai
python3 -m venv venv
source venv/bin/activate
pip install -r requirements.txt

Package install fails

source venv/bin/activate
pip install --upgrade pip setuptools wheel
sudo apt install python3-dev build-essential libssl-dev libffi-dev  # if needed

ML/exploitation features missing

cd zypheron-ai && source venv/bin/activate
./install-heavy.sh

Optional C2 frameworks

The main installers never auto-install C2 frameworks. To opt in interactively:

sudo bash scripts/install/install-c2.sh

Per-framework behavior:

  • Sliver: Kali/Parrot sliver apt pkg → pinned GitHub release tarball (SHA256-verified) → upstream curl | bash only when ZYPHERON_ALLOW_UNVERIFIED_SLIVER=1 is set.
  • Empire: powershell-empire apt pkg (Kali/Parrot) → optional git clone of BC-SECURITY/Empire + ./setup/install.sh.
  • Havoc: not installed — install manually from https://github.com/HavocFramework/Havoc.

Empire RPC usage expects environment variables:

export EMPIRE_HOST=https://127.0.0.1:1337
export EMPIRE_USER=<username>
export EMPIRE_PASS=<password>
# Optional, loopback/RFC1918 only:
export EMPIRE_INSECURE_TLS=1

Pentest tool installers (per-distro)

If the main setup-hybrid.sh skipped external tools (ZYPHERON_INSTALL_TOOLS=none), run the distro-specific installer:

sudo bash scripts/install/install-tools.sh          # Debian / Ubuntu / Kali / Parrot / Mint
sudo bash scripts/install/install-tools-arch.sh     # Arch / Manjaro / BlackArch
sudo bash scripts/install/install-tools-rpm.sh      # Fedora / RHEL / Rocky / Alma

Opt-in env flags:

  • ZYPHERON_ALLOW_REMOTE_INSTALLERS=1 — enable Rapid7 Metasploit omnibus fallback (pinned commit + SHA256)
  • ZYPHERON_BUILD_GO=1 — also build the zypheron-go Go CLI from source
  • ZYPHERON_ENABLE_BLACKARCH=1 (arch only) — enable BlackArch pacman repo with pinned strap.sh SHA256

AI Engine / API

AI engine won't start (connection refused on :8765)

# Check if running
ps aux | grep "python.*server"
lsof -i :8765

# Start manually
cd zypheron-ai && source venv/bin/activate
python -m core.server

# Kill stale process if port is occupied
lsof -ti:8765 | xargs kill -9

API key not working

# Check config
zypheron config get-providers

# Re-set key
zypheron config set-key anthropic

# Test
zypheron ai chat "Hello"

See API_KEY_SETUP.md for full details.

Backend timeout

zypheron scan example.com --timeout 600
# Or: export ZYPHERON_TIMEOUT=600

MCP Integration

MCP server won't start / "No module named 'fastmcp'"

cd zypheron-ai
python3 -m venv mcp-venv
source mcp-venv/bin/activate
pip install -r requirements-mcp.txt
# Or: source activate-mcp.sh

AI client can't connect

# Verify server is running
ps aux | grep "mcp_interface/server.py"

# Regenerate config with correct paths
zypheron mcp config

# Use absolute paths in AI client config

MCP tools not available

curl http://localhost:8765/health    # Verify backend
zypheron tools check                 # Check tool inventory
zypheron tools install-all --critical-only

Tools

Tool not found

zypheron tools check
zypheron tools install-all --critical-only

# Add Go tools to PATH
export PATH=$PATH:$(go env GOPATH)/bin

Nuclei templates outdated

nuclei -update-templates

Runtime

Scan times out

zypheron scan example.com --timeout 600
zypheron scan example.com --fast         # Or use fast mode
zypheron scan example.com -p 1-1000      # Or reduce scope

Permission denied running tools

sudo zypheron scan example.com
# Or set capabilities:
sudo setcap cap_net_raw,cap_net_admin,cap_net_bind_service=+eip /usr/local/bin/zypheron

Network

Cannot reach target / DNS fails

ping example.com
nslookup example.com
# Check firewall: sudo ufw status
# Check VPN/proxy: echo $HTTP_PROXY

Platform-Specific

WSL: network tools don't work

Add to /etc/wsl.conf:

[network]
generateResolvConf = false

Then restart WSL: wsl --shutdown from PowerShell.

macOS: permission denied

xattr -d com.apple.quarantine /usr/local/bin/zypheron

Windows: antivirus blocks zypheron

Add exclusion in Windows Security > Virus & threat protection > Manage settings.

Security

IPC token errors

rm ~/.zypheron/ipc.token
zypheron ai start

Can't write to config directory

mkdir -p ~/.zypheron && chmod 755 ~/.zypheron

Quick Reference

# Diagnostics
zypheron doctor
zypheron --debug [command] 2>&1 | tee debug.log

# Logs
tail -f zypheron-ai/zypheron-ai.log   # Backend
tail -f zypheron-ai/mcp.log           # MCP

# Key paths
~/.zypheron/config.json               # Config
~/.zypheron/ipc.token                 # IPC auth
zypheron-ai/.env                      # API keys (if using .env)

Still stuck? GitHub Issues | Discussions