id: livehelperchat-detect

info:
  name: Live Helper Chat Detect
  author: pikpikcu,ricardomaia
  severity: info
  classification:
    cpe: cpe:2.3:a:livehelperchat:live_helper_chat:*:*:*:*:*:*:*:*
  metadata:
    verified: true
    max-request: 3
    vendor: livehelperchat
    product: live_helper_chat
    fofa-query: title="Live Helper Chat"
  tags: livehelperchat,tech,discovery

http:
  - method: GET
    path:
      - "{{BaseURL}}"
      - "{{BaseURL}}/doc/CHANGELOG.txt"
      - "{{BaseURL}}/doc/README.txt"

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

    matchers-condition: or
    matchers:
      - type: regex
        part: body
        regex:
          - "(?i)Live.Helper.Chat"

      - type: regex
        regex:
          - '(?i)Copyright.\(c\).2019.Remigijus.Kiminas'

    extractors:
      - type: regex
        name: version
        part: body
        group: 1
        regex:
          - '^(?i)((\d+\.)?(\d+\.)?(\*|\d+))v'
# digest: 4a0a00473045022100eaad6b0222f0c767ea4f1bae357b76df281d96213d57e45562e90f283d5afea902206af061e28b12cc93ac39a9248027e4a09d07806c167a99d06c7fb270f1f96166:922c64590222798bb761d5b6d8e72950