first commit

This commit is contained in:
dongho
2024-10-30 21:58:10 +09:00
commit 65986c1ca5
9 changed files with 314 additions and 0 deletions

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()