id: defaced-website-detect

info:
  name: Defaced Website - Detection
  author: ggranjus
  severity: info
  description: The detected website is defaced.
  metadata:
    verified: 'true'
    max-request: 1
    shodan-query: http.title:"Hacked By"
  tags: miscellaneous,defacement,misc,vuln

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

    matchers:
      - type: regex
        part: body
        regex:
          - '(?i)<title>.*Hacked( By .+)?<\/title>'

    extractors:
      - type: xpath
        xpath:
          - '/html/head/title'
# digest: 4a0a00473045022100958a5bd655278b26e4fe0403849ed1deec42cfd4daeb85777bef959c7cd7f3e502203e795ff761b741896cdb8316a0b6369012db151333be27f201f954dbeb8640ae:922c64590222798bb761d5b6d8e72950