mirror of
https://github.com/gnh1201/caterpillar.git
synced 2024-11-26 15:31:45 +00:00
This commit is contained in:
parent
a0775bd15a
commit
c272efe8b1
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue
Block a user