Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
ConnorNelson committed Feb 23, 2025
1 parent 515f076 commit 3242343
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions intercepting-communication/level-14/run
Original file line number Diff line number Diff line change
Expand Up @@ -15,17 +15,17 @@ class AuthenticatedClientHost(Host):
client_socket = socket.socket()
client_socket.connect(("10.0.0.3", 31337))

assert client_socket.recvall(1024) == b"secret: "
assert client_socket.recv(1024) == b"secret: "
secret = bytes(server_host.secret) # Get the secret out-of-band
time.sleep(1)
client_socket.sendall(secret.hex())

assert client_socket.recvall(1024) == b"command: "
assert client_socket.recv(1024) == b"command: "
time.sleep(1)
client_socket.sendall(b"echo")
time.sleep(1)
client_socket.sendall(b"Hello, World!")
assert client_socket.recvall(1024) == b"Hello, World!"
assert client_socket.recv(1024) == b"Hello, World!"

client_socket.close()
time.sleep(1)
Expand Down

0 comments on commit 3242343

Please sign in to comment.