Back to services
file-share445/tcp

SMB

SMBServer Message BlockCIFS

SMB (Server Message Block) is a file sharing protocol used primarily by Windows. EternalBlue (MS17-010), SMB signing misconfigurations, and null sessions are key attack vectors.

Ports

PortProtocolDescription
445tcpSMB over TCP
139tcpNetBIOS session

Fingerprints

Banner / ProbeExpected Response
nmap -sV -p <port> <target>Service banner and version info
nc -nv <target> <port>Raw banner grab

Key Files

PathDescription
C:\Windows\NTDS\ntds.ditAD database with all password hashes
C:\Windows\System32\config\SAMLocal SAM password hashes
C:\Windows\System32\config\SYSTEMSystem hive (boot key for hash decryption)
C:\Windows\System32\config\SECURITYSecurity policy and cached domain credentials
%USERPROFILE%\AppData\Roaming\Microsoft\Credentials\Saved Windows credentials

Default Credentials

UsernamePasswordContext
adminadminGeneric admin account
rootrootGeneric root account

Known CVEs

IdentifierTypeDescription
CVE-2017-0144RCEEternalBlue — SMBv1 remote code execution
CVE-2020-0796RCESMBGhost — SMBv3 compression RCE

Exploitation Primitives

TechniqueTool / CommandResult
Null Sessionsmbmap -H <target>List shares and users
SMB Signing Disablednmap --script smb-security-mode -p445 <target>Relay NTLM auth
EternalBluemsfconsole -q -x "use exploit/windows/smb/ms17_010_eternalblue"RCE as SYSTEM

Notes

SMB signing being disabled is the most common misconfiguration — always check with `nmap --script smb-security-mode`.

If SMBv1 is enabled, EternalBlue (MS17-010) is almost certainly exploitable.

Tools: `smbclient`, `smbmap`, `crackmapexec`/`netexec`, `impacket-smbexec`, `impacket-psexec`.

Seen on

ShodanCensysFOFAZoomEye

References