id: discuz-panel

info:
  name: Discuz Panel - Detection
  author: ritikchaddha
  severity: info
  classification:
    cpe: cpe:2.3:a:comsenz:discuz\\!:*:*:*:*:*:*:*:*
  metadata:
    verified: true
    max-request: 1
    vendor: comsenz
    product: discuz\\!
    shodan-query: title:"Discuz!"
    fofa-query: title="Discuz!"
  tags: panel,discuz,detect,login

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

    host-redirects: true

    matchers-condition: and
    matchers:
      - type: word
        part: body
        words:
          - 'discuz_uid ='
          - 'discuz</a>'
          - 'Powered by Discuz!'
          - 'content="Discuz'
        condition: or

    extractors:
      - type: regex
        part: body
        group: 1
        regex:
          - '<em>X([0-9.]+)<\/em><\/p>'
# digest: 4a0a0047304502201bc3d651edd067e62d697218fc6058c0fdb156d8e3f8fb30233a26ea7c754cab022100fb165447fdbd548b63fd2086dc5115183269e116dd9a8afbfbf1d950233e9042:922c64590222798bb761d5b6d8e72950