Skip to content

Commit

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

0 comments on commit be497c9

Please sign in to comment.