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,discovery

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: 4b0a00483046022100dc38cda71df062b8291886f2ce0ca38d71b52d1a9722800687aee6baa4bfddbd022100b91197a3878ef432197f2724a385203dd3c69e75920428e7a293927865dd6375:922c64590222798bb761d5b6d8e72950