
下载安装wingide的方法:(推荐:wingide使用教程)
WingIDE 6.1 官网下载地址:http://wingware.com/downloads/
安装python3以上版本
新建crack.py文件待用
包含代码如下:
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 36 37 | #!/usr/bin/env python3
LicenseID= 'CN123-12345-12345-12345'
RequestCode= 'RW62Q-3Q9YE-B7AC8-C57PQ'
import hashlib
B16 = '0123456789ABCDEF'
B30 = '123456789ABCDEFGHJKLMNPQRTVWXY'
def B(n,f,t):
xx = 0
for d in str(n):
xx = xx * len(f) + f.index(d)
res = ''
while xx > 0:
res=t[int(xx%len(t))]+res
xx
return res
def S(D):
r = B( '' .join([c for i,c in enumerate(D) if i
while len(r) < 17:
r = '1' + r
return r
def A(c):
return c[:5]+ '-' +c[5:10]+ '-' +c[10:15]+ '-' +c[15:]
h = hashlib.sha1()
h.update(RequestCode.encode( 'utf-8' )+LicenseID.encode( 'utf-8' ))
lichash=A(RequestCode[:3]+S(h.hexdigest().upper()) )
data=[23,161,47,9]
tmp=0
realcode= ''
for i in data:
for j in lichash:
tmp=(tmp*i+ord(j))&0xFFFFF
realcode+=format(tmp, '=05X' )
tmp=0
D=B(realcode,B16,B30)
while len(D) < 17:
D = '1' + D
print ( "The Activation Code is: " +A( 'AXX' +D))
|
打开在官网下载的wingIDE 6.1安装包
按照步骤next,打开IDE后会提示你激活,这里选择第三项

输入CN123-12345-12345-12345,点击continue

将红线处的request code拷贝,打开刚刚创建的crack.py文件,并将拷贝的数据粘贴到下图中红线处。

使用python3以上版本在命令行运行crack.py脚本
python {\..\}crack.py
{\..\}为你新建的crack.py脚本所在的路径,如下图为我的桌面路径

填写print出的激活码即可成功激活

更多python知识请关注python视频教程。