mirror of
https://github.com/gnh1201/caterpillar.git
synced 2024-11-26 23:41:44 +00:00
Update server.py
This commit is contained in:
parent
8cfe40ca19
commit
fc53acacc4
|
@ -168,8 +168,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 = list(set(re.findall(pattern, text)))
|
||||
print ("[*] Found: %s" % (', '.join(matches)))
|
||||
if len(matches) > 0:
|
||||
print ("[*] Found ID: %s" % (', '.join(matches)))
|
||||
filtered = not all(map(validate_string_with_k_anonymity, matches))
|
||||
|
||||
# take action
|
||||
|
|
Loading…
Reference in New Issue
Block a user