-
Notifications
You must be signed in to change notification settings - Fork 3.1k
Detect Matrix homeserver software and version #8721
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
36e7d42
66b105c
17ec7fd
fa1e4c3
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| 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"' | ||
|
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. See above, this is not just for Synapse. Moreover, the fact that the federation endpoint under
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Hi @davidegirardi , i have updated the matcher and raised a PR 8739 Let me know if it works Thanks ! |
||
| - '"server":' | ||
| condition: and | ||
|
|
||
| extractors: | ||
| - type: json | ||
| part: body | ||
| json: | ||
| - '.server | select((.name != null) and (.version != null)) | .name, .version' | ||
Uh oh!
There was an error while loading. Please reload this page.