diff --git a/intercepting-communication/udp-spoof-host/run b/intercepting-communication/udp-spoof-host/run index 18cebc4..919417c 100755 --- a/intercepting-communication/udp-spoof-host/run +++ b/intercepting-communication/udp-spoof-host/run @@ -30,7 +30,8 @@ class ClientHost(Host): client_socket.sendto(b"ACTION?", ("10.0.0.3", 31337)) message, (peer_host, peer_port) = client_socket.recvfrom(1024) if peer_port == 31337 and message.strip() == b"FLAG": - print(f"YOUR FLAG: {flag}") + _, flag_host, flag_port = message.strip().split(":") + client_socket.sendto(flag.encode(), (flag_host, int(flag_port))) time.sleep(1) except ConnectionError: