From effb6bf71fb80916e21f5562cc8e1287c2efa11f Mon Sep 17 00:00:00 2001 From: Mephimeow Date: Wed, 1 Apr 2026 04:21:07 +0000 Subject: [PATCH] Restore full Samba version detection The match line for Samba SMB now captures the full version (e.g., 4.6.2) instead of just the major version (4). This restores the behavior from nmap 7.94 where full version was displayed. Fixes issue where nmap -sV shows 'Samba smbd 4' instead of 'Samba smbd 4.6.2' --- nmap-service-probes | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nmap-service-probes b/nmap-service-probes index 516b2fa12..9cf8c492e 100644 --- a/nmap-service-probes +++ b/nmap-service-probes @@ -14114,7 +14114,7 @@ match netbios-ssn m=^\0\0\0.\xffSMBr\0\0\0\0\x88..\0\0[-\w. ]*\0+@\x06\0\0\x01\0 match netbios-ssn m|^\0\0\0.\xffSMBr\0\0\0\0\x88..\0\0\0\0\0\0\0\0\0\0\0\0\0\0@\x06\0\0\x01\0\x11\x06\0..\0\x01\0..\0\0...\0..\0\0|s p/Samba smbd/ v/3.X - 4.X/ cpe:/a:samba:samba/ # Samba 2.2.8a on Linux 2.4.20 match netbios-ssn m|^\x83\0\0\x01\x81$| p/Samba smbd/ cpe:/a:samba:samba/ -match netbios-ssn m|^\0\0\0.\xffSMBr\0\0\0\0\x88..\0\0\0\0\0\0\0\0\0\0\0\0\0\0@\x06\0\0\x01\0\x01\xff\xff\0\0$|s p/Samba smbd/ v/4/ cpe:/a:samba:samba:4/ +match netbios-ssn m|^\0\0\0.\xffSMBr\0\0\0\0\x88..\0\0\0\0\0\0\0\0\0\0\0\0\0\0@\x06\0\0\x01\0\x01\xff\xff\0\0.*[Ss][Aa][Mm][Bb][Aa] (\d+[\.\d]+).*$|s p/Samba smbd/ v/$1/ cpe:/a:samba:samba:$1/ # DAVE 4.1 enhanced windows networks services for Mac on Mac OS X match netbios-ssn m|^\0\0\0.\xffSMBr\x02\0Y\0\x98\x01.\0\0\0\0\0\0\0\0\0\0\0\0\0\0@\x06\0\0\x01\0\0\x07\0|s p/Thursby DAVE Windows filesharing/ i/Runs on Macintosh systems/ o/Mac OS/ cpe:/o:apple:mac_os/a # Windows Session Service - 139/tcp - Formerly Window 98 match, actually matches Win 98 through Windows 8 / 2012 R2