28 lines
675 B
YAML
28 lines
675 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);
|
||
|
|
||
|
args:
|
||
|
Host: "{{Host}}"
|
||
|
Port: "445"
|
||
|
|
||
|
extractors:
|
||
|
- type: json
|
||
|
part: response
|
||
|
json:
|
||
|
- '.Capabilities | with_entries(select(.value == true)) | keys'
|