SMB (Server Message Block)
Default Port: 139, 445
SMB (Server Message Block), also known as CIFS (Common Internet File System), is a network protocol that allows for file sharing, network browsing, printing services, and inter-process communication over a network.
The SMB protocol provides you with the ability to access resources from a server.
Connect
In order to initiate the process, it's imperative to establish a connection to the Server Message Block (SMB) server.
smbclient -L //target-ip
Recon
Service Detection with Nmap
Use Nmap to detect SMB services and identify server capabilities.
nmap -p 139,445 target.com
Banner Grabbing
Connect to SMB services to gather version and service information.
# Nmap to discover SMB services
nmap -p 445 --open -sV target.com
# Nmap script for SMB version
nmap --script smb-protocols -p 445 target.com
Enumeration
Use various tools for detailed SMB enumeration and information gathering.
Share Enumeration
Discover and enumerate SMB shares on target systems.