Files
netsec/Task pwn02/week02 2/hard/client.py
2024-10-30 21:58:10 +09:00

22 lines
355 B
Python

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