From 7cd75f1022769b6d46d6d6e3abb31b54cb9ad153 Mon Sep 17 00:00:00 2001 From: Roman Hergenreder Date: Fri, 30 Apr 2021 22:58:19 +0200 Subject: [PATCH] web service finder: gitea --- web_service_finder.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/web_service_finder.py b/web_service_finder.py index 8970a93..3e80b74 100755 --- a/web_service_finder.py +++ b/web_service_finder.py @@ -162,6 +162,11 @@ class WebServiceFinder: banner = meta_generator["content"].strip() print("[+] Meta Generator:", banner) + body = soup.find("body") + if body: + gitea_pattern = re.compile(r"Gitea Version: ([0-9\.]*)") + self.printMatch("Gitea", gitea_pattern.search(body.text)) + footer = soup.find("footer") if footer: content = footer.text.strip()