Skip to content

Commit

Permalink
Fix headless wapp version detection
Browse files Browse the repository at this point in the history
Signed-off-by: bretfourbe <[email protected]>
  • Loading branch information
bretfourbe authored and fwininger committed Mar 4, 2024
1 parent 3484a59 commit 8efae4c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions wapitiCore/attack/mod_wapp.py
Original file line number Diff line number Diff line change
Expand Up @@ -346,12 +346,12 @@ async def _detect_applications_headless(self, url: str) -> dict:
if version == "undefined":
continue

if not expected_format:
if not expected_format or expected_format.startswith(r"\;"):
if VERSION_REGEX.match(version):
final_results[software] = [version]
else:
final_results[software] = []
elif isinstance(version, str):
elif isinstance(version, str) and r"\;version:" in expected_format:
final_results[software] = [version]
# Other cases seems to be some kind of false positives
# final_results.update(results)
Expand Down

0 comments on commit 8efae4c

Please sign in to comment.