id: phplist-detect

info:
  name: phpList - Detect
  author: ricardomaia
  severity: info
  description: |
    phpList is an open source newsletter manager.
  reference:
    - https://www.phplist.org/
  metadata:
    verified: true
    max-request: 1
    shodan-query: html:"phplist"
  tags: tech,phplist,detect

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

    host-redirects: true
    max-redirects: 2
    matchers:
      - type: word
        part: body
        words:
          - 'content="phpList'
          - 'phpList Ltd'
          - 'phpList</a>'
        condition: or
        case-insensitive: true

    extractors:
      - type: regex
        name: version
        part: body
        group: 1
        regex:
          - '(?i)version.((\d\.?)+)'

# digest: 4b0a00483046022100b9689d0d38d96a02736636f6b53b41e7c80d65679297db556f6cc0eea8c2417c022100bbdd5891a3b8f5a2ac5070c9420030c82f3bbfcd1d405bf0403634c13c695a61:922c64590222798bb761d5b6d8e72950
