id: squadcast-takeover

info:
  name: Squadcast Takeover Detection
  author: philippedelteil
  severity: high
  reference:
    - https://github.com/EdOverflow/can-i-take-over-xyz/issues/398
  metadata:
    max-request: 1
  tags: takeover,squadcast

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

    redirects: true
    max-redirects: 2

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

      - type: word
        words:
          - 'There doesn’t seem to be an active status page associated with this URL.'
          - 'Please check the URL and try again.'
        condition: and

      - type: status
        status:
          - 404

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