deepce, web_service_finder: cacti, small fixes
This commit is contained in:
@@ -153,7 +153,6 @@ class WebServiceFinder:
|
||||
if generator.has_attr("version"):
|
||||
print("[+] Found XML Generator version:", generator["version"])
|
||||
|
||||
|
||||
def analyseHtml(self, res):
|
||||
soup = BeautifulSoup(res.text, "html.parser")
|
||||
|
||||
@@ -177,6 +176,14 @@ class WebServiceFinder:
|
||||
self.printMatch("Gogs", gogs_pattern.search(content), 2)
|
||||
self.printMatch("Go", go_pattern.search(content), 2)
|
||||
|
||||
versionInfo = soup.find("div", {"class": "versionInfo"})
|
||||
if versionInfo:
|
||||
content = versionInfo.text.strip()
|
||||
|
||||
cacti_pattern = re.compile(r"Version ([0-9.]*) .* The Cacti Group")
|
||||
self.printMatch("Cacti", cacti_pattern.search(content), 1)
|
||||
|
||||
|
||||
moodle_pattern_1 = re.compile(r"^https://download.moodle.org/mobile\?version=(\d+)(&|$)")
|
||||
moodle_pattern_2 = re.compile(r"^https://docs.moodle.org/(\d+)/")
|
||||
litecart_pattern = re.compile(r"^https://www.litecart.net")
|
||||
|
||||
Reference in New Issue
Block a user