本文为看雪论坛优秀文章
看雪论坛作者ID:bluefish蓝鱼
当你使用WIBU软授权的程序时,是否遇到过这样一个情况?
你的机器需要升级或更换,但是原来授权厂商已经联系不上了,无法重新为新的机器更新软授权。
那么问题来了,能不能把原来的授权迁移到新的机器上呢?答案是肯定的,这正是本文所要解决的问题。
观前提醒
本文内容仅用于学习交流,严禁用作商业用途,造成任何法律问题本人概不承担。
准备和工具
本文内容仅适用于linux平台,以下工具均为linux平台的工具。
应坛友要求,本文使用的文件将隐去相关信息。
-
python3 -
asn1tools -
PyQt5 -
CodeMeter Runtime 6.60 -
Wibu Reader -
一份LIF文件、两份RAU文件(旧授权文件) -
一台运行WIBU程序的机器
第一步:替换CodeMeterLin中的根证书
第二步:导入LIF文件
cmu -i -f 0_fix.Wibu
cmu - CodeMeter Universal Support Tool.
Version 6.60 of 2017-Dec-18 (Build 2869) for Linux
Copyright (C) 2007-2017 by WIBU-SYSTEMS AG. All rights reserved.
The file contains 1 Update:
CmActLtLicense binding information: FirmCode 6000XXX
Execute Update ...
The file contains 1 Update:
CmActLtLicense update: Serial number 130-2600192248, FirmCode 6000XXX.
successful
1 successful update done
[General]
FirmCode=6000xxx
SerialNumber=82 00 xx xx xx xx xx xx xx xx xx xx xx xx xx xx xx xx xx
PrivateKey=0xAABBCCDDEEFFAABBCCDDEEFFAABBCCDDEEFF
CmActId=AB CD EF 01 23 45 67
;[Replace]
;Number=1
;[Replace_0]
;AsnType=Content-PI-P
;Path=product-item,pi-expirationtime,time
;Type=bytes;bytes,int,str,bool
;Value=0058000000
PrivateKey是wbc文件计算出来的CmAct证书所用的私钥,该证书是一份自签证书。
CmActId是CmAct证书的唯一识别号。
Replace字段用于自定义替换规则,可由用户进行填写。
cmu -i -f 1_fix.WibuCmRaU
cmu - CodeMeter Universal Support Tool.
Version 6.60 of 2017-Dec-18 (Build 2869) for Linux
Copyright (C) 2007-2017 by WIBU-SYSTEMS AG. All rights reserved.
The file contains 3 Updates:
CmActLtLicense binding information: FirmCode 6000xxx
CmDongle update for 130-2600192248 (FirmCode 6000xxx).
CmDongle update for 130-2600192248 (FirmCode 6000xxx).
Execute Update ...
The file contains 3 Updates:
CmActLtLicense update: Serial number 130-2600192248, FirmCode 6000xxx.
successful
1 successful update done
CmDongle update for 130-2600192248 (FirmCode 6000xxx).
successful
2 successful updates done
CmDongle update for 130-2600192248 (FirmCode 6000xxx).
successful
3 successful updates done
cmu -i -f 2_fix.WibuCmRaU
cmu - CodeMeter Universal Support Tool.
Version 6.60 of 2017-Dec-18 (Build 2869) for Linux
Copyright (C) 2007-2017 by WIBU-SYSTEMS AG. All rights reserved.
The file contains 6 Updates:
CmActLtLicense binding information: FirmCode 6000xxx
CmDongle update for 130-2600192248 (FirmCode 6000xxx).
CmDongle update for 130-2600192248 (FirmCode 6000xxx).
CmDongle update for 130-2600192248 (FirmCode 6000xxx).
CmDongle update for 130-2600192248 (FirmCode 6000xxx).
CmDongle update for 130-2600192248 (FirmCode 6000xxx).
Execute Update ...
The file contains 6 Updates:
CmActLtLicense update: Serial number 130-2600192248, FirmCode 6000xxx.
--> successful
1 successful update done
CmDongle update for 130-2600192248 (FirmCode 6000xxx).
--> successful
2 successful updates done
CmDongle update for 130-2600192248 (FirmCode 6000xxx).
--> successful
3 successful updates done
CmDongle update for 130-2600192248 (FirmCode 6000xxx).
--> successful
4 successful updates done
CmDongle update for 130-2600192248 (FirmCode 6000xxx).
--> successful
5 successful updates done
CmDongle update for 130-2600192248 (FirmCode 6000xxx).
--> successful
6 successful updates done
答疑
1、问:怎么在整个过程没有看到RAC文件?
答:本文适用的情况为原软件授权商联系不上,而RAC文件就是用来发给软件授权商的,所以没有必要生成。
2、问:能修改那些字段?
答:所有字段都可修改,但是某些用于校验之类的字段最好不要动,目前还有很多字段是未知用途的。
3、问:必须要有旧的授权文件吗?
答:从原理上讲不是必须的,但在原来的授权文件上作修改会避免很多问题。当然,你也可以自己从0开始构造RAU文件。
4、问:只能在linux平台运行吗?
答:是的,本文研究的内容仅限于linux平台。
window平台的授权过程应该大同小异,但window平台的根证书和CmAct证书的私钥计算应该是不同的,这部分的研究可以留给其他更加有实力的人。
看雪ID:bluefish蓝鱼
https://bbs.kanxue.com/user-home-674195.htm
# 往期推荐
球分享
球点赞
球在看
点击“阅读原文”,了解更多!
原文始发于微信公众号(看雪学苑):wibu软授权
免责声明:文章中涉及的程序(方法)可能带有攻击性,仅供安全研究与教学之用,读者将其信息做其他用途,由读者承担全部法律及连带责任,本站不承担任何法律及连带责任;如有问题可邮件联系(建议使用企业邮箱或有效邮箱,避免邮件被拦截,联系方式见首页),望知悉。
- 左青龙
- 微信扫一扫
-
- 右白虎
- 微信扫一扫
-
评论