1. 程式人生 > >StarUML 破解方法

StarUML 破解方法

StarUML 版本破解

1,開啟對應 /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!"
            };


            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!


4、提示成功

安裝過程中的相關問題:

依賴問題:libgcrypt11_1.5.3-2ubuntu4.3_i386.deb

解決方法:You should be able to use any of the listed mirrors by adding a line to your /etc/apt/sources.list like this:

deb http://security.ubuntu.com/ubuntu trusty-security main