id: hikvision-detect

info:
  name: Hikvision Panel
  author: pdteam,its0x08
  severity: info
  metadata:
    verified: true
    max-request: 2
    shodan-query: http.favicon.hash:999357577
    product: ds-2cd2026g2-iu\/sl_firmware
    vendor: hikvision
    fofa-query: icon_hash=999357577
  tags: tech,hikvision

http:
  - method: GET
    path:
      - "{{BaseURL}}/favicon.ico"
      - "{{BaseURL}}/doc/page/login.asp"

    stop-at-first-match: true

    matchers-condition: or
    matchers:
      - type: word
        part: body
        words:
          - "Hikvision Digital Technology"

      - type: word
        name: server
        part: header
        words:
          - "Hikvision-Webs"

      - type: dsl
        name: favicon
        dsl:
          - "'999357577' == mmh3(base64_py(body))"
# digest: 480a00453043021f66f440cbb5f470b3aecab6c1eff1b94349b2aab3725f64ea54a88b285a225402205a683119259b64a0d231e9ff368d592075ee595f1e8960ce3f610d534aba843f:922c64590222798bb761d5b6d8e72950