fix: update

This commit is contained in:
2023-10-17 11:00:15 +08:00
parent 5b975a463d
commit c93308391a
3 changed files with 4 additions and 3 deletions

View File

@@ -1,4 +1,4 @@
FROM python:latest
FROM python:3.11
COPY flag.py /app/

View File

@@ -1,6 +1,5 @@
from random import choice as c
from random import randint, shuffle
from Crypto.Util.number import * # type: ignore
flag = b"flag{this_is_a_test_flag}"

View File

@@ -33,8 +33,10 @@ class Task(socketserver.BaseRequestHandler):
C0, C1, C2, C3, C4, C5, C6 = chests
r = eval(expr)
except Exception as e:
self.send(b"Shannon fails to understand your words.\n")
self.send(e)
self.send(b"Shannon fails to understand your words.\n")
print(f"Exception: {e}") # Debug print
print(f"Failed expression: {expr}") # Debug print
exit(0)
return ans(r)