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

32 lines
814 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: 4a0a00473045022022bc50161940e9d255698ab1bdc38854821fe1679f32128fed04663b190f9cce02210095d5cb4000ce7944d49d86da3a35ce7e393db22f0cadc57f22230f5ab14dec70:922c64590222798bb761d5b6d8e72950