1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
| import socket import sys
ip = '39.108.164.219' port = 60000
def send_raw(raw):
try: with socket.create_connection((ip, port), timeout=10) as conn: conn.send(bytes(raw,encoding="ascii")) conn.close() except: return False return True
data="" for line in sys.stdin: data+=line send_raw(data)
|