2024-03-09 14:23:42 +00:00
id : smb-version-detect
info :
name : SMB Version - Detection
author : pussycat0x
severity : info
description : |
SMB version detection involves identifying the specific Server Message Block protocol version used by a system or network. This process is crucial for ensuring compatibility and security, as different SMB versions may have distinct features and vulnerabilities.
metadata :
2025-05-27 10:39:47 +08:00
max-request : 1
shodan-query : "port:445"
2025-05-27 02:29:19 +00:00
product : dionaea
2025-05-27 10:39:47 +08:00
vendor : dionaea
2025-10-17 14:17:02 +02:00
tags : js,network,smb,enum,discovery
2025-05-27 10:39:47 +08:00
2024-03-09 14:23:42 +00:00
javascript :
2024-07-10 17:38:01 +05:30
- pre-condition : |
isPortOpen(Host,Port);
code : |
2024-03-09 14:23:42 +00:00
let m = require("nuclei/smb");
2024-03-15 11:48:12 +05:30
let c = new m.SMBClient();
2024-03-09 14:23:42 +00:00
let response = c.ConnectSMBInfoMode(Host, Port);
2024-03-10 00:02:19 +05:30
Export(response);
2024-03-09 14:23:42 +00:00
args :
Host : "{{Host}}"
Port : "445"
extractors :
- type : json
name : smb-version
json :
- '.Version.VerString'
2025-10-26 16:17:34 +00:00
# digest: 4a0a004730450220485f52627f4a1da9858eab64bb9b3bf2a056f5138eb533995a5da725e3cd29eb022100a75afb078033b9cdef842343da3e718bde694e6f49c89ef324ea53b36fecc9cb:922c64590222798bb761d5b6d8e72950