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 javascript: - code: | var m = require("nuclei/smb"); var c = m.SMBClient(); var response = c.ConnectSMBInfoMode(Host, Port); to_json(response); args: Host: "{{Host}}" Port: "445" extractors: - type: json part: response json: - '.Capabilities | with_entries(select(.value == true)) | keys' # digest: 490a00463044022032f1ad2fe6e37fe78714b48ce33bfb3a8601516f2cb7027484899d324cccab2c0220499ef2328e4529ea34c0b84b2782ceaa9f6a46ec5bb846e5d75bef988126ff8e:922c64590222798bb761d5b6d8e72950