Update server.py

This commit is contained in:
Namhyeon Go 2024-02-19 08:08:41 +09:00 committed by GitHub
parent 1f6615c2d0
commit 8cfe40ca19
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -167,8 +167,8 @@ def proxy_check_filtered(data, webserver, port, scheme, method, url):
# ID validation with K-Anonymity
pattern = r'[/@]([a-zA-Z0-9]{10})(?![a-zA-Z0-9])'
matches = re.findall(pattern, text)
print (matches)
matches = list(set(re.findall(pattern, text)))
print ("[*] Found: %s" % (', '.join(matches)))
if len(matches) > 0:
filtered = not all(map(validate_string_with_k_anonymity, matches))