Merge pull request #10752 from righettod/gitea_upd

Refactor the "GITEA" template.
patch-11
Dhiyaneshwaran 2024-09-16 10:22:23 +05:30 committed by GitHub
commit 44e78ed9d4
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 14 additions and 6 deletions

View File

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