Skip to content

Commit

Permalink
better
Browse files Browse the repository at this point in the history
  • Loading branch information
zardus committed Feb 24, 2025
1 parent 3f9ca05 commit eefdd01
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion intercepting-communication/udp-spoof-host/run
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit eefdd01

Please sign in to comment.