import socket


sock = socket.socket(socket.AF_INET, socket.SOCK_DGRAM)
server_address = ('localhost', 1812)


with open('/tmp/auth.packet', 'r') as reader:
    content = reader.read()

print(content)
payload = bytes.fromhex(content.strip())
print(payload)

try:
    sent = sock.sendto(payload, server_address)
    data, address = sock.recvfrom(4096)
    print(data, address)
except Exception as err:
    print(err)

1b3654726e65e1cc5d07a2fc9c73d268129cc260
<mask token>

<mask token>
with open('/tmp/auth.packet', 'r') as reader:
    content = reader.read()
print(content)
<mask token>
print(payload)
try:
    sent = sock.sendto(payload, server_address)
    data, address = sock.recvfrom(4096)
    print(data, address)
except Exception as err:
    print(err)

<mask token>
sock = socket.socket(socket.AF_INET, socket.SOCK_DGRAM)
server_address = 'localhost', 1812
with open('/tmp/auth.packet', 'r') as reader:
    content = reader.read()
print(content)
payload = bytes.fromhex(content.strip())
print(payload)
try:
    sent = sock.sendto(payload, server_address)
    data, address = sock.recvfrom(4096)
    print(data, address)
except Exception as err:
    print(err)

import socket
sock = socket.socket(socket.AF_INET, socket.SOCK_DGRAM)
server_address = 'localhost', 1812
with open('/tmp/auth.packet', 'r') as reader:
    content = reader.read()
print(content)
payload = bytes.fromhex(content.strip())
print(payload)
try:
    sent = sock.sendto(payload, server_address)
    data, address = sock.recvfrom(4096)
    print(data, address)
except Exception as err:
    print(err)

import socket


sock = socket.socket(socket.AF_INET, socket.SOCK_DGRAM)
server_address = ('localhost', 1812)


with open('/tmp/auth.packet', 'r') as reader:
    content = reader.read()

print(content)
payload = bytes.fromhex(content.strip())
print(payload)

try:
    sent = sock.sendto(payload, server_address)
    data, address = sock.recvfrom(4096)
    print(data, address)
except Exception as err:
    print(err)
