Skip to content

Instantly share code, notes, and snippets.

@danteay
Created August 22, 2018 17:43
Show Gist options
  • Star 7 You must be signed in to star a gist
  • Fork 8 You must be signed in to fork a gist
  • Save danteay/2beca41b8a6a89587d4215047d9abdb9 to your computer and use it in GitHub Desktop.
Save danteay/2beca41b8a6a89587d4215047d9abdb9 to your computer and use it in GitHub Desktop.
Active StarUml 3 license

StarUML Crack Linux

Based on https://gist.github.com/jjvillavicencio/4e3615a8219bb1a17c81c4541c6c317d

Requirements

  • nodejs
  • npm

Crack steps

  1. Download the .AppImage file of StarUML from StarUml.io

  2. Install asar package

    sudo npm i -g asar
  3. Extract the .AppImage file

    ./StarUML-[your version].AppImage --appimage-extract
  4. Extract the asar app

    asar squashfs-root/resources/app.asar app
  5. Navigate to squashfs-root/resource/app/src/engine and open the file license-manager.js

    cd /squashfs-root/resource/app/src/engine
    nano license-manager.js
  6. Search for the next code in line 125 and do the next modifications.

    Before the changes:

    checkLicenseValidity () {
     this.validate().then(() => {
       setStatus(this, true)
     }, () => {
       /**
        * Change the second paramter from true to false
        */
       setStatus(this, true)
       /**
        * Comment this dialog
        */
       UnregisteredDialog.showDialog()
     })
    }

    After the changes:

    checkLicenseValidity () {
     this.validate().then(() => {
       setStatus(this, true)
     }, () => {
       setStatus(this, false)
       //UnregisteredDialog.showDialog()
     })
    }
  7. Pack the app with the changes and remove the app folder:

    asar pack app app.asar
    rm -rf app/
  8. Remove the .AppImage file and rename the squashfs-root folder to SarUml:

    rm -rf StarUrml.AppImage
    mv squashfs-root StarUml
  9. Run the executable file insede the folder StarUml named staruml and enjoy.

    ./StarUml/staruml
@JenuelDev
Copy link

what about for windows?

@duongleh
Copy link

step 4 should be: asar extract squashfs-root/resources/app.asar app

@rishithaminol
Copy link

But App shows 'UNREGISTERED' why?

@alexandrecaio
Copy link

  1. Now is!
    $ asar e app.asar app

@mouradxmt
Copy link

Hello community, I just repaired some stuff and it worked for me.

In 4. In the directory of the appImage file
asar extract squashfs-root/resources/app.asar squashfs-root/resources/app

In 7. you should return to the squashfs-root/resources/ folder and remove the old app.asar
cd ../../
rm app.asar
asar pack app app.asar
rm -rf app/
and that should repair the UNREGISTERED

@iampato
Copy link

iampato commented Oct 13, 2020

bash: cd: /squashfs-root/resource/app/src/engine: No such file or directory

@WellingtonEspindula
Copy link

I've noticed that worked for me changing the second setStatus to true in ln 6 as below:

checkLicenseValidity () {
 this.validate().then(() => {
   setStatus(this, true)
 }, () => {
   setStatus(this, true)
   //UnregisteredDialog.showDialog()
 })
}

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