web service finder: gitea

This commit is contained in:
Roman Hergenreder 2021-04-30 22:58:19 +02:00
parent 4844a927a8
commit 7cd75f1022

@ -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()