python3.6下安装wingIDE破解方法

1.wingIDE的下载:

在电脑配置好的python环境情况下,去官网下载wingIDE6,按照一般方式安装好。安装好它会自动提示你是否激活,你点击激活。然后到下一步。

2.脚本的制作:

  1 import string
  2 import random
  3 import hashlib
  4 
  5 BASE16 = '0123456789ABCDEF'
  6 BASE30 = '123456789ABCDEFGHJKLMNPQRTVWXY'
  7 
  8 
  9 def randomstring(size=20, chars=string.ascii_uppercase + string.digits):
 10     return ''.join((random.choice(chars) for _ in range(size)))
 11 
 12 
 13 def BaseConvert(number, fromdigits, todigits, ignore_negative=True):
 14     if not ignore_negative and str(number)[0] == '-':
 15         number = str(number)[1:]
 16         neg = 1
 17     else:
 18         neg = 0
 19     x = 0
 20     for digit in str(number):
 21         x = x * len(fromdigits) + fromdigits.index(digit)
 22 
 23     res = ''
 24     while x > 0:
 25         digit = x % len(todigits)
 26         res = todigits[digit] + res
 27         x //= len(todigits)
 28 
 29     if neg:
 30         res = '-' + res
 31     return res
 32 
 33 
 34 def AddHyphens(code):
 35     return code[:5] + '-' + code[5:10] + '-' + code[10:15] + '-' + code[15:]
 36 
 37 
 38 def SHAToBase30(digest):
 39     tdigest = ''.join([c for i, c in enumerate(digest) if i // 2 * 2 == i])
 40     result = BaseConvert(tdigest, BASE16, BASE30)
 41     while len(result) < 17:
 42         result = '1' + result
 43     return result
 44 
 45 
 46 def loop(ecx, lichash):
 47     part = 0
 48     for c in lichash:
 49         part = ecx * part + ord(c) & 1048575
 50     return part
 51 
 52 rng = AddHyphens('CN' + randomstring(18, '123456789ABCDEFGHJKLMNPQRTVWXY'))
 53 print('License id: {}'.format(rng))
 54 act30 = input('Enter request code:')
 55 lichash = act30
 56 hasher = hashlib.sha1()
 57 act30 = act30.encode()
 58 hasher.update(act30)
 59 rng = rng.encode()
 60 hasher.update(rng)
 61 lichash = AddHyphens(lichash[:3] + SHAToBase30(hasher.hexdigest().upper()))
 62 part5 = format(loop(23, lichash), '05x') + format(loop(161, lichash), '05x') + format(loop(47, lichash),
 63                                                                                       '05x') + format(loop(9, lichash),
 64                                                                                                       '05x')
 65 part5 = BaseConvert(part5.upper(), BASE16, BASE30)
 66 while len(part5) < 17:
 67     part5 = '1' + part5
 68 
 69 part5 = 'AXX' + part5
 70 print('Activation code: {}'.format(AddHyphens(part5)))

将上面的代码复制粘贴成 破解激活.py格式(只要是:xxx.py就行)

具体步骤:

(1)新建一个*.txt记事本。

(2)复制上面代码保存

(3)保存后该文件名和后缀名(文件名可以随意)。我保存时用的是 破解激活.py

当我们保存好时,执行该文件,会显示如下:

clip_image002

(4)将上面的License id : CNFE1-JHE4L-3FDL3-1LV1R (这些字母是随机的,运行一次,刷新一次)同样格式复制到wingIDE要激活的界面:不要管下图的CN123-12345-2345-12345代码(这是借的图,因为我已经激活了,找不到那个窗口),只要将你复制粘贴到下图对应的位置上,就行了。

clip_image003

(5)点击Continue后弹框,拷贝框中的request code,这个图是我拷贝别人的

clip_image004

(6)复制到下图(第三步打开的cmd命令):Enter request code,然后点击回车键,就会得到Activation code: AXX22-3VJYY-93JJP-PBF11

clip_image006

(7)将得到的Activation code复制到下图的位置

clip_image007

(8)点击continue就激活完成了。

猜你喜欢

转载自www.cnblogs.com/pinpin/p/9957931.html