Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Get full version of StarUML

Note: This is the guide for v 2.x.

For the v3, please follow this url: https://blog.csdn.net/sam_shan/article/details/80585240 Thanks @liy-cn for contributing.

StarUML

Download: StarUML.io

Crack

Source: jorgeancal

After installing StartUML successfully, modify LicenseManagerDomain.js as follow:

/**
 * File name: LicenseManagerDomain.js
 * Mac OS: /Applications/StarUML.app/Contents/www/license/node/
 * Linux: /opt/staruml/www/license/node/
 */

(function () {
    "use strict";
 
    var NodeRSA = require('node-rsa');
 
    function validate(PK, name, product, licenseKey) {
        return{
           name: "sontd",
           product: "StarUML",
           licenseType: "vip",
           quantity: "unlimited",
           licenseKey: "no, thanks!"
        };
    }
 
    function init(domainManager) {
        if (!domainManager.hasDomain("LicenseManager")) {
            domainManager.registerDomain("LicenseManager", {major: 0, minor: 1});
        }
        domainManager.registerCommand(
            "LicenseManager", // domain name
            "validate",       // command name
            validate,         // command handler function
            false,            // this command is synchronous in Node ("false" means synchronous")
            "Validate License",
            [
                {
                    name: "PK",
                    type: "string",
                    description: "PK"
                },
                {
                    name: "name",
                    type: "string",
                    description: "name of license owner"
                },
                {
                    name: "product",
                    type: "string",
                    description: "product name"
                },
                {
                    name: "licenseKey",
                    type: "string",
                    description: "license key"
                }
            ],
            [
                {
                    name: "result", // return values
                    type: "object",
                    description: "result"
                }
            ]
        );
    }
 
    exports.init = init;
 
}());

Now, open it and go to Help > Enter License and you have to write the name and the licence key which you have written on LicenseManagerDomain.js. In this example would be the next:

name: "sontd"
License Key: "no, thanks!"

Enjoy it!

@nimaaj93
Copy link

nimaaj93 commented Feb 4, 2020

@arkn98 Thanks! This approach worked for me on Ubuntu

@r4lly99
Copy link

r4lly99 commented Feb 27, 2020

@mochadwi Thanks , this approach worked for me too

@RKursatV
Copy link

RKursatV commented Mar 2, 2020

