版权声明:欢迎转载、分享、交流! https://blog.csdn.net/helencoder/article/details/51131975
在你的StarUML的安装目录下path/to/StarUML/www/license/node/找到LicenseManagerDomain.js
打开文件,将其中第23行的validate函数改为如下形式:
function validate(PK, name, product, licenseKey) {
var pk, decrypted;
//以下为新增语句
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;
}
}
然后打开软件,在help/enter license下输入
Name:0xcb
licenseKey:later equals never!
即可破解成功!