id: metatag-cms

info:
  name: Metatag CMS Detection
  author: dadevel
  severity: info
  description: Generic CMS Detection using html meta generator tag
  reference:
    - https://www.w3schools.com/tags/att_meta_name.asp
  metadata:
    max-request: 1
  tags: tech,cms

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

    host-redirects: true
    max-redirects: 2

    matchers-condition: and
    matchers:
      - type: word
        part: header
        words:
          - 'text/html'

      - type: regex
        part: body
        regex:
          - '(?i)<meta\s+?name="?generator"?\s+?content="[^"]+?"'

    extractors:
      - type: regex
        part: body
        group: 1
        regex:
          - '(?i)<meta\s+?name="?generator"?\s+?content="([^"]+?)"'
# digest: 4a0a00473045022100e6e1f051b6c8801ea4e41c0d06c0d10760ffbc4c98a2935c5e280dfd9f1e1b3b022022ef4f4dd648e105f0d1afc463bf8c9e7c23fa33bfdfe1e0613eba93d81d8f55:922c64590222798bb761d5b6d8e72950