starUML破解方法

3190阅读 0评论2018-05-07 刘一痕
分类:项目管理

提示:任何版本的都可以按以下方法尝试。版本2.8.0的本人已验证,已注册。

1,打开对应 mac版本的安装包位置,在对应目录/Applications/StarUML.app/Contents/www/license/node/LicenseManagerDomain.js文件。

2,找到文件23行,修改对应下面函数。更改为如下代码:

  1.    function validate(PK, name, product, licenseKey) {
  2.        var pk, decrypted;
  3.        // edit by 0xcb
  4.        return {
  5.            name: "0xcb",
  6.            product: "StarUML",
  7.            licenseType: "vip",
  8.            quantity: "mergades.com",
  9.            licenseKey: "later equals never!"
  10.        };
  11.        try {
  12.            pk = new NodeRSA(PK);
  13.            decrypted = pk.decrypt(licenseKey, 'utf8');
  14.        } catch (err) {
  15.            return false;
  16.        }
  17.        var terms = decrypted.trim().split("\n");
  18.        if (terms[0] === name && terms[1] === product) {
  19.            return {
  20.                name: name,
  21.                product: product,
  22.                licenseType: terms[2],
  23.                quantity: terms[3],
  24.                licenseKey: licenseKey
  25.            };
  26.        } else {
  27.            return false;
  28.        }
  29.    }

我的做法是注释掉原有代码,再增加,防止出现问题。

3,打开starUML。help>enter license

Name:0xcb

licenseKey:later equals never!

然后提示你注册成功!


上一篇:git commit模板设置
下一篇:Flask中如何响应微信服务器验证