-
-
[分享]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}
[注意]传递专业知识、拓宽行业人脉——看雪讲师团队等你加入!