SMBMap
Purpose
Use this skill for focused SMB share and permission review when the engagement needs a clear view of effective access across approved Windows targets.
Phase Fit
- Primary: Discovery and Reconnaissance, Vulnerability Analysis
- Secondary: Validation and Controlled Impact Demonstration, Retest and Closure
Use When
- Need to enumerate shares and effective permissions quickly.
- Need to verify write access or sensitive share exposure.
- Need a repeatable retest after SMB hardening.
Avoid When
- Host scope or credential handling rules are unclear.
- File interaction would exceed the approved proof path.
Inputs
- Approved host or host set
- Authorized credential context
- Share-scope and evidence limits
Procedure
- Start with enumeration before any file interaction.
- Record only the shares and permissions that materially affect risk.
- Validate write access only when necessary and approved.
- Correlate findings with asset ownership and data sensitivity.
- Preserve the exact host and auth context for retest.
Command Syntax
Replace sample targets with approved in-scope hosts and credentials.
# List shares (null session)
smbmap -H 10.10.10.100
# List shares with credentials
smbmap -H 10.10.10.100 -u auditor -p '<password>' -d contoso.com
# Recursively list a specific share
smbmap -H 10.10.10.100 -u auditor -p '<password>' -d contoso.com -r SYSVOL
# Pass-the-Hash
smbmap -H 10.10.10.100 -u administrator -p '<NTLM_hash>' -d contoso.com
# Scan a subnet for accessible shares
smbmap -H 10.10.10.0/24 -u auditor -p '<password>'
# Download a file
smbmap -H 10.10.10.100 -u auditor -p '<password>' --download 'SHARE\path\to\file.txt'
Evidence to Capture
- Shares and permission levels that materially affect risk
- Exact host and credential context used
- Minimal proof path for remediation or retest
Safety Boundaries
- Keep host scope narrow and file interaction minimal.
- Do not browse or copy more data than necessary.