id: smb-v1-supported

info:
  name: SMB v1 Supported - Detection
  author: pussycat0x
  severity: info
  description: |
    This indicates that the system or application possesses the functionality to operate with SMB version 1. Supporting SMBv1 enables the system to engage in communication utilizing the SMB protocol at its version 1.0.
  reference:
    - https://kb.iu.edu/d/aumn
  metadata:
    verified: true
    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"

    matchers:
      - type: word
        words:
          - '"SupportV1": true'
# digest: 4a0a00473045022100d95d236319ed44664b934a294cba90fc14781284bb773fa5ed00e48e371305dc02203991a991ef2240cef1ed31b9289e69d4af574acf646f3b77e01e73e6bba57d26:922c64590222798bb761d5b6d8e72950