Files
nuclei-templates/http/technologies/switch-protocol.yaml
2024-12-01 13:57:55 +00:00

30 lines
812 B
YAML

id: switch-protocol
info:
name: Switching Protocol Detection
author: pdteam
severity: info
metadata:
verified: true
max-request: 1
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
# digest: 4a0a00473045022100cc2321b35fcb8d5374d4b4fb03d559d1690b049ca52df6e0631fe1ed5375353602203fb375c4a40665d2fb846c3f0dfa260d4b2bb5d9709f8df6723197c0b2468d77:922c64590222798bb761d5b6d8e72950