@arkn98 here are the steps - based on https://gist.github.com/jjvillavicencio/4e3615a8219bb1a17c81c4541c6c317d :
sudo apt install npm
sudo npm install -g asar
./StarUML-3.0.1-x86_64.AppImage --appimage-extract
cd squashfs-root/app/resources/
asar extract app.asar app
#edit the file as per the instructions above
rm -rf app/*
rmdir app
cd ../../../
./appimagetool-x86_64.AppImage squashfs-root/
./StarUML-x86_64.AppImage

#enjoy - but consider paying for the license, we are all developers and its not that expensive :)

This works for version 3.2.2 too, thanks

@oslivan
Copy link

oslivan commented Apr 4, 2020

@henrytien http://php-note.com/article/749.html here for starUML3.x on mac

Thanks, I successfuly installed staruml 3.1.0, and wrote a install script

@borislavnnikolov
Copy link

borislavnnikolov commented Apr 5, 2020

Thank you!

@Bobotech79
Copy link

Bobotech79 commented Apr 20, 2020

Thanks you. Success.

@SpiritedHunter
Copy link

SpiritedHunter commented May 7, 2020

@sahanpasindu Did you try with sudo?

sudo vi /opt/staruml/www/license/node/LicenseManagerDomain.js

dafuq is sudo? how fo you actually crack this thing on windows 10? Thanks for any reply.

@wpserve
Copy link

wpserve commented May 7, 2020

Thank you. I laughed immediately after I hacked the program :-)
Even chinese comments didn't put a crimp in to.
All works perfect!

@chrcatalano92
Copy link

chrcatalano92 commented May 20, 2020

For Windows 10 users, is there a license for StarUML 3.2.2?
Thanks for the courtesy.

@dmitrii-cyberdog
Copy link

dmitrii-cyberdog commented Jun 1, 2020

For Windows 10 users, is there a license for StarUML 3.2.2?
Thanks for the courtesy.

Use this note http://php-note.com/article/749.html. To work with asar on Windows, you can install it with Node.js npm install -g asar
Works fine:
image

@Asad-Chuadhry
Copy link

Asad-Chuadhry commented Jun 2, 2020

For windows user:
1- open C:\Program Files (x86)\StarUML\www\license\node\LicenseManagerDomain.js file with Visual Studio Code .
2- Make changes in file and press Ctrl+s, it will show a dialog then click on retry with administrator and its done.
Capture

@Rozin14
Copy link

Rozin14 commented Nov 8, 2020

What about v4

@asbp
Copy link

asbp commented Nov 19, 2020

What about v4

it's same as v3

@Trackhe
Copy link

Trackhe commented Jan 7, 2021

In my StarUML.app/Contents/www dictory is missing. V4 on Mac

@Irhamulya
Copy link

Irhamulya commented Jan 26, 2021

For Windows 10 users, is there a license for StarUML 3.2.2?
Thanks for the courtesy.

Use this note http://php-note.com/article/749.html. To work with asar on Windows, you can install it with Node.js npm install -g asar
Works fine:
image

I tried your version but i got this error did you how to fix it? Thank you
image

@Stiy27
Copy link

Stiy27 commented May 19, 2021

Thank you, man.
In windows 10 I did the modification of domainManager using notepad in administrator mode and works.
You saved me.

@ArnNied
Copy link

ArnNied commented Aug 13, 2021

just gonna bump this to anyone reading, it still works on v4, currently the latest version is v4.0.1

@anhtu91
Copy link

anhtu91 commented Sep 17, 2021

just gonna bump this to anyone reading, it still works on v4, currently the latest version is v4.0.1

For me, I didn't find the path of license

@Joe-Xiong
Copy link

Joe-Xiong commented Nov 8, 2021

@nhanledev thanks, this license key works well on v2.8.1.

@MolunSIB
Copy link

MolunSIB commented Dec 8, 2021

@Irhamulya just open cmd with administrator, im try and it work! Without admin like u problems.
image
image

@VictorGimenez
Copy link

VictorGimenez commented Dec 10, 2021

This file LicenseManagerDomain.js didn't came after my StarUML installing 4.1.6. as well as the www folder. I did the StarUML install through sudo dpkg -i (StarUML.deb file), I already try to create a new folder: www with the LicenseManagerDomain.js file on it but when I try to insert the license key no success, I would like to know how could I solve it? My OS is Ubuntu 20.04

@haghverdimasoud
Copy link

haghverdimasoud commented Jan 26, 2022

I install the last version of staruml (v4.1.6) on windows 10, and can not find LicenseManagerDomain.js
how can i crack it?

@EZaykov
Copy link

EZaykov commented Mar 15, 2022

for windows users and latest versions:

  1. install an app from official website.

  2. install "asar" in node: "npm i asar -g"

  3. go to "ProgramFiles/StarUML/resources" and run "asar e app.asar app" (i was running all commands via bash from git package, not via powershell or cmd, but u can try).

  4. go to "ProgramFiles/StarUML/resources/app/src/engine and open "license-manager.js" file.

  5. edit code as shown on screenshot and save changes
    91382611603427377c54c968a5f5aaeb

  6. run "asar pack app app.asar" (at "ProgramFiles/StarUML/resources")

  7. remove src files (app folder) (at "ProgramFiles/StarUML/resources")

  8. enjoy! (run an .exe file in "ProgramFiles/StarUML" or desktop shortcut)

(didnt get any user rights issues on my os. i hope u can fix them urself)

@vortex14
Copy link

vortex14 commented Apr 30, 2022

Thank you !

@Kelopsz
Copy link

Kelopsz commented May 15, 2022

Thanks! It works with 5.0.1

@fernand0albert0
Copy link

fernand0albert0 commented May 21, 2022

muchas gracias por compartir esta informacion... resulto muy valiosa

@panoet
Copy link

panoet commented May 28, 2022

This worked. Thank you.

@Anis-Dhaoui
Copy link

Anis-Dhaoui commented Jul 3, 2022

for the latest version: 5.0.2 (till now) Follow this link https://gist.github.com/jjvillavicencio/4e3615a8219bb1a17c81c4541c6c317d

@terminal-root
Copy link

terminal-root commented Jul 10, 2022

This worked for me on v5.0.1 (Linux).

  • All commands were run as root
  • Probably should have StarUML closed during this process
  • I recommend backing up your StarUML directory
  1. Install asar via npm
npm i asar -g
  1. Extract source
cd <path_to_staruml>/resources/ # mine was /opt/StarUML/resources/
asar extract app.asar app
  1. Edit license-manager.js
<text_editor> app/src/engine/license-manager.js

Change this

  checkLicenseValidity () {
    if (packageJSON.config.setappBuild) {
      setStatus(this, true)
    } else {
      this.validate().then(() => {
        setStatus(this, true)
      }, () => {
        setStatus(this, false)
        UnregisteredDialog.showDialog()
      })
    }
  }

to this

  checkLicenseValidity () {
    // if (packageJSON.config.setappBuild) {
      setStatus(this, true)
    // } else {
    //   this.validate().then(() => {
    //     setStatus(this, true)
    //   }, () => {
    //     setStatus(this, false)
    //     UnregisteredDialog.showDialog()
    //   })
    // }
  }
  1. Repackage app
asar pack app app.asar

Next time you run StarUML, it should behave as a licensed version.

Source

@jebcarlos
Copy link

jebcarlos commented Jul 26, 2022

Gracias tambien funciona con StarUml 5.0.2 solo que las lineas a modificar son desde la 131. Eso si hay que seguir los pasos como dice el sitio

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment