id: greatpages-takeover

info:
  name: GreatPages - Takeover Detection
  author: juliosmelo
  severity: high
  description: |
    Detects potential subdomain takeover on GreatPages.com.br by identifying the default error message shown on unclaimed pages.
  reference:
    - https://greatpages.com.br
  metadata:
    verified: true
    fofa-query: cname="cname.greatpages.com.br"
    max-request: 1
  tags: takeover,greatpages

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

    matchers-condition: and
    matchers:
      - type: dsl
        dsl:
          - Host != ip

      - type: word
        words:
          - "Página não encontrada (Erro 404)"

    extractors:
      - type: dsl
        dsl:
          - cname
# digest: 4a0a00473045022100f9d01e2b64097b0f92ecd02ccf4f0a9108e8342e1206cf7c40437fc1368d599e022038994423df278ab991ff3688d8a21d1e0fca8c93740c7fb759d19188d6df3f1b:922c64590222798bb761d5b6d8e72950