- Over TCP - 445 port
- Over NetBIOS API
- UDP - ports 137, 138
- TCP - ports 137, 139
- NBF (legacy)
Powershell command + win reg for SMB 1,2,3.
📕 RTFM
nmap -p 139,445 --script smb-enum-shares <target>
brew install samba
smbclient -U username -W workgroup -c 'ls' //server/share