16 lines
368 B
Python
16 lines
368 B
Python
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() |