29 lines
602 B
YAML
29 lines
602 B
YAML
|
id: switch-protocol
|
||
|
|
||
|
info:
|
||
|
name: Switching Protocol Detection
|
||
|
author: pdteam
|
||
|
severity: info
|
||
|
metadata:
|
||
|
verified: "true"
|
||
|
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
|