id: fooocus-panel

info:
  name: Fooocus Panel - Detect
  author: rxerium
  severity: info
  description: |
    Fooocus, an open-source, offline Stable Diffusion image-generation UI built on Gradio and focused on simplified prompt-based image generation, was detected by matching its Fooocus-branded page metadata together with the embedded Gradio config, thereby avoiding collisions with other Gradio apps (ComfyUI, text-generation-webui, etc.) that commonly share the same port.
  reference:
    - https://github.com/lllyasviel/Fooocus
  metadata:
    verified: true
    max-request: 1
    vendor: lllyasviel
    product: fooocus
    shodan-query: 'html:"fooocus"'
  tags: panel,fooocus,ai,image-generation,gradio,detect,discovery

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

    host-redirects: true
    max-redirects: 2

    matchers-condition: and
    matchers:
      - type: word
        part: body
        words:
          - 'og:title" content="Fooocus'
          - "window.gradio_config"
        condition: and

      - type: status
        status:
          - 200
# digest: 490a004630440220252fa06c121b73fa948a6c083368e00dce0e5dc25086f16bb1fe79fbbe7b6d5102202350983d83515403401c7a6d3f1fe5d4eb44bd48b576fa7b79bc2be9b009a03b:922c64590222798bb761d5b6d8e72950