题目:
脚本:
s_box = 'qwertyuiopasdfghjkzxcvb123456#$'
s = 'u#k4ggia61egegzjuqz12jhfspfkay'
for b1 in range(1,31):
for i in range(len(s)-1,-1,-1):
for j in range(len(s_box)):
if(s[i]==s_box[j]):
b1 *= 31
b1 += j
break
f = ''
tmp = str(bin(b1))[2:]
if(len(tmp)%8!=0):
while(len(tmp)%8!=0):
tmp=tmp.zfill(len(tmp)+1)
k = int(len(tmp)/8)
print(k)
for h in range(k):
a = tmp[8*h:8*(h+1)]
b = chr(int(a,2))
f += b
print(f)
爆破得到结果: