题目
附件
看着挺像ASCII码,可惜有大于127的数字,根据rot13的原理,每个数字减13后转ASCII码
##根据rot13还原字符串
l = s.split(" ")
a = ""
for i in l:
c = chr(int(i)-13)
a = a + c
print(a)
输出
flag不完整,给了个md5值,爆破md5
##爆破MD5
demo='flag{www_shiyanbar_com_is_very_good_'
check = '38e4c352809e150186920aac37190cbc'
for i in range(32,126):
for j in range(32,126):
for k in range(32,126):
for m in range(32,126):
tmp = demo + chr(i) + chr(j) + chr(k) + chr(m) + '}'
hash = hashlib.md5(tmp.encode('utf8')).hexdigest()
if check == hash:
print(tmp)
exit()
结果如下:
成功拿到flag!!!