liuyuqi-dellpc 4 years ago
commit
0ae684449d
5 changed files with 86 additions and 0 deletions
  1. 34 0
      README.md
  2. 52 0
      WingIDE-keygen.py
  3. BIN
      assets/20181011144428187.png
  4. BIN
      assets/20181011144715159.png
  5. BIN
      assets/20181011145127976.png

+ 34 - 0
README.md

@@ -0,0 +1,34 @@
+## Wing IDE注册破解
+
+适合版本:[wingpro-7.1.3.0-win](https://wingware.com/pub/wingpro/7.1.3.0/wingpro-7.1.3.0-win.zip)
+
+
+1.安装WingIDE成功后启动,激活时输入license id **CN123-12345-12345-12345**
+
+![在这里插入图片描述](assets/20181011144715159.png)
+
+2.点击Continue后弹框,出现如下界面:
+
+![在这里插入图片描述](assets/20181011144428187.png)
+
+3、拷贝框中的**Request Code**,修改 Python 脚本中的 RequestCode 变量:
+
+```
+#!/usr/bin/env python
+# -*- encoding: utf-8 -*-
+'''
+@Author  :   liuyuqi
+@Contact :   liuyuqi.gov@msn.cn
+@Time    :   2019/11/25 19:55:56
+@Version :   1.0
+@License :   (C)Copyright 2019
+@Desc    :   None
+'''
+
+LicenseID = 'CN123-12345-12345-12345'
+RequestCode = 'RW634-RPMLN-Q8FKG-MXPT7'
+......
+```
+
+4.运行脚本后得到激活码,将激活码填入上方的窗体即可成功注册。
+![在这里插入图片描述](assets/20181011145127976.png)

+ 52 - 0
WingIDE-keygen.py

@@ -0,0 +1,52 @@
+#!/usr/bin/env python
+# -*- encoding: utf-8 -*-
+'''
+@Author  :   liuyuqi
+@Contact :   liuyuqi.gov@msn.cn
+@Time    :   2019/11/25 19:55:56
+@Version :   1.0
+@License :   (C)Copyright 2019
+@Desc    :   None
+'''
+
+LicenseID = 'CN123-12345-12345-12345'
+RequestCode = 'RW634-RPMLN-Q8FKG-MXPT7'
+B16 = '0123456789ABCDEF'
+B30 = '123456789ABCDEFGHJKLMNPQRTVWXY'
+import hashlib
+
+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 //= len(t)
+    return res
+
+def S(D):
+    r = B(''.join([c for i, c in enumerate(D) if i // 2 * 2 == i]), B16, B30)
+    while len(r) < 17:
+        r = '1' + r
+    return r
+
+def A(c):
+    return c[:5] + '-' + c[5:10] + '-' + c[10:15] + '-' + c[15:]
+
+if __name__ == "__main__":
+  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))

BIN
assets/20181011144428187.png


BIN
assets/20181011144715159.png


BIN
assets/20181011145127976.png