44 lines
1.1 KiB
YAML
44 lines
1.1 KiB
YAML
id: gitea-detect
|
|
|
|
info:
|
|
name: Gitea Detect
|
|
author: pikpikcu,righettod
|
|
severity: info
|
|
description: Gitea was detected.
|
|
reference:
|
|
- https://about.gitea.com/
|
|
- https://docs.gitea.com/api
|
|
metadata:
|
|
verified: true
|
|
max-request: 1
|
|
shodan-query: http.title:"Gitea"
|
|
tags: tech,gitea
|
|
|
|
http:
|
|
- method: GET
|
|
path:
|
|
- "{{BaseURL}}/user/login"
|
|
|
|
matchers-condition: and
|
|
matchers:
|
|
- type: word
|
|
part: body
|
|
words:
|
|
- "Powered by Gitea"
|
|
- 'content="Gitea'
|
|
condition: or
|
|
|
|
- type: status
|
|
status:
|
|
- 200
|
|
|
|
extractors:
|
|
- type: regex
|
|
part: body
|
|
group: 1
|
|
regex:
|
|
- "Powered by Gitea(\\s*)Version:(\\s*)([\\d.]+)"
|
|
- "Gitea Version: ([0-9a-z+-.~]+)"
|
|
- 'theme-gitea-auto.css\?v=([0-9a-z+-.~]+)'
|
|
- 'encodeURIComponent.{2}([0-9a-z+-.~]+).{2}'
|
|
# digest: 4a0a0047304502206b59ff6e46464cce3b833008cf9d6fcac49091dd3026418a8850db140113ad32022100ac64d598c047c8033ce3a630965d79d35dc7a7ad72a3d4181b422c4bc6157425:922c64590222798bb761d5b6d8e72950 |