牵着老婆满街逛

严以律己,宽以待人. 三思而后行.
GMail/GTalk: yanglinbo#google.com;
MSN/Email: tx7do#yahoo.com.cn;
QQ: 3 0 3 3 9 6 9 2 0 .

StarUML 版本破解

转载自:http://blog.csdn.net/mergades/article/details/46662413

参考:http://bbs.chinapyg.com/thread-79022-1-1.html

各平台版本均适用,本文更改的为Mac版本。​

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

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

function validate(PK, name, product, licenseKey) {
 var pk, decrypted;
        // edit by 0xcb
        return {
            name: "0xcb",
            product: "StarUML",
            licenseType: "vip",
            quantity: "mergades.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;
        }
    }

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

3,打开starUML。help>enter license

Name:0xcb

licenseKey:later equals never!

然后提示你注册成功!

posted on 2015-11-11 13:12 杨粼波 阅读(1172) 评论(0)  编辑 收藏 引用


只有注册用户登录后才能发表评论。
网站导航:   博客园   博客园最新博文   博问   管理