StarUML2 建模工具全平台破解及license验证简要分析
http://staruml.io/download
破解方法:
找到安装目录下的文件:LicenseManagerDomain.js
阅读得知,改软件用rsa加密用户信息,换行为用户信息的分隔符
修改以下代码,然后打开软件点击菜单栏中的帮助->输入license软件即可获得授权,即可:
- function validate(PK, name, product, licenseKey) {
- var pk, decrypted;
- // edit by 0xcb
- return {
- name: "0xcb",
- product: "StarUML",
- licenseType: "vip",
- quantity: "bbs.chinapyg.com",
- licenseKey: "later equals never!"
- };
- try {
- pk = new NodeRSA(PK);
- decrypted = pk.decrypt(licenseKey, 'utf8');
- } catch (err) {
- return false;
- }
- var terms = decrypted.trim().split("\n");
- if (terms[0] === name && terms[1] === product) {
- return {
- name: name,
- product: product,
- licenseType: terms[2],
- quantity: terms[3],
- licenseKey: licenseKey
- };
- } else {
- return false;
- }
- }