From 2229dd1311a7b897875cb3aaa0c898ac3f0b3ec5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?F=C3=A9lix=20Aime?= Date: Mon, 11 Jan 2021 21:31:04 +0100 Subject: [PATCH] Typos in the report template --- analysis/classes/report.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/analysis/classes/report.py b/analysis/classes/report.py index 7c1281d..8a601dc 100644 --- a/analysis/classes/report.py +++ b/analysis/classes/report.py @@ -59,11 +59,11 @@ class Report(object): :return: str """ if len(self.alerts["high"]): - return "
Your device seems to be compromised as you have {} high alerts.
".format(self.nb_translate(len(self.alerts["high"]))) + return "
Your device seems to be compromised as you have {} high alert(s).
".format(self.nb_translate(len(self.alerts["high"]))) elif len(self.alerts["moderate"]): - return "
You have {} moderate alerts, your device might be compromised. Please look at them carefully.
".format(self.nb_translate(len(self.alerts["moderate"]))) + return "
You have {} moderate alert(s), your device might be compromised. Please look at them carefully.
".format(self.nb_translate(len(self.alerts["moderate"]))) elif len(self.alerts["low"]): - return "
You have only {} low alerts, don't hesitate to check them.
".format(self.nb_translate(len(self.alerts["low"]))) + return "
You have only {} low alert(s), don't hesitate to check them.
".format(self.nb_translate(len(self.alerts["low"]))) else: return "
Everything looks fine, zero alerts. Don't hesitate to check the uncategorized communications, if any.
" @@ -185,7 +185,7 @@ class Report(object): self.device["mac_address"]) header += "Report generated on {}
".format( datetime.now().strftime("%d/%m/%Y at %H:%M:%S")) - header += "Capture duration: {}
".format( + header += "Capture duration: {}s
".format( self.capinfos["Capture duration"]) header += "Number of packets: {}
".format( self.capinfos["Number of packets"])