id: jupyterhub-panel

info:
  name: JupyterHub Panel - Detect
  author: rxerium
  severity: info
  description: |
    JupyterHub is a multi-user server for Jupyter notebooks
  reference:
    - https://github.com/jupyterhub/jupyterhub
    - https://jupyter.org/hub
  metadata:
    verified: true
    max-request: 1
    vendor: jupyter
    product: jupyterhub
    shodan-query: 'http.title:"JupyterHub"'
  tags: panel,jupyterhub,jupyter,ml,ai,detect,discovery

http:
  - method: GET
    path:
      - "{{BaseURL}}/hub/login"

    host-redirects: true
    max-redirects: 2

    matchers-condition: and
    matchers:
      - type: regex
        part: body
        regex:
          - '(?i)<title>[^<]*JupyterHub[^<]*</title>'

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