id: openarchives-detect

info:
  name: openarchives - Detection
  author: ZeroChill
  severity: info
  description: |
    Detects Open Archives Initiative instance
  reference:
    - https://www.openarchives.org/
  metadata:
    verified: true
    shodan-query: http.html:"</OAI-PMH"
  tags: tech,openarchive

http:
  - method: GET
    path:
      - "{{BaseURL}}"

    matchers-condition: and
    matchers:
      - type: word
        part: body
        words:
          - 'OAI-PMH'
          - 'www.openarchives.org'
          - '</OAI-PMH'
        condition: and

      - type: status
        status:
          - 200
# digest: 4a0a00473045022100b127e03b7b7c5f2f1e853510a9a8646ef19122773143d4349534ad9f945c5029022015244c44d9ee40a6338f9703caa55fdb9083add3394deed901b7442c708f1de6:922c64590222798bb761d5b6d8e72950