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,discovery

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