nuclei-templates/http/technologies/switch-protocol.yaml

30 lines
621 B
YAML

id: switch-protocol
info:
name: Switching Protocol Detection
author: pdteam
severity: info
metadata:
max-request: 1
verified: "true"
shodan-query: '"connection: upgrade"'
tags: protocol,switching,tech,websocket,h2c
http:
- method: GET
path:
- "{{BaseURL}}"
matchers:
- type: dsl
dsl:
- 'status_code == 101'
- 'contains(to_lower(header), "switching protocols")'
- 'contains(to_lower(header), "connection: upgrade")'
- 'contains(to_lower(header), "upgrade:")'
extractors:
- type: dsl
dsl:
- upgrade