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 :
2024-03-23 09:28:19 +00:00
max-request : 1
2024-03-09 14:23:42 +00:00
shodan-query : "port:445"
tags : js,network,smb,enum
javascript :
- code : |
let m = require("nuclei/smb");
2024-03-15 06:18:12 +00:00
let c = new m.SMBClient();
2024-03-09 14:23:42 +00:00
let response = c.ConnectSMBInfoMode(Host, Port);
2024-03-09 18:32:19 +00:00
Export(response);
2024-03-09 14:23:42 +00:00
args :
Host : "{{Host}}"
Port : "445"
2024-03-14 10:39:27 +00:00
matchers :
- type : dsl
dsl :
- "len(smb-version) != 0"
2024-03-09 14:23:42 +00:00
extractors :
- type : json
name : smb-version
json :
- '.Version.VerString'
2024-03-25 11:57:16 +00:00
# digest: 4a0a0047304502203db641d02e5d92b195b7c32bc022ff57227ac479cc970391b2c513538c827f52022100c5b9e5467b6e319975f14b151536704dfbd011b6a185f5efee3e6acbad9ee10a:922c64590222798bb761d5b6d8e72950