id: dedecms-detect

info:
  name: DedeCMS Detect
  author: ritikchaddha,pphuahua
  severity: info
  metadata:
    verified: true
    max-request: 2
    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: 4b0a00483046022100f2a254d9ca7e339d5f133823a68672e98e10238ed6271f38f42563f25ffc529a022100c9dde7ff33c0bd678edb3ffb20f2cd78c50c43dc9604c78f8a7a3bbfe014f3a3:922c64590222798bb761d5b6d8e72950
