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