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 tags: js,network,smb,enum 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: 4b0a00483046022100d6a33a99d4196af35fb8cad28d1c479443979a9948ccfd1c29569005b7ac911b022100c402571f32c02fdf8af300505866625ea130d9fc73e36751dc7a52d8d04e1188:922c64590222798bb761d5b6d8e72950