Skip to content

Commit

Permalink
Merge pull request #7069 from projectdiscovery/protocol-switch
Browse files Browse the repository at this point in the history
Added Switching Protocol Detection
  • Loading branch information
ritikchaddha authored Apr 20, 2023
2 parents 7ad1b31 + 39ee5a5 commit 1fb351e
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions technologies/switch-protocol.yaml
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 1fb351e

Please sign in to comment.