#!/usr/bin/env bash
# =====================================================================
# ToolWar Automated InfoSec Arsenal Installer
# Generated: 2026-12-03 00:41:51 UTC
# Source: https://toolwar.com - A Project of Xowia Technologies
# =====================================================================

set -e

echo '[+] Initializing ToolWar Security Arsenal Setup...'
echo '[*] Checking system dependencies (git, curl, python3, go)...'

# ---------------------------------------------------------------------
# Tool: BloodHound Community Edition (open_source)
# ---------------------------------------------------------------------
echo '[+] Installing BloodHound Community Edition...'
curl -L https://ghst.ly/getbhce | docker compose -f - up -d

# ---------------------------------------------------------------------
# Tool: NetExec (open_source)
# ---------------------------------------------------------------------
echo '[+] Installing NetExec...'
pipx install git+https://github.com/Pennyw0rth/NetExec

# ---------------------------------------------------------------------
# Tool: Impacket (open_source)
# ---------------------------------------------------------------------
echo '[+] Installing Impacket...'
pip install impacket

# ---------------------------------------------------------------------
# Tool: Responder (open_source)
# ---------------------------------------------------------------------
echo '[+] Installing Responder...'
sudo apt install responder

# ---------------------------------------------------------------------
# Tool: Rubeus (free)
# ---------------------------------------------------------------------
echo '[!] Skipped Rubeus: Desktop Windows GUI / PowerShell tool is incompatible with POSIX Terminal API'
# Reference: https://toolwar.com/tools/rubeus

# ---------------------------------------------------------------------
# Tool: Certipy (free)
# ---------------------------------------------------------------------
echo '[+] Installing Certipy...'
pip3 install certipy-ad

# ---------------------------------------------------------------------
# Tool: Kerbrute (free)
# ---------------------------------------------------------------------
echo '[+] Installing Kerbrute...'
go install github.com/ropnop/kerbrute@latest

# ---------------------------------------------------------------------
# Tool: PingCastle (freemium)
# ---------------------------------------------------------------------
echo '[!] Skipped PingCastle: Desktop Windows GUI / PowerShell tool is incompatible with POSIX Terminal API'
# Reference: https://toolwar.com/tools/pingcastle

echo '[✓] All selected tools installed successfully!'
echo '[*] Happy Hunting! - ToolWar & Xowia Technologies'
