转-starUML-MAC-破解

破解版本号: StarUML-v2.8.1.dmg

vi /Applications/StarUML.app/Contents/www/license/node/LicenseManagerDomain.js

注释此段代码

function validate(PK, name, product, licenseKey) {  
    var pk, decrypted;  
    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;  
    }  
}  

在注释的代码后面加此段代码

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

保存此.js文件,打开starUML,头部工具栏->Help->Enter License,键入内容

name:0xcb

licenseKey:later equals never!

如果提示无效不用理会, 在次打开软件 头部工具栏->Help->Enter License 提示就会提示已经授权.

相关资料

原文-starUML for MAC 破解方法
官网下载-starUML