buu pyre
一.下载附件是是pyc的字节码文件,找个在线网站反编译一下
思路还是挺清晰:
先逆着求出code,
这里就是求余,有点麻烦,那个+128%128其实没啥用的,省略就好了
算法里面再处理一下细节,跑一下就出来了
code = ['\x1f', '\x12', '\x1d', '(', '0', '4', '\x01', '\x06', '\x14', '4', ',', '\x1b', 'U', '?', 'o', '6', '*', ':', '\x01', 'D', ';', '%', '\x13']
for i in range(len(code)):
if isinstance(code[i],str):
code[i]=ord(code[i])
print(code)
for j in range(len(code)-2,-1,-1):
code[j]=code[j]^code[j+1]
flag=""
for w in range(len(code)):
code[w]=code[w]-w
if code[w]<0:
code[w]+=128
flag+=chr(code[w])
print(flag)