nuclei-templates/javascript/enumeration/smb/smb2-capabilities.yaml

33 lines
978 B
YAML

id: smb2-capabilities
info:
name: smb2-capabilities - Enumeration
author: pussycat0x
severity: info
description: |
Attempts to list the supported capabilities in a SMBv2 server for each enabled dialect.
reference:
- https://nmap.org/nsedoc/scripts/smb2-capabilities.html
metadata:
max-request: 1
shodan-query: port:445
product: dionaea
vendor: dionaea
tags: js,network,smb,enum
javascript:
- code: |
var m = require("nuclei/smb");
var c = m.SMBClient();
var response = c.ConnectSMBInfoMode(Host, Port);
Export(response);
args:
Host: "{{Host}}"
Port: "445"
extractors:
- type: json
part: response
json:
- '.Capabilities | with_entries(select(.value == true)) | keys'
# digest: 4a0a00473045022100c7ba43506f7d74dc00810bb87f807b413a9896a6a7a760b1d1ce614f726665810220487117a0c2b182d08752a924512d377af329e32c93672352e8cd31807819c2bf:922c64590222798bb761d5b6d8e72950