bb-setup

bb-setup is a command for Claude Code from allsmog/blackbox-claude-plugin. It costs 28 tokens per session (841 once invoked), scanned A, original, MIT.

A setup checker for penetration testing, the authorized practice of finding security weaknesses, especially in Hack The Box machines.

In plain words
What is it for?
Use it to verify installed tools and optionally install missing ones on apt-based Linux or macOS systems.
Why use it?
It reveals whether scanning, web-testing, credential, Windows, networking, and privilege-escalation tools are available before testing starts.

Command for Claude Code

Written for Claude Code: allowed-tools in frontmatter.

Part of the blackbox-htb plugin — 17 skills, 11 commands, 9 agents shipped together

Good fit Use it to verify installed tools and optionally install missing ones on apt-based Linux or macOS systems.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/allsmog/blackbox-claude-plugin/bb-setup
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Clone the repo
git clone --depth 1 https://github.com/allsmog/blackbox-claude-plugin

Made for: Claude Code.

Or install blackbox-htb, the plugin that ships this one along with the rest of its 17 skills, 11 commands, 9 agents.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for bb-setup

README.md
[![agentmods](https://agentmods.dev/badge/commands/allsmog/blackbox-claude-plugin/bb-setup/github.svg)](https://agentmods.dev/commands/allsmog/blackbox-claude-plugin/bb-setup)
Your own site
<a href="https://agentmods.dev/commands/allsmog/blackbox-claude-plugin/bb-setup"><img src="https://agentmods.dev/badge/commands/allsmog/blackbox-claude-plugin/bb-setup/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for bb-setup

Your own site · 80×15
<a href="https://agentmods.dev/commands/allsmog/blackbox-claude-plugin/bb-setup"><img src="https://agentmods.dev/badge/commands/allsmog/blackbox-claude-plugin/bb-setup.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 28 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 841 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 2 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00028 $0.00841
Opus 5.5 $0.00011 $0.00336
Sonnet 5.5 $0.00006 $0.00168
Haiku 4.5 $0.00003 $0.00084

Measured 2mo ago against content hash 012f621341a5, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

bb-setup scanned grade A with 2 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Asks for rootlowPrivilege escalation

A mod that escalates privileges can change anything on the machine, not only the project.

sudo apt update

Downgraded: this mod is about security review, or the phrase is quoted, so it is likely naming the pattern rather than instructing it.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

which curl wget nc netcat
blackbox-htb/commands/bb-setup.md · 144 lines

How it starts

The opening of the file, as written. The whole thing — 144 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Environment Setup Verification

Overview

Verifies that all required penetration testing tools are installed and accessible. Optionally installs missing tools.

Tool Categories

Core Tools (Required)

# Network scanning
which nmap masscan

# Web enumeration
which gobuster feroxbuster nikto whatweb

# Credential attacks
which hydra medusa

# Windows/AD tools
which crackmapexec impacket-smbclient smbclient

# Utilities
which curl wget nc netcat

Optional Tools (Recommended)

# Exploit search
which searchsploit

# Directory fuzzing alternatives
which ffuf wfuzz

# Password cracking
which john hashcat

# Reverse shell helpers
which rlwrap

Privilege Escalation Scripts

Check for linpeas/winpeas availability:

# Check local copies
ls -la ~/tools/linpeas.sh ~/tools/winpeas.exe 2>/dev/null

# Or download locations
ls -la /opt/privilege-escalation-awesome-scripts-suite/ 2>/dev/null

Installation Commands

Kali/Parrot (apt-based)

sudo apt update
sudo apt install -y nmap gobuster nikto hydra crackmapexec smbclient \
    curl wget netcat-openbsd rlwrap feroxbuster exploitdb

macOS (brew-based)

brew install nmap gobuster nikto hydra curl wget netcat
pip3 install crackmapexec

Python Tools

pip3 install impacket crackmapexec

Linpeas/Winpeas Download

mkdir -p ~/tools
# Linpeas
curl -L https://github.com/carlospolop/PEASS-ng/releases/latest/download/linpeas.sh -o ~/tools/linpeas.sh
chmod +x ~/tools/linpeas.sh

# Winpeas
curl -L https://github.com/carlospolop/PEASS-ng/releases/latest/download/winPEASany.exe -o ~/tools/winpeas.exe

VPN Verification

# Check if connected to HTB VPN
ip addr show tun0 2>/dev/null || echo "No VPN connection detected"

# Verify HTB network reachability
ping -c 1 10.10.10.1 2>/dev/null && echo "HTB network reachable"

Wordlist Verification

# Check common wordlist locations
ls /usr/share/wordlists/rockyou.txt 2>/dev/null
ls /usr/share/wordlists/dirb/common.txt 2>/dev/null
ls /usr/share/seclists/ 2>/dev/null

Read the full file on GitHub · 144 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 2mo ago First seen · 144 lines · 28 tokens per session scan A 012f621341a5

Subscribe to this mod's changes

bb-setup is a command published in the GitHub repository allsmog/blackbox-claude-plugin (6 stars, last pushed 8mo ago), licensed MIT. It adds 28 tokens to every session and 841 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it A with 2 findings (asks for root, makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.