From 8cfe40ca19c9c08bd6a173a7f7de9b7cb0cfd80a Mon Sep 17 00:00:00 2001 From: "Namhyeon, Go" Date: Mon, 19 Feb 2024 08:08:41 +0900 Subject: [PATCH] Update server.py --- server.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/server.py b/server.py index b4f4fba..932401b 100644 --- a/server.py +++ b/server.py @@ -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))