Update server.py

This commit is contained in:
Namhyeon Go 2024-02-17 22:35:34 +09:00 committed by GitHub
parent 2978c73ed5
commit 5d0c3d5f4e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -134,7 +134,7 @@ def proxy_check_filtered(response, webserver, port):
text = response.decode(client_encoding, errors='ignore')
filtered = text.find('@misskey.io') > -1 or text.find('ctkpaarr') > -1 or re.search(r'\b\w{10}@\w+\.\w+\b', text)
filtered = text.find('@misskey.io') > -1 or text.find('ctkpaarr') > -1 or bool(re.search(r'\b\w{10}@\w+\.\w+\b', text))
if filtered:
print ("[*] filtered from %s:%s" % (webserver.decode(client_encoding), str(port)))
#print ("[*] ====== start response data =====")