id: dufs-detect

info:
  name: DUFS - Detect
  author: righettod
  severity: info
  description: |
    DUFS software was detected.
  reference:
    - https://github.com/sigoden/dufs
  metadata:
    verified: true
    max-request: 1
    shodan-query: http.html:"Dufs"
  tags: tech,dufs,detect

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

    host-redirects: true
    matchers:
      - type: dsl
        dsl:
          - 'status_code == 200'
          - 'contains_all(to_lower(body), "__dufs_v", "allow_upload")'
        condition: and

    extractors:
      - type: regex
        part: body
        group: 1
        regex:
          - '(?i)__dufs_v([0-9.]+)_'
# digest: 4a0a0047304502207075e8131e0d89d788a35a25752a9961b7e54441ede7af93d91763e499b438400221009e3c1465b636f7bb0f90717561449c03752ad847aeed80dcf261b93b32f9e36d:922c64590222798bb761d5b6d8e72950