c='83 89 78 84 45 86 96 45 115 121 110 116 136 132 132 132 108 128 117 118 134 110 123 111 110 127 108 112 124 122 108 118 128 108 131 114 127 134 108 116 124 124 113 108 76 76 76 76 138 23 90 81 66 71 64 69 114 65 112 64 66 63 69 61 70 114 62 66 61 62 69 67 70 63 61 110 110 112 64 68 62 70 61 112 111 112' l=c.split(' ') #去掉空格放入list中方便转字符,要注意split之后产生的list中每个元素都是str s='' for i in range(len(l)): #逐个先转int,再转字符后又组成字符串 s+=chr(int(l[i])) for i in range(1,14): #这里是因为我后来已经知道是rot13,所以这里就只循环到13方便看一下结果 for j in range(len(s)): print(chr(ord(s[j])-i),end='') print() import hashlib s='flag{www_shiyanbar_com_is_very_good_' m='38e4c352809e150186920aac37190cbc' def revmd5(): #count=0 for i in range(33,127): for j in range(33,127): for k in range(33,127): for n in range(33,127): #count+=1 #print(count) a=s+chr(i)+chr(j)+chr(k)+chr(n)+'}' #print(a) ha=hashlib.md5(a.encode()).hexdigest() if(ha == m): print(a) return revmd5()
rot 1
最新推荐文章于 2023-09-30 03:15:00 发布