30 lines
619 B
YAML
30 lines
619 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
|