id: pi-hole-panel

info:
  name: Pi-hole Login Panel - Detect
  author: geeknik
  severity: info
  classification:
    cpe: cpe:2.3:a:pi-hole:pi-hole:*:*:*:*:*:*:*:*
  metadata:
    verified: true
    max-request: 5
    vendor: pi-hole
    product: pi-hole
    shodan-query: title:"Pi-hole"
  tags: tech,pihole,detect

http:
  - method: GET
    path:
      - "{{BaseURL}}"
      - "{{BaseURL}}/admin/index.php"
      - "{{BaseURL}}/admin/login.php"
      - "{{BaseURL}}/admin/index.php?login"
      - "{{BaseURL}}/index.php?login"

    host-redirects: true
    max-redirects: 2
    stop-at-first-match: true

    matchers-condition: or
    matchers:
      - type: word
        part: body
        words:
          - "Pi-hole"
          - "Web Interface"
          - "FTL"
        condition: and

      - type: word
        part: body
        words:
          - '<title>Pi-hole'
          - 'Pi-hole: Your black hole for Internet advertisements'
          - 'Pi-hole: A black hole for Internet advertisements'
          - '<pre>sudo pihole -a -p</pre>'
        condition: or
# digest: 4a0a00473045022100b4d89ceb2a22c83a9a1988739c0f7fde4e6e613bc062843b8fd78cd81c45c90902204fb8641375f7394ed7fec796f79b1a72ad3d59198d5efb85b716c46e4a96d6ca:922c64590222798bb761d5b6d8e72950