是pyc文件呀-》在线反编译
print 'Welcome to Re World!'
print 'Your input1 is your flag~'
l = len(input1)
for i in range(l):
num = ((input1[i] + i) % 128 + 128) % 128
code += num
for i in range(l - 1):
code[i] = code[i] ^ code[i + 1]
print code
code = [
'%1f',
'%12',
'%1d',
'(',
'0',
'4',
'%01',
'%06',
'%14',
'4',
',',
'%1b',
'U',
'?',
'o',
'6',
'*',
':',
'%01',
'D',
';',
'%',
'%13']
需要逆向解出input1的值。
1.对以下进行逆向
for i in range(l - 1):
code[i] = code[i] ^ code[i + 1]
for i in range(l-2,-1,-1):
code[i]=chr(ord(code[i])^ord(code[i+1]))
2.对以下进行逆向:
for i in range(l):
num = ((input1[i] + i) % 128 + 128) % 128
code += num
说白了 num=((input1[i] + i))%128
所以就是
-
for j in range(f1):
-
flag+=chr((ord(code[j]) - j) % 128)