Skip to content

Commit

Permalink
Merge pull request #8721 from davidegirardi/add-matrix-homeserver-ver…
Browse files Browse the repository at this point in the history
…sion-detection

Detect Matrix homeserver software and version
  • Loading branch information
DhiyaneshGeek committed Dec 2, 2023
2 parents a5b94f9 + fa1e4c3 commit 120ef78
Showing 1 changed file with 35 additions and 0 deletions.
35 changes: 35 additions & 0 deletions http/technologies/matrix-homeserver-detect.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
id: matrix-homeserver-detect

info:
name: Matrix Homeserver - Version Detection
author: davidegirardi
severity: info
description: |
Extract the Matrix homeserver name and version
metadata:
max-request: 1
shodan-query: title:"Synapse is running"
verified: true
tags: tech,matrix,synapse

http:
- method: GET
path:
- "{{BaseURL}}/_matrix/federation/v1/version"

redirects: true
max-redirects: 2

matchers:
- type: word
part: body
words:
- '"name":"Synapse"'
- '"server":'
condition: and

extractors:
- type: json
part: body
json:
- '.server | select((.name != null) and (.version != null)) | .name, .version'

0 comments on commit 120ef78

Please sign in to comment.