Typical Nmap portscan output for CIFS:
PORT STATE SERVICE REASON
139/tcp open netbios-ssn syn-ack
445/tcp open microsoft-ds syn-ack
CIFS users and shares can be enumerated by Nmap during scanning:
NOTE
While smb-enum-shares.nse returns results for UNIX-like systems, I’ve found smb-enum-users.nse to be kind of hit-or-miss.