import json import os from socketserver import ThreadingTCPServer, BaseRequestHandler from Crypto.Cipher import AES from Crypto.Util.Padding import pad, unpad from secret import flag, key class ImaginaryService(BaseRequestHandler): def handle(self): try: self.request.sendall(b'Welcome to Secret IMAG…