id: openresty-detect

info:
  name: OpenResty detection
  author: jcockhren
  severity: info
  description: Some deployments of OpenResty spill their version numbers.
  metadata:
    max-request: 1
    shodan-query: product:"OpenResty"
  tags: tech,openresty

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

    matchers:
      - type: word
        part: server
        words:
          - "openresty"

    extractors:
      - type: regex
        part: header
        regex:
          - 'openresty/[0-9.]+'
# digest: 4b0a00483046022100de062f1d1038062c473342d6b590d39de2740b1c8521178e10810308cc713af70221008d0bc947c553f486cf288772d6139f9d621e580f4aa48f77fb70026c1b486124:922c64590222798bb761d5b6d8e72950