-
-
[分享]IncrediBuild 3.31 无限期试用方式
-
-
[分享]IncrediBuild 3.31 无限期试用方式
感谢 lionel 的分享
http://bbs.pediy.com/showthread.php?t=64658&highlight=IncrediBuild
3.31 版的产生方式没变.. Key 的位置为
3.31: HKCR\Interface\{6F8793A7-3226-4B51-98C1-476A0D1A7AFC}\ProxyStubClsid32
我用 Python 简单写个产生 value 的 script, 会自动产生今天 + 30 天的 value.
import struct, datetime
OLE_TIME_ZERO = datetime.datetime(1899, 12, 30, 0, 0, 0)
def getDays(delta):
return delta.days + delta.seconds / 86400.0 + delta.microseconds / 86400.0 / 1000000.0
def ole2datetime(oledt):
return OLE_TIME_ZERO + datetime.timedelta(days=float(oledt))
def datetime2ole(dt):
d = dt - OLE_TIME_ZERO
return getDays(d)
def main():
d = datetime.datetime.now() + datetime.timedelta(30)
oledate = datetime2ole(d)
olestr = struct.pack('d', oledate)
calArr = map(lambda x: ord(x), olestr)
m1 = calArr[0] * calArr[1] * calArr[2] * calArr[3]
m2 = calArr[4] * calArr[5]
m3 = calArr[6] * calArr[7]
value = '{%08X-%04X-%04X-%02X%02X-%02X%02X%02X%02X%02X%02X}' % (
m1, m2, m3,
calArr[0], calArr[1],
calArr[2],calArr[3],calArr[4],calArr[5],calArr[6],calArr[7]
)
print 'New keyvalue = %s' % (value)
if __name__ == '__main__':
main()
结果
D:\WorkingFolder\Python\IBTrial>python IBTrial.py
New keyvalue = {0108C903-0BF4-38C0-7B1F-6F291E66E340}
[培训]内核驱动高级班,冲击BAT一流互联网大厂工作,每周日13:00-18:00直播授课