id: php-detect

info:
  name: PHP Detect
  author: y0no
  severity: info
  classification:
    cpe: cpe:2.3:a:php:php:*:*:*:*:*:*:*:*
  metadata:
    verified: true
    max-request: 1
    vendor: php
    product: php
    shodan-query: "X-Powered-By: PHP"
  tags: tech,php

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

    matchers-condition: and
    matchers:
      - type: word
        part: header
        words:
          - "PHP"

      - type: status
        status:
          - 200

    extractors:
      - type: regex
        part: header
        group: 1
        regex:
          - "X-Powered-By: PHP/([0-9.]+)"
# digest: 490a0046304402200b11448a2b8ba8afe8ddb8c97d8df6b854a8b88c18a9561a003db989911665170220600d2f975bcf48b1ed28c700488b274bf8ea9af8181a89bb5ce238b6a86c6c78:922c64590222798bb761d5b6d8e72950