id: announcekit-takeover

info:
  name: Announcekit Takeover Detection
  author: melbadry9
  severity: high
  description: Announcekit takeover was detected.
  reference:
    - https://blog.melbadry9.xyz/dangling-dns/xyz-services/dangling-dns-announcekit
    - https://github.com/EdOverflow/can-i-take-over-xyz/issues/228
  metadata:
    max-request: 1
  tags: takeover,announcekit

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

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

      - type: word
        words:
          - 'Error 404 - AnnounceKit'

      - type: status
        status:
          - 404

    extractors:
      - type: dsl
        dsl:
          - cname
# digest: 490a0046304402206536cf5dba711a1bea07d7399114e5877929f089e50564c46a28c4431e11303a02207ea3fc78405577eb7a55fc8eb7cc7628bcf3bfba8fefa1670e420b49cc31ca13:922c64590222798bb761d5b6d8e72950