18 lines
449 B
Python
18 lines
449 B
Python
import socket
|
|
|
|
client = socket.socket(socket.AF_INET6, socket.SOCK_STREAM)
|
|
client.connect(("::1", 7512))
|
|
|
|
print(client.recv(4).decode("utf-8"))
|
|
print(int.from_bytes(client.recv(4)))
|
|
client.send(b"\x04test")
|
|
for x in range(-32, 32):
|
|
for z in range(-32, 32):
|
|
b = b"\x03" + x.to_bytes(2, signed=True) + z.to_bytes(2, signed=True)
|
|
print(x, z, b)
|
|
client.send(b)
|
|
client.send(b"\x02\x00\x12should be done now\x00\x00")
|
|
|
|
while client.recv(8192):
|
|
""
|