*reverse*练习5——攻防世界-流浪者

根据字符串查找,找到关键函数

 通过相邻函数找到引用4017f0的函数

 根据题意,先把KanXueCTF2019JustForhappy找到在abcdefghiABCDEFGHIJKLMNjklmn0123456789opqrstuvwxyzOPQRSTUVWXYZ里的索引数字,再根据上图逆一遍得到str这一串函数。

 index函数非常好用

Str1=''
a='abcdefghiABCDEFGHIJKLMNjklmn0123456789opqrstuvwxyzOPQRSTUVWXYZ'
b='KanXueCTF2019JustForhappy'
flag=''
temp=[]

for c in b:
temp.append(a.index(c))
for d in temp:
if d>(65-29) and d <(90-29):
flag+=chr(29+d)
print(flag)
elif d>97-87 and d< (122-87):
flag += chr(87 +d)
print(flag)
elif d>= 0 and d< (57- 48):
flag +=chr(48 +d)
print(flag)
print(flag)
原文地址:https://www.cnblogs.com/kubopiy/p/13475535.html