id: hikvision-detect

info:
  name: Hikvision Panel
  author: pdteam,its0x08
  severity: info
  metadata:
    verified: true
    max-request: 2
    shodan-query: http.favicon.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: 490a0046304402205697588f5a41b6aa1f491fbea1cafed2fd716b9fc58897b06584b1affbe2769e022056276cf298f0ace09edf2350f58b4272dc2f82c47e9c2c1e606acdf397e99803:922c64590222798bb761d5b6d8e72950
