Back to skills
SKILL.md
Smb Exploitation
ASecuritySMB exploitation — authenticated remote code execution (psexec/smbexec/wmiexec), known SMB CVEs (EternalBlue MS17-010, SMBGhost CVE-2020-0796, PrintNightmare, Zerologon, noPac), and share-write to code execution. Tiered gating for risky memory-corruption exploits. Use after smb-enumeration flags SMBv1, missing patches, or you hold credentials/writable shares.
- 16 stars
- 0 votes
- 0 copies
- 4 views
- Added November 17, 2026
Works with
Security analysis
100/100npx -y skills add AnandJogawade/Zazy-Pentest-Plugin-for-Claude --skill smb-exploitation --agent claude-codeAre you the author of Smb Exploitation?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/anandjogawade-smb-exploitation)---
name: smb-exploitation
description: SMB exploitation — authenticated remote code execution (psexec/smbexec/wmiexec), known SMB CVEs (EternalBlue MS17-010, SMBGhost CVE-2020-0796, PrintNightmare, Zerologon, noPac), and share-write to code execution. Tiered gating for risky memory-corruption exploits. Use after smb-enumeration flags SMBv1, missing patches, or you hold credentials/writable shares.
---
# SMB Exploitation
Turn SMB access or an unpatched SMB stack into code execution. Memory-corruption exploits (EternalBlue, SMBGhost) can crash hosts → Tier-2 gate.
## Trigger phrases
`eternalblue, ms17-010, smbghost, cve-2020-0796, zerologon, nopac, printnightmare, psexec, smb rce`
## Authenticated exec (with creds/hash)
```
psexec.py <domain>/<user>:<pass>@<host> # SYSTEM, noisy
smbexec.py / wmiexec.py / atexec.py ... # see lateral-movement for full set, PtH, Kerberos
```
## Known-CVE checks → exploitation (Tier-2 gate on memory-corruption)
- **MS17-010 / EternalBlue:** `nmap --script smb-vuln-ms17-010`; exploit crashes unpatched hosts → **ask lab/authorized → full; else dry scan (detection only)**.
- **SMBGhost (CVE-2020-0796):** version check SMBv3.1.1 compression; LPE/RCE — same gate.
- **Zerologon (CVE-2020-1472):** `zerologon` tester (non-destructive check) → resets DC machine password if run fully — **high impact, lab/authorized only**; always restore the machine password afterward.
- **noPac (CVE-2021-42278/42287):** `noPac.py` → SYSTEM on DC; gate + cleanup.
- **PrintNightmare (CVE-2021-1675/34527):** spooler RCE/LPE; confirm spooler + patch level first.
## Share-write → execution
Writable share mapped to a webroot or startup/scheduled-task path → drop a payload (see `smb-share-webshell`).
## Backend / Tier gate
Prefer Kali/Metasploit-MCP. For any memory-corruption or state-changing exploit, apply the Tier-2 gate (lab/authorized → full; else dry-scan detection only) and prefer a snapshot/clone.
## Verification (background, before reporting)
Confirm the CVE precondition twice (version + non-destructive check) before claiming exploitable; after a dry scan, report "vulnerable (unexploited)" distinctly from a confirmed exploit.
## Evidence
Vuln check output, exploitation proof (shell/`whoami`), and (for Zerologon etc.) the restore step performed.
Attribution
Related skills
View all in security →Comments
Loading comments…
Newsletter
Get the weekly list of safe new skills, and the ones we pulled.