PentestCode is a terminal-based autonomous penetration-testing system in which multiple agents run security tools, interpret results, track engagement state, and choose subsequent attack steps. It is for authorized security assessments and capture-the-flag work that require coordinated scanning, enumeration, exploitation, and evidence tracking. The catalogue skills and instructions support the project's agent-led penetration-testing workflow.
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.
npx skills add s0ld13rr/pentestcode --skill adgit clone --depth 1 https://github.com/s0ld13rr/pentestcodeWrote 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.
[](https://agentmods.dev/skills/s0ld13rr/pentestcode/ad)<a href="https://agentmods.dev/skills/s0ld13rr/pentestcode/ad"><img src="https://agentmods.dev/badge/skills/s0ld13rr/pentestcode/ad/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.
<a href="https://agentmods.dev/skills/s0ld13rr/pentestcode/ad"><img src="https://agentmods.dev/badge/skills/s0ld13rr/pentestcode/ad.svg" alt="Reviewed on agentmods" width="80" height="20"></a>- NVIDIA SkillSpector warn
SkillSpector: 2 findings, up to high
These are SkillSpector’s own severities. On a checked sample its high-severity flags on skills were ~96% false positives — a documented command, a public API, a “never do X” rule — so we show them as a caution to read, not a verdict. Why →
- high YARA Match · line 3 YARA rule matched a hack tool or exploit indicator (offensive tools, reconnaissance, privilege escalation, or exploit frameworks).Fix: Remove offensive tool references and exploit code. Legitimate agent skills should not contain penetration testing tools, exploit frameworks, or reconnaissance utilities.
- medium YARA Match · line 10 YARA rule matched a hack tool or exploit indicator (offensive tools, reconnaissance, privilege escalation, or exploit frameworks).Fix: Remove offensive tool references and exploit code. Legitimate agent skills should not contain penetration testing tools, exploit frameworks, or reconnaissance utilities.
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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00068 | $0.00822 |
| Opus 5.5 | $0.00027 | $0.00329 |
| Sonnet 5.5 | $0.00014 | $0.00164 |
| Haiku 4.5 | $0.00007 | $0.00082 |
Grade A, and why
playbook-ad scanned grade A with 0 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 2d 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.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
How it starts
The opening of the file, as written. The whole thing — 48 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Active Directory — Decision Tree
Without credentials
- AS-REP Roasting: accounts with "Do not require Kerberos preauthentication" → offline crack (hashcat -m 18200). No creds needed.
- Null session:
enum4linux-ng -A DC→ user list for spray. - Password spraying: one password, many users. Lockout-safe: 1 attempt per 30+ min. Try
Season2024!,Company1!. - NTLM relay: only if SMB signing disabled.
With any valid user
- Kerberoasting: any domain user can request TGS for SPN accounts → offline crack (hashcat -m 13100). Service accounts often have weak passwords.
- BloodHound:
bloodhound-python -u USER -p PASS -d DOMAIN -c all→ shortest path to DA. - GPP passwords:
netexec smb DC -u USER -p PASS --gpp-passwords— legacy, still found.
Delegation abuse
- Unconstrained: machine impersonates ANY user to ANY service. Coerce DC auth (PrinterBug/PetitPotam) → capture TGT → DCSync.
- Constrained: impersonate users to SPECIFIC services via S4U2Self + S4U2Proxy.
- RBCD: if you can write
msDS-AllowedToActOnBehalfOfOtherIdentity→ impersonate admin. Discover:impacket-findDelegation DOMAIN/USER:PASS -dc-ip DC
ADCS — check IMMEDIATELY if present
ESC1–ESC8, many give instant DA:
- ESC1: enrollable template with SAN override → request cert as DA
- ESC4: template owner → modify template → create ESC1
- ESC8: HTTP enrollment → NTLM relay to ADCS web endpoint
Tool:
certipy find -u USER@DOMAIN -p PASS -dc-ip DC -vulnerable
ADCS Coercion — new research (2024-2025)
- CertiPotam / PetitPotam v2: NTLM relay to ADCS HTTP endpoints (ESC8) still works if
LdapEnforceChannelBinding=0or web enrollment unprotected. - ESC11/ESC12/ESC13: new template misconfigs discovered by @ly4k (Certipy 5.0+).
certipy findnow detects them automatically. - ADCS relay to LDAPS: relay NTLM to LDAPS (636) with
ntlmrelayx -ldaps→ DCSync if channel binding not enforced. - Tooling:
certipy>=5.0.0,adcs-mapperfor visual enumeration,bloodyADfor exploitation chains.
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.
- 2d ago Changed · +6 lines a06a97bf1392
- 3mo ago Changed · -57 lines · -20 tokens per session 76672dc31206
- 3mo ago First seen · 99 lines · 88 tokens per session scan A 23b599eaf4cb
playbook-ad is a skill published in the GitHub repository s0ld13rr/pentestcode (1,287 stars, last pushed yesterday), licensed MIT. It adds 68 tokens to every session and 822 once invoked, about $0.0003 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.
playbook-ad compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| playbook-ads0ld13rr/pentestcode | Skill | 1.3k | yesterday | MIT | A | 68 | Claude Code, Codex |
| lictor-security-checkRaffa-jarrl/Lictor-AI | Skill | 19 | 4mo ago | Apache-2.0 | A | 135 | Claude Code |
| lictor-rotateRaffa-jarrl/Lictor-AI | Skill | 19 | 4mo ago | Apache-2.0 | A | 80 | Claude Code |
| lictor-explainRaffa-jarrl/Lictor-AI | Skill | 19 | 4mo ago | Apache-2.0 | A | 56 | Claude Code |
| openai-patternschandrudp29/skillhub | Skill | 14 | 5mo ago | MIT | A | 31 | Claude Code, Codex |
| lictor-fix-itRaffa-jarrl/Lictor-AI | Skill | 19 | 4mo ago | Apache-2.0 | B | 75 | Claude Code |
| hunt-api-misconfigelementalsouls/Claude-BugHunter | Skill | 28k | 4d ago | MIT | A | 207 | Claude Code |