[OSCCTF Final 2022] – Admin?

app.py #!/usr/bin/env python3from Crypto.Util.Padding import pad, unpadfrom Crypto.Cipher import AESfrom Crypto.Random import get_random_bytes import binasciifrom flag import FLAG BLOCKSIZE = 16 def generate_body(key: bytes) -> dict:    “””        Generate encrypted body to give to user    “””    pt = ‘u=user’    iv = get_random_bytes(16)    cipher = AES.new(key, AES.MODE_CBC, iv = iv)    ct_hex = cipher.encrypt(pad(pt.encode(), block_size=BLOCKSIZE)).hex()     […]