intmain(int argc, constchar **argv, constchar **envp) { int v4[100]; // [rsp+20h] [rbp-60h] int v5[101]; // [rsp+1B0h] [rbp+130h] int v6; // [rsp+344h] [rbp+2C4h] int v7; // [rsp+348h] [rbp+2C8h] int i; // [rsp+34Ch] [rbp+2CCh]
printf("This is your hint!!!"); v7 = 0; v6 = 0; for (i = 0; i <= 99; ++i) { if (i & 1) v4[v6++] = i; else v5[v7++] = i; } return0; }
大致意思,奇偶分离。
那写一个脚本
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
file = open("in.txt","r") file1 = open("out1.txt","w") file2 = open("out2.txt","w") for line in file: tmp = line s1 = '' s2 = '' for i in range(len(tmp)): if i % 2 ==1: s1 +=tmp[i] else: s2 +=tmp[i] file1.write(s1) file2.write(s2)
会收获到两个base64编码
对脚本进行修改
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
import base64 file = open("in.txt","r") file1 = open("out1","wb") file2 = open("out2","wb") for line in file: tmp = line s1 = '' s2 = '' for i in range(len(tmp)): if i % 2 ==1: s1 +=tmp[i]