运行分析
- 需破解Name和Code
PE分析
- ASM汇编程序,32位,无壳
静态分析&动态调试
- ida搜索找到关键字符串
- ida动态调试,逻辑如上
算法分析
Name = 'conceal'
str_1 = 'SU7CSJKF09NCSDO9SDF09SDRLVK7809S4NF'
str_2 = 'A1LSK2DJF4HGP3QWO5EIR6UTYZ8MXN7CBV9'
Serial = ''
for i in range(len(Name)):
v10 = -1
if ord(Name[i]) >= 90:
Name_i = ord(Name[i]) - 32
else:
Name_i = ord(Name[i])
v10 = str_2.index(chr(Name_i))
Serial += str_1[v10]
print(Name + '的Serial为:\n' + Serial)
- 验证成功