逆向攻防世界CTF系列25-EasyRE

32位无壳,ida看main,简单异或

image-20241111144428735

跟进

image-20241111144347349

上面那个flag迷惑人用的

先做了一个反转,然后做一个 -1 然后^ 6

1
2
3
4
5
6
7
8
9
10
11
12
13

enc =[
0x78, 0x49, 0x72, 0x43, 0x6A, 0x7E, 0x3C, 0x72, 0x7C, 0x32,
0x74, 0x57, 0x73, 0x76, 0x33, 0x50, 0x74, 0x49, 0x7F, 0x7A,
0x6E, 0x64, 0x6B, 0x61
]


for i in range(len(enc)):
enc[i] = (enc[i] ^ 6) - 1

for i in range(len(enc)):
print(chr(enc[len(enc) - i - 1]), end='')