Update matrix-detect.yaml
parent
c7b12834bc
commit
39b896fd70
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue