update directory system

This commit is contained in:
2024-11-07 21:52:26 +09:00
parent 1b8c1f4526
commit cd1703e22f
10 changed files with 7 additions and 245 deletions

21
week02/hard/client.py Normal file
View File

@ -0,0 +1,21 @@
import socket
# Fill in the right target here
HOST = 'localhost' # TODO
PORT = ... # TODO
def get_flag():
s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
s.connect((HOST, PORT))
sf = s.makefile('rw') # we use a file abstraction for the sockets
# TODO
sf.close()
s.close()
if __name__ == '__main__':
get_flag()

Binary file not shown.