锘??xml version="1.0" encoding="utf-8" standalone="yes"?>https://www.toutiao.com/i6655869330388943371/

AlanTop 2019-02-10 14:44 鍙戣璇勮
]]>windows 10 鏃犳硶浠?803鑷姩鍗囩骇鍒?809鐨勮鍐虫柟妗?/title><link>http://www.9087120.com/alantop/archive/2019/01/31/216229.html</link><dc:creator>AlanTop</dc:creator><author>AlanTop</author><pubDate>Thu, 31 Jan 2019 03:22:00 GMT</pubDate><guid>http://www.9087120.com/alantop/archive/2019/01/31/216229.html</guid><wfw:comment>http://www.9087120.com/alantop/comments/216229.html</wfw:comment><comments>http://www.9087120.com/alantop/archive/2019/01/31/216229.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.9087120.com/alantop/comments/commentRss/216229.html</wfw:commentRss><trackback:ping>http://www.9087120.com/alantop/services/trackbacks/216229.html</trackback:ping><description><![CDATA[     鎽樿: windows 10 鏃犳硶浠?803鑷姩鍗囩骇鍒?809鐨勮鍐虫柟妗?  <a href='http://www.9087120.com/alantop/archive/2019/01/31/216229.html'>闃?#29831;?#37711;枃</a><img src ="http://www.9087120.com/alantop/aggbug/216229.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.9087120.com/alantop/" target="_blank">AlanTop</a> 2019-01-31 11:22 <a href="http://www.9087120.com/alantop/archive/2019/01/31/216229.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣璇勮</a></div>]]></description></item><item><title>python3 鑾?#37721;?#32429;?#28000;朵俊?#20229; 鍔犲瘑 ?#25950;鍐?#37716;熻兘http://www.9087120.com/alantop/archive/2019/01/06/216170.htmlAlanTopAlanTopSun, 06 Jan 2019 04:51:00 GMThttp://www.9087120.com/alantop/archive/2019/01/06/216170.htmlhttp://www.9087120.com/alantop/comments/216170.htmlhttp://www.9087120.com/alantop/archive/2019/01/06/216170.html#Feedback0http://www.9087120.com/alantop/comments/commentRss/216170.htmlhttp://www.9087120.com/alantop/services/trackbacks/216170.html
import os, sys
import wmi
import hashlib
import base64
c = wmi.WMI()
#澶勭?#21975;
def printCPU():
    tmpdict = {}
    tmpdict["CpuCores"] = 0
    for cpu in c.Win32_Processor():     
        tmpdict["cpuid"] = cpu.ProcessorId.strip()
        tmpdict["CpuType"] = cpu.Name
        tmpdict['systemName'] = cpu.SystemName
        try:
            tmpdict["CpuCores"] = cpu.NumberOfCores
        except:
            tmpdict["CpuCores"] += 1
        tmpdict["CpuClock"] = cpu.MaxClockSpeed 
        tmpdict['DataWidth'] = cpu.DataWidth
    print (tmpdict)
    return  tmpdict
#涓绘澘
def printMain_board():
    boards = []
    # print len(c.Win32_BaseBoard()):
    for board_id in c.Win32_BaseBoard():
        tmpmsg = {}
        tmpmsg['UUID'] = board_id.qualifiers['UUID'][1:-1]   #涓绘澘UUID,鏈?#37928;?#28051;绘澘杩欓儴鍒?#28103;伅鍙?#37714;?#28051;?#32460;哄?#38171;ffffff-ffffff杩欐牱鐨?/div>
        tmpmsg['SerialNumber'] = board_id.SerialNumber                #涓绘澘搴?#37714;?#37721;?/div>
        tmpmsg['Manufacturer'] = board_id.Manufacturer       #涓绘澘鐢?#27996;?#37725;佺墝鍘傚
        tmpmsg['Product'] = board_id.Product                 #涓绘澘鍨?#37721;?/div>
        boards.append(tmpmsg)
    print (boards)
    return boards
