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

32 lines
940 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
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: 4b0a0048304602210082593316ec1a97bfb79e418e795a360cea0a3b5f3032690a00396b29ca8870b60221009f704d5b96964ebc0886a54635f92283465fba72d126d285481f347403dfcb12:922c64590222798bb761d5b6d8e72950