From eefdd01aaefdcfbc55f5871e8141d1943c1f322f Mon Sep 17 00:00:00 2001 From: Yan Date: Mon, 24 Feb 2025 02:23:03 -0700 Subject: [PATCH] better --- intercepting-communication/udp-spoof-host/run | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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: