id: hugo-detect

info:
  name: Hugo Detect
  author: daffainfo
  severity: info
  description: Hugo is a fast and modern static site generator written in Go
  classification:
    cpe: cpe:2.3:a:gohugo:hugo:*:*:*:*:*:*:*:*
  metadata:
    verified: true
    max-request: 1
    vendor: gohugo
    product: hugo
    shodan-query: http.html:'Hugo'
  tags: tech,hugo,discovery

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

    redirects: true
    max-redirects: 2

    matchers-condition: and
    matchers:
      - type: word
        part: body
        words:
          - '<meta name=generator content="Hugo'

      - type: status
        status:
          - 200

    extractors:
      - type: regex
        group: 1
        regex:
          - '(?m)<meta name=generator content="Hugo ([0-9.]+)">'
# digest: 490a00463044022031a29b72775a76b38517972a3ec0a0bbb6364cf8bc28409fddec0de455a5650502200109fde71747439db1006de042b5383391539c6f5286f10a2165d227c6443c0d:922c64590222798bb761d5b6d8e72950