36 lines
1.1 KiB
YAML
36 lines
1.1 KiB
YAML
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:
|
|
max-request: 1
|
|
shodan-query: "port:445"
|
|
product: dionaea
|
|
vendor: dionaea
|
|
tags: js,network,smb,enum
|
|
javascript:
|
|
- code: |
|
|
let m = require("nuclei/smb");
|
|
let c = new m.SMBClient();
|
|
let response = c.ConnectSMBInfoMode(Host, Port);
|
|
Export(response);
|
|
|
|
args:
|
|
Host: "{{Host}}"
|
|
Port: "445"
|
|
|
|
matchers:
|
|
- type: dsl
|
|
dsl:
|
|
- "len(smb-version) != 0"
|
|
|
|
extractors:
|
|
- type: json
|
|
name: smb-version
|
|
json:
|
|
- '.Version.VerString'
|
|
# digest: 4a0a00473045022023cebe3ce16e51f7fd9a12715b9882ce1e88067b9d48a054fe9c12012802a3a8022100dff5e39dfa527dab4ab699daa509b1c09a33da43157daae29fa4b464dc476f1e:922c64590222798bb761d5b6d8e72950 |