StarUML 版本破解
参考:http://bbs.chinapyg.com/thread-79022-1-1.html
1,打开对应 mac版本的安装包位置,在对应目录/Applications/StarUML.app/Contents/www/license/node/LicenseManagerDomain.js文件。
2,找到文件23行,修改对应下面函数。更改为如下代码:
1 function validate(PK, name, product, licenseKey) { 2 var pk, decrypted; 3 // edit by 0xcb 4 return { 5 name: "0xcb", 6 product: "StarUML", 7 licenseType: "vip", 8 quantity: "mergades.com", 9 licenseKey: "later equals never!" 10 }; 11 try { 12 pk = new NodeRSA(PK); 13 decrypted = pk.decrypt(licenseKey, 'utf8'); 14 } catch (err) { 15 return false; 16 } 17 var terms = decrypted.trim().split("\n"); 18 if (terms[0] === name && terms[1] === product) { 19 return { 20 name: name, 21 product: product, 22 licenseType: terms[2], 23 quantity: terms[3], 24 licenseKey: licenseKey 25 }; 26 } else { 27 return false; 28 } 29 }
我的做法是注释掉原有代码,再增加,防止出现问题。
3,打开starUML。help>enter license
Name:0xcb
licenseKey:later equals never!
然后提示你注册成功!
转载自:http://blog.csdn.net/mergades/article/details/46662413