id: khoj-detect

info:
  name: Khoj - Detect
  author: s4e-io
  severity: info
  description: Khoj was detected.
  reference:
    - https://github.com/khoj-ai/khoj
  metadata:
    verified: true
    max-request: 1
    fofa-query: icon_hash="-272853549"
  tags: tech,khoj,discovery

http:
  - method: GET
    path:
      - "{{BaseURL}}"

    host-redirects: true
    max-redirects: 2
    matchers-condition: and
    matchers:
      - type: word
        part: body
        words:
          - '<title>Khoj AI'
          - 'content="Khoj AI'
          - 'khoj.dev'
        condition: or

      - type: status
        status:
          - 200
# digest: 4a0a0047304502200d7f7063f3a24c9bad724a3a10d85e9b93c510d4e273a475dfa58981b2513d9b0221009453c30a52a12a909e0af92f1570389f0e02ad51fb065d9490f349467036ef8d:922c64590222798bb761d5b6d8e72950