From 6450ca7b4a6054bc876c5dcc2a482c45090fc235 Mon Sep 17 00:00:00 2001 From: bretfourbe Date: Sun, 14 Jul 2024 13:51:30 +0200 Subject: [PATCH] Reduce false positives on wapp module fixing version_regex Signed-off-by: bretfourbe --- wapitiCore/attack/mod_wapp.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wapitiCore/attack/mod_wapp.py b/wapitiCore/attack/mod_wapp.py index 156374564..7e716437d 100644 --- a/wapitiCore/attack/mod_wapp.py +++ b/wapitiCore/attack/mod_wapp.py @@ -47,7 +47,7 @@ MSG_CPE = " -> CPE: {0}" BULK_SIZE = 50 -VERSION_REGEX = re.compile(r"\d[\d.]*") +VERSION_REGEX = re.compile(r"^\d[\w.-]*$") SCRIPT = ( "wapiti_results = {};\n"