This runs Nmap's smb-os-discovery script, which connects to the SMB service and reads the operating system banner the server volunteers. It reveals whether 192.168.1.1 runs a Windows version, Samba on Linux, or a NAS appliance. SMB must be open for the script to work, and the answer is a hint, not a guarantee.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.