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

32 lines
940 B
YAML
Raw Normal View History

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