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
tags : js,network,smb,enum
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-04-03 11:03:18 +00:00
# digest: 4a0a004730450220472beef6141d0bf0d9406a2effd2c0aa6c41fb83ef33c30d8b6a77b266636cf1022100b865196766e19bcdc2e4aa6b3241856f47e707916e8737ba05054826498d32dc:922c64590222798bb761d5b6d8e72950