mirror of
https://github.com/gnh1201/caterpillar.git
synced 2025-09-06 01:41:00 +00:00
Update server.py
This commit is contained in:
parent
f35b614325
commit
369e76b787
|
@ -168,6 +168,7 @@ def proxy_check_filtered(data, webserver, port, scheme, method, url):
|
||||||
# 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})(?![a-zA-Z0-9])'
|
||||||
matches = re.findall(pattern, text)
|
matches = re.findall(pattern, text)
|
||||||
|
print (matches)
|
||||||
if len(matches) > 0:
|
if len(matches) > 0:
|
||||||
filtered = not all(map(validate_string_with_k_anonymity, matches))
|
filtered = not all(map(validate_string_with_k_anonymity, matches))
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user