打开题目文件challenges.txt
109 115 104 110 123 108 53 55 105 57 108 49 56 105 48 56 105 109 109 48 107 48 53 104 51 106 53 57 57 48 48 105 49 48 63 63 63 125 116 107 53 58 55 52 50 108 104 56 49 53 50 109 109 49 49 105 49 109 54 109 57 51 49 52 106 51 106 52 108 109 109 57 51 108
解题过程:
1.转化为ascii码2.
>>> txt='109 115 104 110 123 108 53 55 105 57 108 49 56 105 48 56 105 109 109 48 107 48 53 104 51 106 53 57 57 48 48 105 49 48 63 63 63 125 116 107 53 58 55 52 50 108 104 56 49 53 50 109 109 49 49 105 49 109 54 109 57 51 49 52 106 51 106 52 108 109 109 57 51 108'
>>> txt = txt.split(" ")
>>> txt
['109', '115', '104', '110', '123', '108', '53', '55', '105', '57', '108', '49', '56', '105', '48', '56', '105', '109', '109', '48', '107', '48', '53', '104', '51', '106', '53', '57', '57', '48', '48', '105', '49', '48', '63', '63', '63', '125', '116', '107', '53', '58', '55', '52', '50', '108', '104', '56', '49', '53', '50', '109', '109', '49', '49', '105', '49', '109', '54', '109', '57', '51', '49', '52', '106', '51', '106', '52', '108', '109', '109', '57', '51', '108']
>>> flag=''
>>> for i in txt:
... flag += chr(int(i))
...
>>>
>>> flag
'emshn{l57i9l18i08imm0k05h3j59900i10???}tk5:742lh8152mm11i1m6m9314j3j4lmm93l'
2.使用凯撒解密
得到 flag{e57b9e18b08bff0d05a3c59900b10???}md5:742ea8152ff11b1f6f9314c3c4eff93e
3.但是发现有三位是不知道的,可以根据后面的md5用脚本爆破一下
#coding: utf-8
import string
import hashlib
dic1=string.digits+string.ascii_lowercase+string.ascii_uppercase
for i1 in dic1:
for i2 in dic1:
for i3 in dic1:
t='flag{e57b9e18b08bff0d05a3c59900b10'+i1+i2+i3+'}'
md5 = hashlib.md5(t.encode('utf-8')).hexdigest()
#print t
if md5[:32] == '742ea8152ff11b1f6f9314c3c4eff93e':
print (t)
python3 运行就可以得到结果:flag{e57b9e18b08bff0d05a3c59900b109a4}
还请各路大佬多多指教,啾咪!