id: lotus-domino-version

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

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: 490a00463044022037f59385ff486d8b7cca75f427814028aeac3554e55dc9dfcade5a554ed06dc402203588ec08f2b41706e4dd26664a7d8345a99073336af806ad7219e70b488e753a:922c64590222798bb761d5b6d8e72950