starUML安装与破解

安装包百度云:

链接:https://pan.baidu.com/s/1oF_DH7Xh6yun6fFUDB2H3w 密码:1z7e

 

破解步骤:
1. 首先打开你的starUML安装目录,并找到LicenseManagerDomain.js,
starUML是用NodeJS写的,这个文件就是判断注册用户的文件,我的目
录是:
D:\Program Files (x86)\StarUML\www\license\node\LicenseManagerDomain.js

2. 修改该文件,找到第24行,加入如下所示区域的代码。

   function validate(PK, name, product, licenseKey) {
        var pk, decrypted;

        //加入如下几行
        //-------------START
        return {
            name: "zzzzz",//随意
            product: "StarUML",
            licenseType: "vip",
            quantity: "zzzzzz",//随意
            licenseKey: "zzzzzz"//随意
        };
        //-------------END

        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;
        }
    } 
 


3. 打开安装好的StarUML,选择“help”->“enter license”。然后按

上述代码中的name和licenseKey输入相应的内容,确定后便会
提示注册成功。

posted @ 2018-06-28 09:56  CTHON  阅读(1939)  评论(0编辑  收藏  举报