Merge pull request #7069 from projectdiscovery/protocol-switch

Added Switching Protocol Detection
patch-1
Ritik Chaddha 2023-04-21 00:23:02 +05:30 committed by GitHub
commit 1fb351e781
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 28 additions and 0 deletions

View File

@ -0,0 +1,28 @@
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
requests:
- 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