diff --git a/intercepting-communication/udp-spoof-host/run b/intercepting-communication/udp-spoof-host/run index 9130359..919f98e 100755 --- a/intercepting-communication/udp-spoof-host/run +++ b/intercepting-communication/udp-spoof-host/run @@ -30,7 +30,7 @@ class ClientHost(Host): try: 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": + if peer_port == 31337 and message.startswith(b"FLAG"): _, flag_host, flag_port = message.strip().split(b":") print("SENDING TO:", flag_host, flag_port) client_socket.sendto(flag.encode(), (flag_host, int(flag_port)))