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

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