Merge pull request #7069 from projectdiscovery/protocol-switch
Added Switching Protocol Detectionpatch-1
commit
1fb351e781
|
@ -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
|
Loading…
Reference in New Issue