Skip to content
Back to skills

Smb Exploitation

ASecurity

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.

  • 16 stars
  • 0 votes
  • 0 copies
  • 4 views
  • Added November 17, 2026
securitygoshellbackend

Works with

  • mcp

Security analysis

A100/100

Scanned November 17, 2026

npx -y skills add AnandJogawade/Zazy-Pentest-Plugin-for-Claude --skill smb-exploitation --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Smb Exploitation?

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

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

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: 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

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 security →

Comments

Loading comments…

Newsletter

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