id: lighttpd-detect

info:
  name: Lighttpd Web Server - Detect
  author: Shivam Kamboj
  severity: info
  description: |
    Detected servers running the Lighttpd web server by identifying the Server header in HTTP responses.
  reference:
    - https://www.lighttpd.net/
  metadata:
    verified: true
    max-request: 1
    shodan-query: http.component:"lighttpd"
  tags: tech,lighttpd,server,discovery

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

    matchers:
      - type: dsl
        dsl:
          - 'contains(header, "lighttpd")'

    extractors:
      - type: regex
        name: lighttpd_version
        part: header
        group: 1
        regex:
          - 'lighttpd/([0-9.]+)'
# digest: 4b0a00483046022100ed0fcf1f1d50d88df97e6da592b6ecac73f1f6ab3755dc32c930256db512810e022100b987cec0563d0bad67702c5b70ee18e4c2247d5f5413544863842319240c3581:922c64590222798bb761d5b6d8e72950