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:
|
2024-01-14 13:49:27 +00:00
|
|
|
max-request: 1
|
|
|
|
shodan-query: port:445
|
2024-06-07 10:04:29 +00:00
|
|
|
product: dionaea
|
|
|
|
vendor: dionaea
|
2024-02-19 08:55:00 +00:00
|
|
|
tags: js,network,smb,enum
|
2024-07-10 12:08:01 +00:00
|
|
|
|
2023-10-02 19:10:04 +00:00
|
|
|
javascript:
|
2024-07-10 12:08:01 +00:00
|
|
|
- pre-condition: |
|
|
|
|
isPortOpen(Host,Port);
|
|
|
|
code: |
|
2023-10-02 19:10:04 +00:00
|
|
|
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:
|
2024-01-09 09:58:27 +00:00
|
|
|
- '.Capabilities | with_entries(select(.value == true)) | keys'
|
2024-07-10 12:45:27 +00:00
|
|
|
# digest: 4a0a00473045022100cb4f00235612f7ea337a67e0f0b4749e595e21967d3167c70ffe9b65ecbb6809022057d0d7f4d89913737cb799c8c19ce319e4cc4d21ebbc86a707226e7830b13138:922c64590222798bb761d5b6d8e72950
|