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