id: lotus-domino-version

info:
  name: Lotus Domino Version Extractor
  author: CasperGN
  severity: info
  metadata:
    max-request: 7
  tags: tech,lotus

http:
  - method: GET
    path:
      - "{{BaseURL}}/homepage.nsf"
      - "{{BaseURL}}/iNotes/Forms5.nsf"
      - "{{BaseURL}}/iNotes/Forms6.nsf"
      - "{{BaseURL}}/iNotes/Forms7.nsf"
      - "{{BaseURL}}/iNotes/Forms8.nsf"
      - "{{BaseURL}}/iNotes/Forms85.nsf"
      - "{{BaseURL}}/iNotes/Forms9.nsf"

    stop-at-first-match: true

    matchers-condition: and
    matchers:
      - type: status
        status:
          - 200

      - type: regex
        part: body
        regex:
          - "((Domino\\s[A-Za-z]+\\s[0-9\\.]{1,3})|(Forms[0-9\\.]{1,3}\\.nsf\\?OpenDatabase))"

    extractors:
      - type: regex
        part: body
        name: version
        regex:
          - "((Domino\\s[A-Za-z]+\\s[0-9\\.]{1,3})|(Forms[0-9\\.]{1,3}\\.nsf\\?OpenDatabase))"
# digest: 4a0a004730450220423d4be9ba390ef437d29401c0b5530bec016bf0e1050ff3618224250d6541fc02210099c036bd3ac1f9f1f82daed4652638c324e25584cb7b370ced3439d44b6dd23c:922c64590222798bb761d5b6d8e72950