#BIOS
def printBIOS():
    bioss = []
    for bios_id in c.Win32_BIOS():
        tmpmsg = {}
        tmpmsg['BiosCharacteristics'] = bios_id.BiosCharacteristics   #BIOS鐗瑰?#20346;爜
        tmpmsg['version'] = bios_id.Version                           #BIOS鐗?#37832;?/div>
        tmpmsg['Manufacturer'] = bios_id.Manufacturer.strip()                 #BIOS鍥?#28000;?#37922;?#27996;?#37720;傚
        tmpmsg['ReleaseDate'] = bios_id.ReleaseDate                   #BIOS閲婃斁鏃?#37832;?/div>
        tmpmsg['SMBIOSBIOSVersion'] = bios_id.SMBIOSBIOSVersion       #绯荤粺绠悊瑙勮寖鐗?#37832;?/div>
        bioss.append(tmpmsg)
    print (bioss)
    return bioss
#纭洏
def printDisk():
    disks = []
    for disk in c.Win32_DiskDrive():
        # print disk.__dict__
        tmpmsg = {}
        tmpmsg['SerialNumber'] = disk.SerialNumber.strip()
        tmpmsg['DeviceID'] = disk.DeviceID
        tmpmsg['Caption'] = disk.Caption
        tmpmsg['Size'] = disk.Size
        tmpmsg['UUID'] = disk.qualifiers['UUID'][1:-1]
        disks.append(tmpmsg)
    for d in disks:
        print (d)
    return disks
#鐢垫睜淇伅锛?#37721;?#37832;夌瑪璁?#37832;?#37813;嶄細鏈夌?#22443;睜閫夐
def printBattery():
    isBatterys = False
    for b in c.Win32_Battery():
        isBatterys = True
    return isBatterys
#缃?#37719;mac鍦板潃锛?/div>
def printMacAddress():
    macs = []
    for n in  c.Win32_NetworkAdapter():
        mactmp = n.MACAddress
        if mactmp and len(mactmp.strip()) > 5:
            tmpmsg = {}
            tmpmsg['MACAddress'] = n.MACAddress
            tmpmsg['Name'] = n.Name
            tmpmsg['DeviceID'] = n.DeviceID
            tmpmsg['AdapterType'] = n.AdapterType
            tmpmsg['Speed'] = n.Speed
            macs.append(tmpmsg)
    print (macs)
    return macs
if __name__ == '__main__':
   
    hd1=printCPU()
    
    hd3=printMain_board()
    #printBIOS()
    #printDisk()
    hd2=printMacAddress()
    print(type(hd1))
    print(type(hd2))
    print(type(hd3))
    print(hd1['cpuid'],hd1['systemName'],hd2[0]['MACAddress'],hd3[0]['UUID'],hd3[0]['SerialNumber'])
    sum = hd1['cpuid'] + hd1['systemName'] + hd2[0]['MACAddress'] + hd3[0]['UUID']+ hd3[0]['SerialNumber']
    shastr = sum.encode('gbk')
    sha = hashlib.sha1(shastr).hexdigest()
    if (sha == 'b696fcbb46e27a09458019942dd10856b0023fea'):
        print('reg user')
    else:
        print('no reg user')
        
    print(sha)
    #print(sum)
    #print(type(sum))
    s1 = base64.encodestring(shastr)
    print(s1)
    #s2 = base64.decodestring(s1)
    #print(s1,s2)
    #print (printBattery())


