id: pghero-detect

info:
  name: PgHero - Detect
  author: righettod
  severity: info
  description: |
    PgHero products was detected.
  reference:
    - https://github.com/ankane/pghero
  metadata:
    verified: true
    max-request: 1
    shodan-query: http.title:"PgHero"
  tags: tech,pghero,detect,discovery

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

    host-redirects: true
    matchers:
      - type: dsl
        dsl:
          - 'status_code == 200'
          - 'contains_any(to_lower(body), "<title>pghero", "/assets/pghero/", ">pghero</a>")'
        condition: and
# digest: 4b0a00483046022100aa2a5ed3872f4d4f0f486b7a2df5d4f4ca5f48bc57af85143b1184813690203f022100ff732b473eaadc566e58dd7d455502f50befa7c520cee6b1bdbf5c4688eadb1d:922c64590222798bb761d5b6d8e72950