GShellAutomator/Automator/account_server_test.py

16 lines
368 B
Python
Raw Normal View History

import socket
acc = ""
with socket.socket(socket.AF_INET, socket.SOCK_STREAM) as s:
s.connect(("server", 12345))
s.send(b"givacc")
acc = s.recv(1024)
print(acc)
s.close()
with socket.socket(socket.AF_INET, socket.SOCK_STREAM) as s:
s.connect(("server", 12345))
s.send(b"remacc|t788egrvdp@wwjmp.com")
print(s.recv(1024))
s.close()