Update matrix-detect.yaml

patch-1
Prince Chaddha 2022-07-03 22:34:04 +05:30 committed by GitHub
parent c7b12834bc
commit 39b896fd70
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 14 additions and 5 deletions

View File

@ -1,7 +1,7 @@
id: matrix-server-detect
id: matrix-detect
info:
name: Detect a Matrix server
name: Matrix Server Detect
author: erethon
severity: info
description: Detects Matrix servers based on .well-known entries. See https://en.wikipedia.org/wiki/Matrix_(protocol)
@ -16,25 +16,34 @@ requests:
matchers-condition: and
matchers:
- type: status
status:
- 200
- type: word
part: body
words:
- "m."
- type: word
part: header
words:
- "text/plain"
- type: status
status:
- 200
extractors:
- type: json
part: body
name: server-to-server
json:
- '."m.server" | select( . != null )'
- type: json
part: body
name: client-homeserver
json:
- '."m.homeserver" | .base_url | select( . != null )'
- type: json
part: body
name: identity-server