Skip to content

Commit

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

0 comments on commit 8984f9f

Please sign in to comment.