解包 -> 修正pyc的magic number -> 反编译
[Python] 纯文本查看 复制代码 def calc_pwd(pwd):
lis = []
for i in range(7):
b = pwd[i:i + 1]
unprocess_m = int(ord(b))
if ord('a') < unprocess_m < ord('z'):
raise ValueError
else:
if 64 < unprocess_m < 91:
unprocess_mp = unprocess_m - ord('A') + 1
if 20 > unprocess_mp > 10:
proce = unprocess_mp - 10
else:
if 30 > unprocess_mp > 20:
proce = unprocess_mp - 20
elif unprocess_mp < 10:
proce = unprocess_mp
process_m = (proce + 1) // 2
lis.append(str(process_m))
li = ''.join(lis)
li = int(li)
return li
def calc_usr(u):
f = str(u)
lis = []
for i in range(7):
d = f[i:i + 1]
de = ord(d)
unprocess_mp = de - ord('a') + 1
if 20 > unprocess_mp > 10:
proce = unprocess_mp - 10
else:
if 30 > unprocess_mp > 20:
proce = unprocess_mp - 20
else:
if unprocess_mp < 10:
proce = unprocess_mp
lis.append(str(proce))
li = ''.join(lis)
lii = int(li) + 1
return lii
算注册码:
[Asm] 纯文本查看 复制代码 verif = str(calc_usr(username))
''.join([chr(int(n) * 2 + ord('A') - 1) for n in verif])
像是 fffffff 这类用户名好像不存在注册码 |