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

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: 4a0a0047304502200b49af494d7beec76ce0685ab82a630f6c96416428a5cf9c7889306d7e926e1b022100c75c5b2568c43adc4c2ae006921175a435d5a815461bdd60fcaf2fad4fc24887:922c64590222798bb761d5b6d8e72950