nuclei-templates/technologies/switch-protocol.yaml

29 lines
606 B
YAML
Raw Normal View History

2023-04-15 19:00:15 +00:00
id: switch-protocol
2023-04-15 11:21:02 +00:00
info:
name: Switching Protocol Detection
author: pdteam
severity: info
metadata:
2023-04-15 19:00:15 +00:00
verified: "true"
2023-04-15 11:21:02 +00:00
shodan-query: '"connection: upgrade"'
2023-04-15 19:00:15 +00:00
tags: protocol,switching,tech,websocket,h2c
2023-04-15 11:21:02 +00:00
requests:
- 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