From c272efe8b1ca47ab11cf77a856a71597913410a1 Mon Sep 17 00:00:00 2001 From: "Namhyeon, Go" Date: Wed, 9 Oct 2024 01:32:45 +0900 Subject: [PATCH] Update fediverse.py --- plugins/fediverse.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/plugins/fediverse.py b/plugins/fediverse.py index 21254a9..fd9fc05 100644 --- a/plugins/fediverse.py +++ b/plugins/fediverse.py @@ -75,9 +75,10 @@ class Fediverse(Extension): pattern = r"\b(?:(?<=\/@)|(?<=acct:))([a-zA-Z0-9]{10})\b" matches = list(set(re.findall(pattern, text))) if len(matches) > 0: - logger.info("[*] Found ID: %s" % (", ".join(matches))) try: filtered = not all(map(self.pwnedpasswords_test, matches)) + if filtered: + logger.warning("[*] Found Suspicious ID: %s" % (", ".join(matches))) except Exception as e: logger.error("[*] K-Anonymity strategy not working!", exc_info=e) filtered = True