id: open-journal-systems

info:
  name: Open Journal Systems Detect
  author: ricardomaia
  severity: info
  description: Open Journal Systems, also known as OJS, is a free software for the management of peer-reviewed academic journals, created by the Public Knowledge Project.
  reference:
    - https://pkp.sfu.ca/ojs/
  metadata:
    verified: true
    max-request: 1
    shodan-query: html:"Open Journal Systems"
  tags: tech,ojs

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

    host-redirects: true
    max-redirects: 2

    matchers-condition: and
    matchers:
      - type: regex
        regex:
          - '(?i).*<meta.name="generator".content="Open.Journal.Systems.*>'

      - type: status
        status:
          - 200

    extractors:
      - type: regex
        name: version
        part: body
        group: 1
        regex:
          - '(?i).*<meta.name="generator".content="Open.Journal.Systems.([\d.|\d]+)'

# digest: 4a0a00473045022100e49d2c28cba23e2a3a98145740b408f9faf4d7b8ef4a3becae5d7eb34c9c0cea02202f4655839ce323cbf113d0161918a12f47e27aaa54a486830df54604d500a46a:922c64590222798bb761d5b6d8e72950
