```pythonfrom Crypto.Cipher import AESimport Crypto.Cipher.AESfrom binascii import hexlify, unhexlify'''iv: 4204204204204204204204204204204ciphertext: ba837e4c3a40ac03cba5db3e2c77a7334b2336556d6ac1995c8cd85efed0b3dd164f1d8d0f0ff1151bdc758edb3dbdaf''''''a = 'flagflagflagflag'key = '1111111111111111111111111111111111111111111111111111111111111111'.decode('hex')iv = '42042042042042042042042042042042'.decode('hex')
#encryptaes = AES.new(key,AES.MODE_CBC, iv)c = aes.encrypt(a).encode("hex")print c
#decryptaes = AES.new(key,AES.MODE_CBC, iv)print aes.decrypt(c.decode("hex"))'''import hashlibimport stringfrom Crypto.Util.number import long_to_bytes
a = [19,3,10,15,2]b = [16,16,18,12,19,6,19,12,8]c = [5,8,17,18,18,5,9,3,11,10,1,10,10,0,10]d = [0,8,18,10,0,15,18,5,18,14,19,1,1,0,4,6,15,4,11,16,10,8,14,5,13,16,9]for i in range(0,20):    for j in range(0,20):        for k in range(0,20):            key = a+[i]+b+[j]+c+[k]+d            m = 0            length = len(key)            for inx in range(59):                t = key[inx]%5                tt = key[inx]//5                m+=20**(length-1)*(tt*5+t)                length = length-1            key = long_to_bytes(m)            IV = unhexlify('42042042042042042042042042042042')            ciphertext = unhexlify('059fd04bca4152a5938262220f822ed6997f9b4d9334db02ea1223c231d4c73bfbac61e7f4bf1c48001dca2fe3a75c975b0284486398c019259f4fee7dda8fec')            cipher = AES.new(key,AES.MODE_CBC,IV)            plaintext = cipher.decrypt(ciphertext)            if b"Hack" in plaintext:                print(plaintext)```