What is SMB?
SMB (Server Message Block) is used by Windows for file and printer sharing.
Common security issues
Anonymous SMB shares.
NTLM relay and downgrade attacks.
SMBv1 enabled.
Credential harvesting via SMB.
Default ports
445
139
Enumeration
SMB shares, users, hosts, NetBIOS, and domain info enumeration guides
SMB Host Security Enumeration
Enumerate SMB hosts to identify shares, sessions, users, and misconfigurations using tools like enum4linux, smbclient, and Nmap scripts.
SMB Null Session Enumeration
Exploit unauthenticated SMB null sessions to enumerate shares, users, groups, and domain info using tools like enum4linux, rpcclient, and smbclient.
SMB Share Enumeration
Enumerate SMB shares using tools like smbclient, crackmapexec, and enum4linux to discover exposed network shares, permissions, and accessible files.
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.
Vulnerability Discovery
SMB vuln scans covering signing, EternalBlue, shares, and access control
Administrative SMB Share Exposure
Detecting Known SMB Vulnerabilities
Low-Privileged SMB Share Access
MS17-010 EternalBlue - Detection
Overly Broad SMB Share Access
Samba Version Weakness Detection
Exploitation
SMB shells via relay, PtH, RCE exploits, and share abuse
SMB NTLM Relay – Hash Relay to Shell
Pass-the-Hash over SMB – Shell Without a Password
SMB Remote Code Execution – psexec smbexec wmiexec
Vulnerabilities
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.
PrintNightmare – Print Spooler RCE to SYSTEM
Lateral Movement
Spray creds, dump SAM, and pivot via SMB using nxc and impacket
SMB Lateral Movement
Covers SMB-based lateral movement techniques including pass-the-hash, PsExec, and admin share abuse to pivot across Windows environments.