re | [SCTF2019]creakme

参考 https://www.52pojie.cn/thread-980141-1-1.html

是一个AES CBC的加密

 1 from Crypto.Cipher import AES
 2 import base64
 3 
 4 
 5 def AESencrypt(data, key):
 6     aes1 = AES.new(key,AES.MODE_CBC, iv=b"sctfsctfsctfsctf")
 7     encrypted = aes1.decrypt(data)
 8     return encrypted
 9 
10 
11 aeskey = b'sycloversyclover'
12 _data = "nKnbHsgqD3aNEB91jB3gEzAr+IklQwT1bSs3+bXpeuo="
13 data = base64.b64decode(_data)
14 r1 = AESencrypt(data, aeskey)
15 print (r1)

 

posted @ 2020-12-31 12:10  Mz1  阅读(212)  评论(0编辑  收藏  举报