目录

WizTree V4.08 Python KeyGen

此代码是根据网上的 keygen.exe 文件反编译转换而来的。因为原 exe 也仅有 3KB 大小,就尝试着拿来研究了一下,结果还是花了两三天才完成。

简要说明

  1. WizTree 所有功能针对个人都是免费的,商用请联系官方购买正版
  2. 激活码仅移除捐赠按钮和捐赠消息,具体区别见官方说明
  3. 此代码和原 exe 均有可能会生成过期无效的激活码,生成 100% 有效的激活码不在本文的研究范围
  4. 使用激活码需要断网或阻止应用程序联网,否则会激活失败
  5. 使用 Python在线运行工具 可以直接在线生成激活码,无需 Python 环境

Python 代码

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
from random import randint


rn = [randint(0, 255) for _ in range(14)]
rn[1] = 0xE7
rn[5] = 0x03

arg2 = [0xc, 6]
arg3 = [3, 0xf3]
for i in range(2):
    a1 = 0
    for j in range(4):
        a1 <<= 8
        a1 += rn[i * 4 + j]
    rn[9+3*i] = ((a1 >> arg2[i]) & 0xff) ^ ((a1 & 0xff) | arg3[i])

rs = ''
for i in range(14):
    rs += f'{rn[i]:02X}'
    if i % 2:
        rs += '-'

cx = 0x42
dx = 0xBE
for s in rs:
    if s != '-':
        dx += ord(s)
        if dx > 0xFF:
            dx -= 0xFF
        cx += dx
        if cx > 0xFF:
            cx -= 0xFF

rs += f'{cx:02X}{dx:02X}'
print(rs)

KeyGen.exe Base64

1
TVqQAAMAAAAEAAAA//8AALgAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAgAAAAA4fug4AtAnNIbgBTM0hVGhpcyBwcm9ncmFtIGNhbm5vdCBiZSBydW4gaW4gRE9TIG1vZGUuDQ0KJAAAAAAAAABQRQAATAEDALvj6WAAAAAAAAAAAOAADwELAQIyAAYAAAAGAAAAAAAAnhAAAAAQAAAAIAAAAABAAAAQAAAAAgAABAAAAAQAAAAEAAAAAAAAAABAAAAAAgAAZjg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