startUML破解

  1. 在安装目录的: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!

  1. 提示成功

你可能感兴趣的:(startUML破解)