mirror of
https://github.com/gnh1201/caterpillar.git
synced 2025-09-05 09:21:00 +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"
|
pattern = r"\b(?:(?<=\/@)|(?<=acct:))([a-zA-Z0-9]{10})\b"
|
||||||
matches = list(set(re.findall(pattern, text)))
|
matches = list(set(re.findall(pattern, text)))
|
||||||
if len(matches) > 0:
|
if len(matches) > 0:
|
||||||
logger.info("[*] Found ID: %s" % (", ".join(matches)))
|
|
||||||
try:
|
try:
|
||||||
filtered = not all(map(self.pwnedpasswords_test, matches))
|
filtered = not all(map(self.pwnedpasswords_test, matches))
|
||||||
|
if filtered:
|
||||||
|
logger.warning("[*] Found Suspicious ID: %s" % (", ".join(matches)))
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
logger.error("[*] K-Anonymity strategy not working!", exc_info=e)
|
logger.error("[*] K-Anonymity strategy not working!", exc_info=e)
|
||||||
filtered = True
|
filtered = True
|
||||||
|
|
Loading…
Reference in New Issue
Block a user