add debug log for results and add new proxy types

This commit is contained in:
Em 2021-07-04 18:54:46 -04:00
parent c2ab57540f
commit b4dc2c9196
1 changed files with 2 additions and 1 deletions

View File

@ -92,12 +92,13 @@ with pgconn:
debug_log.debug(comment.text)
already_sent = False
for entry in results:
debug_log.debug(results)
if entry[4] != "inactive":
should_remove = False
if entry[4] == "active":
if entry[7]:
if entry[1] == entry[3] or entry[1] == ip:
if entry[5] in ["http", "socks5", "socks4"]:
if entry[5] in ["http", "socks5", "socks4", "httpsocks", "https"]:
details = f"{entry[1]} has an open {entry[5]} proxy on port {entry[2]}, confirmed active at {entry[6]}"
if entry[5] == "vpngate":
details = f"{entry[1]} is running an open VPNGate proxy on port {entry[2]}, confirmed active at {entry[6]}. These are heavily abused by spammers, therefore they are blocked."