Skip to content
SMB
Service

SMB

SMB is a Windows file and printer sharing protocol. Attackers enumerate shares, users, and domain info, then exploit misconfigs via relay, PtH, or RCE to move laterally and exfiltrate data

:139 :445 27 guides 4 phases
1 min read Created: Dec 28, 2025 Updated: Jul 13, 2026

SMB (Server Message Block) runs on TCP port 445 and provides file sharing, printer access, and inter-process communication on Windows networks. Nmap identifies it as microsoft-ds. SMB is one of the most commonly targeted services in both internal pentests and CTF environments.

Null sessions, guest access, and weak credentials frequently expose readable or writable shares. Sensitive files (scripts, config backups, credentials) often sit on accessible shares. SMB also carries named pipes used for RPC, enabling user and group enumeration. Critical vulnerabilities like EternalBlue (MS17-010) and SMBGhost (CVE-2020-0796) provide remote code execution on unpatched systems.

Start with enum4linux-ng, smbclient, or crackmapexec to enumerate shares, users, and policies. Check for null session and guest access. Nmap's smb-vuln-* scripts test for known exploits. If credentials are available, enumerate shares and test for write access or lateral movement with psexec, wmiexec, or smbexec.

Enumeration

SMB shares, users, hosts, NetBIOS, and domain info enumeration guides

5

NetBIOS Name Enumeration

Enumerate NetBIOS names, workgroup/domain info, and MAC addresses from SMB hosts using nbtscan, nmap, and nmblookup to map network targets.

Jan 4, 2026 • 1 min read

SMB Host Security Enumeration

Enumerate SMB hosts to identify shares, sessions, users, and misconfigurations using tools like enum4linux, smbclient, and Nmap scripts.

Jan 4, 2026 • 1 min read

SMB Null Session Enumeration

Exploit unauthenticated SMB null sessions to enumerate shares, users, groups, and domain info using tools like enum4linux, rpcclient, and smbclient.

Jan 4, 2026 • 4 min read

SMB Share Enumeration

Enumerate SMB shares using tools like smbclient, crackmapexec, and enum4linux to discover exposed network shares, permissions, and accessible files.

Jan 4, 2026 • 6 min read
SMB User and Domain Enumeration

SMB User and Domain Enumeration

Enumerate valid users and domain information from SMB shares using tools like enum4linux, rpcclient, and crackmapexec to map AD attack surfaces.

Jan 4, 2026 • 3 min read

Vulnerability Discovery

SMB vuln scans covering signing, EternalBlue, shares, and access control

13

Administrative SMB Share Exposure

Identifies exposed Windows administrative shares (C$, ADMIN$, IPC$) via SMB, covering enumeration techniques, access risks, and misconfiguration assessment.

Mar 6, 2026 • 3 min read

Detecting Known SMB Vulnerabilities

Enumerate SMB services to identify unpatched vulnerabilities including EternalBlue (MS17-010), SMBGhost (CVE-2020-0796), and misconfigurations using Nmap and Metasploit.

Jan 4, 2026 • 7 min read

Low-Privileged SMB Share Access

Enumerate SMB shares with low-privileged credentials to identify misconfigurations, exposed sensitive data, and escalation paths via tools like smbclient and CrackMapExec.

Mar 6, 2026 • 3 min read

MS17-010 EternalBlue - Detection

Detect MS17-010 EternalBlue SMB vulnerability on Windows hosts using network scanning, traffic analysis, and patch verification techniques.

Mar 6, 2026 • 3 min read

Overly Broad SMB Share Access

Identifies misconfigured SMB shares with excessive permissions, covering enumeration techniques, access testing, and tools like smbclient and CrackMapExec.

Mar 6, 2026 • 3 min read

Samba Version Weakness Detection

Identifies outdated or misconfigured Samba versions via banner grabbing and CVE mapping to uncover exploitable SMB vulnerabilities.

Mar 7, 2026 • 2 min read

Exploitation

SMB shells via relay, PtH, RCE exploits, and share abuse

8

SMB NTLM Relay – Hash Relay to Shell

Exploit SMB NTLM relay attacks to capture and relay authentication hashes, escalating from network access to remote code execution via compromised credentials.

Mar 11, 2026 • 4 min read

EternalBlue MS17-010 – SMB RCE

Exploits the MS17-010 SMB vulnerability using EternalBlue to achieve unauthenticated remote code execution on unpatched Windows systems via port 445.

Mar 11, 2026 • 3 min read

Lateral Movement

Spray creds, dump SAM, and pivot via SMB using nxc and impacket

1

SMB Lateral Movement

Covers SMB-based lateral movement techniques including pass-the-hash, PsExec, and admin share abuse to pivot across Windows environments.

May 6, 2026 • 5 min read