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

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