id: thinkphp-detect

info:
  name: ThinkPHP - Detect
  author: pwnhxl
  severity: info
  description: ThinkPHP was detected.
  classification:
    cvss-metrics: CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:N
    cvss-score: 0
    cwe-id: CWE-200
    cpe: cpe:2.3:a:thinkphp:thinkphp:*:*:*:*:*:*:*:*
  metadata:
    verified: true
    max-request: 2
    shodan-query: title:"ThinkPHP"
    fofa-query: app="ThinkPHP"
    product: thinkphp
    vendor: thinkphp
  tags: thinkphp,tech,detect,intrusive

http:
  - method: GET
    path:
      - "{{BaseURL}}"
      - "{{BaseURL}}/?s={{randstr}}&c={{randstr}}&a={{randstr}}&m={{randstr}}"

    stop-at-first-match: true

    matchers-condition: or
    matchers:
      - type: word
        part: body
        words:
          - '/Library/Think/'
          - '{ Fast & Simple OOP PHP Framework } -- [ WE CAN DO IT JUST THINK ]'
          - '/thinkphp/library/think/'
        condition: or

      - type: word
        part: header
        words:
          - 'X-Powered-By: ThinkPHP'
# digest: 4b0a00483046022100d0cf43fd93f5cfd4abcfd8373987a3e0ac909847c975f2bdf31ead1e0c831ef2022100f702442f5b7e4b23e7e9c9e69836d924574c5efa7470aa8c114cec182b27f0c0:922c64590222798bb761d5b6d8e72950