diff --git a/intercepting-communication/udp-spoof-host/run b/intercepting-communication/udp-spoof-host/run index 691e2a1..609bd53 100755 --- a/intercepting-communication/udp-spoof-host/run +++ b/intercepting-communication/udp-spoof-host/run @@ -27,8 +27,8 @@ class ClientHost(Host): client_socket.bind(("0.0.0.0", 31338)) while True: try: - server_socket.sendto(b"ACTION?", ("10.0.0.3", 31337)) - message, (peer_host, peer_port) = server_socket.recvfrom(1024) + 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}") except ConnectionError: