fix: update
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
FROM python:latest
|
||||
FROM python:3.11
|
||||
|
||||
COPY flag.py /app/
|
||||
|
||||
|
@@ -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}"
|
||||
|
||||
|
@@ -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)
|
||||
|
||||
|
Reference in New Issue
Block a user