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

30 lines
892 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:
shodan-query: "port:445"
javascript:
- code: |
var m = require("nuclei/smb");
var c = m.SMBClient();
var response = c.ConnectSMBInfoMode(Host, Port);
to_json(response);
args:
Host: "{{Host}}"
Port: "445"
extractors:
- type: json
part: response
json:
- '.Capabilities | with_entries(select(.value == true)) | keys'
# digest: 490a0046304402201801f07d376da14aef19ab88b74c22c10d880c3aa6e3f09c816b6236ec4f0542022048f66d7bab25a03efda39948aef7d90363052ff9b2e59def720c7af27cd2a1e9:922c64590222798bb761d5b6d8e72950