fix: update flag and exp

This commit is contained in:
2023-10-16 14:57:57 +08:00
parent 1c680b646a
commit ce6d793bcb
5 changed files with 15 additions and 53 deletions

View File

@@ -1,10 +1,8 @@
from random import choice as c
from random import randint, shuffle
from random import shuffle
import socketserver
import signal
import string
import random
import os
from flag import flag
class Task(socketserver.BaseRequestHandler):
def _recvall(self):
@@ -90,7 +88,7 @@ class ForkedServer(socketserver.ForkingMixIn, socketserver.TCPServer):
if __name__ == "__main__":
flag = bytes(os.getenv("FLAG"),"utf-8") # type: ignore
#flag = bytes(os.getenv("FLAG"),"utf-8") # type: ignore
# 白名单列表,包含允许在问题中使用的关键词和符号
white_list = ['==', '(', ')', 'C0', 'C1', 'C2', 'C3', 'C4', 'C5', 'C6', '0', '1', 'and', 'or', 'not']
HOST, PORT = '0.0.0.0', 10011