StarUML mac版破解方法


各平臺版本均適用,本文更改的爲Mac版本。​

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!

然後提示你註冊成功!


此信息來自網絡

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章