不得不說的是starUML真的非常好用,可惜他們的產(chǎn)品并不開源,國內(nèi)有牛人嘗試去破解,雖然不是很對,可是好用免費才是最愛,所以本文打算轉載并記錄一下這個破解過程,有需要的朋友可以拿去用一下。
本人親測Linux/Mac下都可用,win還沒試過估計道理也差不多
Start
- 打開對應 版本的安裝包的配置文件位置
#修改前記得先備份
#Mac默認目錄:/Applications/StarUML.app/Contents/www/license/node/LicenseManagerDomain.js
#linux默認目錄:/opt/staruml/www/license/node/LicenseManagerDomain.js
2.修改文件
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!"
};
###############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:0xcb
licenseKey:later equals never!
#然后提示你注冊成功!
Installation
#Linux
sudo dpkg -i StarUML-v2.7.0-64-bit.deb