您的位置:首页 > 编程语言 > Python开发

kali安装python IDE+Mysql Manage工具(一)

2016-09-05 15:25 288 查看
安装python IDE(wing)+Mysql Manage工具(DBeaver)并且破解注册
第一步:在http://www.wingware.com/上下载wingide(建议使用:wget
+ 下载链接进行下载,在网速不稳定的情况下,使用命令下载能更加稳定(具体细节百度wget命令),如:wget http://wingware.com/pub/wingide/5.1.12/wingide5_5.1.12-1_amd64.deb)



第二步:下载完成后,使用dpkg -i 命令进行安装deb安装包




一会就安装成功,如出现下图,则表示安装wing ide成功了


则可以选择




选择Wing IDE打开,或者输入命令:/usr/bin/Wing5.1打开Wing IDE
首次打开Wing会出现


选择同意,然后进行更新安装,更新安装好之后,就会要求重新启动wing(restart now),点击重启,重启后,进入wing IDE编程界面,出现需要注册wing IDE的提示,




我们选择第三个,破解方法使用连接里的方法 点击打开链接 ,我这边也备注一下,防止博客被删除,导致破解不了,这里贴出已经写好的python脚本
#CalcActivationCode.py
import sha
import string
BASE2 = '01'
BASE10 = '0123456789'
BASE16 = '0123456789ABCDEF'
BASE30 = '123456789ABCDEFGHJKLMNPQRTVWXY'
BASE36 = '0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ'
BASE62 = 'ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789abcdefghijklmnopqrstuvwxyz'
BASEMAX = string.printable
def BaseConvert(number, fromdigits, todigits, ignore_negative = True):
""" converts a "number" between two bases of arbitrary digits

The input number is assumed to be a string of digits from the
fromdigits string (which is in order of smallest to largest
digit). The return value is a string of elements from todigits
(ordered in the same way). The input and output bases are
determined from the lengths of the digit strings. Negative
signs are passed through.

decimal to binary
>>> baseconvert(555,BASE10,BASE2)
'1000101011'

binary to decimal
>>> baseconvert('1000101011',BASE2,BASE10)
'555'

integer interpreted as binary and converted to decimal (!)
>>> baseconvert(1000101011,BASE2,BASE10)
'555'

base10 to base4
>&
4000
gt;> baseconvert(99,BASE10,"0123")
'1203'

base4 to base5 (with alphabetic digits)
>>> baseconvert(1203,"0123","abcde")
'dee'

base5, alpha digits back to base 10
>>> baseconvert('dee',"abcde",BASE10)
'99'

decimal to a base that uses A-Z0-9a-z for its digits
>>> baseconvert(257938572394L,BASE10,BASE62)
'E78Lxik'

..convert back
>>> baseconvert('E78Lxik',BASE62,BASE10)
'257938572394'

binary to a base with words for digits (the function cannot convert this back)
>>> baseconvert('1101',BASE2,('Zero','One'))
'OneOneZeroOne'

"""
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 SHAToBase30(digest):
"""Convert from a hexdigest form SHA hash into a more compact and
ergonomic BASE30 representation.  This results in a 17 'digit'
number."""
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 AddHyphens(code):
"""Insert hyphens into given license id or activation request to
make it easier to read"""
return code[:5] + '-' + code[5:10] + '-' + code[10:15] + '-' + code[15:]

LicenseID='CN123-12345-12345-12345'
#Copy the Request Code from the dialog
RequestCode='RW51D-H2H9H-C1565-6EY29'
hasher = sha.new()
hasher.update(RequestCode)
hasher.update(LicenseID)
digest = hasher.hexdigest().upper()
lichash = RequestCode[:3] + SHAToBase30(digest)
lichash=AddHyphens(lichash)

#Calculate the Activation Code
data=[7,123,23,87]
tmp=0
realcode=''
for i in data:
for j in lichash:
tmp=(tmp*i+ord(j))&0xFFFFF
realcode+=format(tmp,'=05X')
tmp=0

act30=BaseConvert(realcode,BASE16,BASE30)
while len(act30) < 17:
act30 = '1' + act30
act30='AXX'+act30
act30=AddHyphens(act30)
print "The Activation Code is: "+act30


具体破解

1)激活时选择第三项,输入license id CN123-12345-12345-12345(这个license是随便乱填的)。 



2)点击Continue后弹框,拷贝框中的request
code。 





3)修改Python脚本中的RequestCode为刚才得到的Request
Code值,然后运行脚本,得到一个激活码。 





把生成的激活码填入




然后Continue



则表示破解成功!


下面就可以使用Wing
进行python开发
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签:  wing IDE