Update server.py

This commit is contained in:
Namhyeon Go 2024-02-19 08:18:39 +09:00 committed by GitHub
parent fc53acacc4
commit 53e8ea4440
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -166,7 +166,7 @@ def proxy_check_filtered(data, webserver, port, scheme, method, url):
text = data.decode(client_encoding, errors='ignore') text = data.decode(client_encoding, errors='ignore')
# ID validation with K-Anonymity # ID validation with K-Anonymity
pattern = r'[/@]([a-zA-Z0-9]{10})(?![a-zA-Z0-9])' pattern = r'(?<=\/@)([a-zA-Z0-9]{10})'
matches = list(set(re.findall(pattern, text))) matches = list(set(re.findall(pattern, text)))
if len(matches) > 0: if len(matches) > 0:
print ("[*] Found ID: %s" % (', '.join(matches))) print ("[*] Found ID: %s" % (', '.join(matches)))