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

32 lines
941 B
YAML
Raw Normal View History

2023-10-03 00:40:04 +05:30
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
2024-02-19 14:25:00 +05:30
tags: js,network,smb,enum
2023-10-03 00:40:04 +05:30
javascript:
- code: |
var m = require("nuclei/smb");
var c = m.SMBClient();
var response = c.ConnectSMBInfoMode(Host, Port);
2024-01-09 15:08:08 +05:30
to_json(response);
2023-10-03 00:40:04 +05:30
args:
Host: "{{Host}}"
Port: "445"
extractors:
- type: json
part: response
json:
- '.Capabilities | with_entries(select(.value == true)) | keys'
# digest: 4b0a00483046022100d6a33a99d4196af35fb8cad28d1c479443979a9948ccfd1c29569005b7ac911b022100c402571f32c02fdf8af300505866625ea130d9fc73e36751dc7a52d8d04e1188:922c64590222798bb761d5b6d8e72950