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

36 lines
1.0 KiB
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
2025-05-27 02:29:19 +00:00
product: dionaea
vendor: dionaea
tags: js,network,smb,enum
2023-10-03 00:40:04 +05:30
javascript:
2024-07-10 17:38:01 +05:30
- pre-condition: |
isPortOpen(Host,Port);
code: |
2023-10-03 00:40:04 +05:30
var m = require("nuclei/smb");
var c = m.SMBClient();
var response = c.ConnectSMBInfoMode(Host, Port);
2024-02-29 13:35:22 +05:30
Export(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'
2024-12-01 13:57:55 +00:00
# digest: 4a0a00473045022100e718f7b9d409bba53cd26e9567ac59f934de8168695b4dd6e8a831903f23bcde02207f0f651fa54cd8a4b4946680564ca603233378201fd80e7d8d7f4483edcf9366:922c64590222798bb761d5b6d8e72950