AlanTop 2019-01-06 12:51 鍙戣璇勮
]]>pycharm 2018.3 涓?#28051;?#37911;堟敞鍐岀爜http://www.9087120.com/alantop/archive/2018/12/30/216155.htmlAlanTopAlanTopSun, 30 Dec 2018 03:58:00 GMThttp://www.9087120.com/alantop/archive/2018/12/30/216155.htmlhttp://www.9087120.com/alantop/comments/216155.htmlhttp://www.9087120.com/alantop/archive/2018/12/30/216155.html#Feedback0http://www.9087120.com/alantop/comments/commentRss/216155.htmlhttp://www.9087120.com/alantop/services/trackbacks/216155.html1.淇敼hosts
0.0.0.0 account.jetbrains.com
2.杞?#28000;朵?#32237;鍏如涓嬫敞鍐岀爜锛堟敞鍐?#37827;?#37832;?#37714;?019.05锛?br />K71U8DBPNE-eyJsaWNlbnNlSWQiOiJLNzFVOERCUE5FIiwibGljZW5zZWVOYW1lIjoibGFuIHl1IiwiYXNzaWduZWVOYW1lIjoiIiwiYXNzaWduZWVFbWFpbCI6IiIsImxpY2Vuc2VSZXN0cmljdGlvbiI6IkZvciBlZHVjYXRpb25hbCB1c2Ugb25seSIsImNoZWNrQ29uY3VycmVudFVzZSI6ZmFsc2UsInByb2R1Y3RzIjpbeyJjb2RlIjoiSUkiLCJwYWlkVXBUbyI6IjIwMTktMDUtMDQifSx7ImNvZGUiOiJSUzAiLCJwYWlkVXBUbyI6IjIwMTktMDUtMDQifSx7ImNvZGUiOiJXUyIsInBhaWRVcFRvIjoiMjAxOS0wNS0wNCJ9LHsiY29kZSI6IlJEIiwicGFpZFVwVG8iOiIyMDE5LTA1LTA0In0seyJjb2RlIjoiUkMiLCJwYWlkVXBUbyI6IjIwMTktMDUtMDQifSx7ImNvZGUiOiJEQyIsInBhaWRVcFRvIjoiMjAxOS0wNS0wNCJ9LHsiY29kZSI6IkRCIiwicGFpZFVwVG8iOiIyMDE5LTA1LTA0In0seyJjb2RlIjoiUk0iLCJwYWlkVXBUbyI6IjIwMTktMDUtMDQifSx7ImNvZGUiOiJETSIsInBhaWRVcFRvIjoiMjAxOS0wNS0wNCJ9LHsiY29kZSI6IkFDIiwicGFp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+PTAsWGu9GyLmhti2EnVwGybSD2Dxmhxk3IPCkhKAK+pl0eWYGZWG3tJ9mZ7SowcXLWDFAk0lRJnKGFMTggrWjV8GYpw5bq23VmIqqDLgkNzuoog==


AlanTop 2018-12-30 11:58 鍙戣璇勮
]]>notepad++ 涓婚閫夋嫨http://www.9087120.com/alantop/archive/2018/12/27/216150.htmlAlanTopAlanTopThu, 27 Dec 2018 08:47:00 GMThttp://www.9087120.com/alantop/archive/2018/12/27/216150.htmlhttp://www.9087120.com/alantop/comments/216150.htmlhttp://www.9087120.com/alantop/archive/2018/12/27/216150.html#Feedback0http://www.9087120.com/alantop/comments/commentRss/216150.htmlhttp://www.9087120.com/alantop/services/trackbacks/216150.html閫夋嫨涓婚锛歄bsidian锛?span style="color: #333333; font-family: Arial, "Microsoft YaHei", "\\5FAE杞?#38342;?#27035;?quot;, "\\5B8B浣?quot;, "Malgun Gothic", Meiryo, sans-serif; font-variant-numeric: normal; font-variant-east-asian: normal; line-height: 21px; background-color: #ffffff;">榛戞洔yao鐭?/span>锛?#38171;?br />閫夋嫨瀛?#28003;撴?#23792;紡锛欳onsolas锛?br />瀛?#28003;撳?#30380;锛?2
浣?#37922;?#37711;眬瀛?#28003;?#38171;?br />浣?#37922;?#37711;眬瀛?#28003;撳?#30380;銆?img src ="http://www.9087120.com/alantop/aggbug/216150.html" width = "1" height = "1" />

AlanTop 2018-12-27 16:47 鍙戣璇勮
]]>
տ3
<center id="iceyg"><tr id="iceyg"></tr></center>
<noscript id="iceyg"></noscript>
<center id="iceyg"></center>
<noscript id="iceyg"></noscript>
<noscript id="iceyg"></noscript>
<center id="iceyg"><tr id="iceyg"></tr></center>
<noscript id="iceyg"></noscript>
<center id="iceyg"></center>
<noscript id="iceyg"></noscript>
<noscript id="iceyg"></noscript>