id: dedecms-detect

info:
  name: DedeCMS Detect
  author: ritikchaddha,pphuahua
  severity: info
  classification:
    cpe: cpe:2.3:a:dedecms:dedecms:*:*:*:*:*:*:*:*
  metadata:
    verified: true
    max-request: 2
    vendor: dedecms
    product: dedecms
    shodan-query: title:"dedecms" || http.html:"power by dedecms"
  tags: dedecms,tech

http:
  - method: GET
    path:
      - "{{BaseURL}}"
      - "{{BaseURL}}/robots.txt"

    host-redirects: true
    max-redirects: 2

    matchers-condition: and
    matchers:
      - type: dsl
        dsl:
          - "status_code_1 == 200 && contains(body,'Power by DedeCms') || contains(body,'DedeCMS演示站') || contains(body,'DedeCMS')"
          - "status_code_2 == 200 && contains(body_2,'/plus/search.php')"
        condition: or
# digest: 490a00463044022056ad4cf30bea30631e96a20416850830ba5890c5a53dc9d75597399d1b7874b102205af2b585aff76cedad28d2bb5e87346c88b098626d1f9516ec57b8533fcbb079:922c64590222798bb761d5b6d8e72950