python wing 免费下载安装
2017-12-07 22:55
127 查看
下载地址: http://wingware.com/downloads
crack.py来源地:这个下载的上面有病毒,小心点 http://www.jb51.net/softs/544604.html
crack.py python2环境运行,需要sha加密组件:
import string
import random
import sha
BASE16 = '0123456789ABCDEF'
BASE30 = '123456789ABCDEFGHJKLMNPQRTVWXY'
def randomstring(size=20, chars=string.ascii_uppercase + string.digits):
return ''.join((random.choice(chars) for _ in range(size)))
def BaseConvert(number, fromdigits, todigits, ignore_negative=True):
if not ignore_negative and str(number)[0] == '-':
number = str(number)[1:]
neg = 1
else:
neg = 0
x = long(0)
for digit in str(number):
x = x * len(fromdigits) + fromdigits.index(digit)
res = ''
while x > 0:
digit = x % len(todigits)
res = todigits[digit] + res
x /= len(todigits)
if neg:
res = '-' + res
return res
def AddHyphens(code):
return code[:5] + '-' + code[5:10] + '-' + code[10:15] + '-' + code[15:]
def SHAToBase30(digest):
tdigest = ''.join([c for i, c in enumerate(digest) if i / 2 * 2 == i])
result = BaseConvert(tdigest, BASE16, BASE30)
while len(result) < 17:
result = '1' + result
return result
def loop(ecx, lichash):
part = 0
for c in lichash:
part = ecx * part + ord(c) & 1048575
return part
rng = AddHyphens('CN' + randomstring(18, '123456789ABCDEFGHJKLMNPQRTVWXY'))
print('License id: ' + rng)
act30 = raw_input('Enter request code:')
lichash = act30
hasher = sha.new()
hasher.update(act30)
hasher.update(rng)
lichash = AddHyphens(lichash[:3] + SHAToBase30(hasher.hexdigest().upper()))
part5 = format(loop(23, lichash), '05x') + format(loop(161, lichash), '05x')
+ format(loop(47, lichash),
'05x') + format(loop(9, lichash),
'05x')
part5 = BaseConvert(part5.upper(), BASE16, BASE30)
while len(part5) < 17:
part5 = '1' + part5
part5 = 'AXX' + part5
print('Activation code: ' + AddHyphens(part5))
python3版本破解:
crack.py来源地:这个下载的上面有病毒,小心点 http://www.jb51.net/softs/544604.html
crack.py python2环境运行,需要sha加密组件:
import string
import random
import sha
BASE16 = '0123456789ABCDEF'
BASE30 = '123456789ABCDEFGHJKLMNPQRTVWXY'
def randomstring(size=20, chars=string.ascii_uppercase + string.digits):
return ''.join((random.choice(chars) for _ in range(size)))
def BaseConvert(number, fromdigits, todigits, ignore_negative=True):
if not ignore_negative and str(number)[0] == '-':
number = str(number)[1:]
neg = 1
else:
neg = 0
x = long(0)
for digit in str(number):
x = x * len(fromdigits) + fromdigits.index(digit)
res = ''
while x > 0:
digit = x % len(todigits)
res = todigits[digit] + res
x /= len(todigits)
if neg:
res = '-' + res
return res
def AddHyphens(code):
return code[:5] + '-' + code[5:10] + '-' + code[10:15] + '-' + code[15:]
def SHAToBase30(digest):
tdigest = ''.join([c for i, c in enumerate(digest) if i / 2 * 2 == i])
result = BaseConvert(tdigest, BASE16, BASE30)
while len(result) < 17:
result = '1' + result
return result
def loop(ecx, lichash):
part = 0
for c in lichash:
part = ecx * part + ord(c) & 1048575
return part
rng = AddHyphens('CN' + randomstring(18, '123456789ABCDEFGHJKLMNPQRTVWXY'))
print('License id: ' + rng)
act30 = raw_input('Enter request code:')
lichash = act30
hasher = sha.new()
hasher.update(act30)
hasher.update(rng)
lichash = AddHyphens(lichash[:3] + SHAToBase30(hasher.hexdigest().upper()))
part5 = format(loop(23, lichash), '05x') + format(loop(161, lichash), '05x')
+ format(loop(47, lichash),
'05x') + format(loop(9, lichash),
'05x')
part5 = BaseConvert(part5.upper(), BASE16, BASE30)
while len(part5) < 17:
part5 = '1' + part5
part5 = 'AXX' + part5
print('Activation code: ' + AddHyphens(part5))
python3版本破解:
import string import random import hashlib BASE16 = '0123456789ABCDEF' BASE30 = '123456789ABCDEFGHJKLMNPQRTVWXY' def randomstring(size=20, chars=string.ascii_uppercase + string.digits): return ''.join((random.choice(chars) for _ in range(size))) def BaseConvert(number, fromdigits, todigits, ignore_negative=True): if not ignore_negative and str(number)[0] == '-': number = str(number)[1:] neg = 1 else: neg = 0 x = long(0) for digit in str(number): x = x * len(fromdigits) + fromdigits.index(digit) res = '' while x > 0: digit = x % len(todigits) res = todigits[digit] + res x /= len(todigits) if neg: res = '-' + res return res def AddHyphens(code): return code[:5] + '-' + code[5:10] + '-' + code[10:15] + '-' + code[15:] def SHAToBase30(digest): tdigest = ''.join([c for i, c in enumerate(digest) if i / 2 * 2 == i]) result = BaseConvert(tdigest, BASE16, BASE30) while len(result) < 17: result = '1' + result return result def loop(ecx, lichash): part = 0 for c in lichash: part = ecx * part + ord(c) & 1048575 return part rng = AddHyphens('CN' + randomstring(18, '123456789ABCDEFGHJKLMNPQRTVWXY')) print('License id: ' + rng) act30 = raw_input('Enter request code:') lichash = act30 hasher = hashlib.sha1() hasher.update(act30.encode('utf-8')) hasher.update(rng.encode('utf-8')) lichash = AddHyphens(lichash[:3] + SHAToBase30(hasher.hexdigest().upper())) part5 = format(loop(23, lichash), '05x') + format(loop(161, lichash), '05x') + format(loop(47, lichash), '05x') + format(loop(9, lichash), '05x') part5 = BaseConvert(part5.upper(), BASE16, BASE30) while len(part5) < 17: part5 = '1' + part5 part5 = 'AXX' + part5 print('Activation code: ' + AddHyphens(part5))
相关文章推荐
- Python快速入门(PyCharm 2017 免费下载安装)
- python的下载和安装
- 【一】Python3与相关组件下载与安装
- Python下的常用下载安装工具pip的安装方法
- Python下载安装配置及编辑器PyCharm下载安装
- 学习Python 免费电子书 TOP10(含下载)
- Windows安装Python包下载工具pip遇到的问题
- Windows系统的Python2.7和Python3.5环境搭建以及Pycharm2017.1.1的安装,Mac的Pycharm下载
- 下载和安装Python语言
- Windows下的Python 3.6.1的下载与安装(适合32bits和64bits)(图文详解)
- Python各种安装模块下载地址(持续更新……)
- nastran2018安装教程(附资源免费下载)
- 自动下载和安装 MNIST 到 TensorFlow 的 python 源码
- python-BeautifulSoup下载安装
- Odoo10 centos7服务器最新部署安装视频免费下载
- python学习1(下载、安装)
- 一步一步入门机器学习之一:Python(x,y)下载,安装,使用入门
- LAMP兄弟连原创Linux视频教程-第2讲Linux系统安装[免费下载]
- Python 的下载安装和第一个Python程序