id: gradio-detect

info:
  name: Gradio - Detect
  author: s4e-io
  severity: info
  description: |
    An instance running Gradio was detected.
  reference:
    - https://github.com/gradio-app/gradio
  metadata:
    verified: true
    max-request: 1
    fofa-query: "Gradio"
  tags: gradio,tech,detect

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

    host-redirects: true
    matchers:
      - type: dsl
        dsl:
          - 'contains_any(body, "gradio-app", "gradio-app/gradio", "__gradio_mode__")'
          - 'status_code == 200'
        condition: and
# digest: 490a00463044022004f444fa8bea12a1420d03b9fc0017df9259eea1095b15ff8eb952351599558f02204bb79cfe375ddcf9b9186e87444acc6fdb96fdd3e7e321c82f90f2b5d75a8aef:922c64590222798bb761d5b6d8e72950