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

30 lines
619 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:
max-request: 1
2023-06-04 08:13:42 +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
http:
2023-04-15 11:21:02 +00:00
- 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