CTF Crypto

image

In [1]: import binascii
In [2]: from Crypto.Cipher import AES
In [3]: k = binascii.unhexlify('76656e757343544676656e757343544676656e757343544676656e7573435446')
In [4]: iv = binascii.unhexlify('202cb962ac59075b964b07152d234b70')
In [5]: c = binascii.unhexlify('a80d5eb43508e549f83e2e254c0a0f0644be58f453baced4af4777c4cd1b7575')
In [6]: aes =  AES.new(k,AES.MODE_CBC,iv)
In [7]: aes.decrypt(c)
Out[7]: 'ctfvenus{md5_aes_hex_all_i_like}'

 

posted @ 2018-03-09 23:06  歇马  阅读(417)  评论(0编辑  收藏  举报