feat: finish easy maze

This commit is contained in:
2023-11-02 09:11:00 +08:00
parent 747b827ffc
commit 8c48770523
3 changed files with 10 additions and 3 deletions

View File

@@ -14,7 +14,7 @@ for i in range(19):
map[i][18] = 9
r = remote('localhost',10001)
r = remote("172.20.14.117",46828)
r.recvline()

View File

@@ -0,0 +1,7 @@
FROM python:3.11
COPY easy_maze.py /app/
WORKDIR /app
CMD [ "python", "easy_maze.py" ]

View File

@@ -151,8 +151,8 @@ class ForkedServer(socketserver.ForkingMixIn, socketserver.TCPServer):
if __name__ == "__main__":
# flag = bytes(os.getenv("FLAG"),"utf-8")
flag = b'11111111111111'
flag = bytes(os.getenv("FLAG"),"utf-8")
# flag = b'11111111111111'
HOST, PORT = '0.0.0.0', 10001
server = ForkedServer((HOST, PORT), Task)
server.allow_reuse_address = True