From be497c98018e8f027da3103776d622f4b08fba5b Mon Sep 17 00:00:00 2001 From: Yan Date: Mon, 24 Feb 2025 02:18:38 -0700 Subject: [PATCH] fix --- intercepting-communication/udp-spoof-host/run | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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: