Go to file
2019-02-08 11:13:21 +08:00
navicat-activate-server Refactor code 2018-12-19 18:00:46 +08:00
navicat-keygen fix bugs 2018-12-20 14:31:57 +08:00
navicat-patcher Add version message 2019-02-08 11:13:21 +08:00
.gitignore Refactor code 2018-12-19 18:00:46 +08:00
HOW_DOES_IT_WORK.md Refactor code 2018-12-19 18:00:46 +08:00
HOW_DOES_IT_WORK.zh-CN.md Refactor code 2018-12-19 18:00:46 +08:00
LICENSE Upload project. 2017-12-07 17:11:08 +08:00
Makefile Update Makefile 2019-02-08 02:34:38 +08:00
README.md Refactor code 2018-12-19 18:00:46 +08:00
README.zh-CN.md Refactor code 2018-12-19 18:00:46 +08:00

Navicat Keygen

中文版README

This repository will tell you how Navicat offline activation works.

How does it work?

1. How to build

  • Before you build keygen, you should make sure you have OpenSSL lib and rapidjson lib.

    If you have brew, you can install them by

    $ brew install openssl
    $ brew install rapidjson
    
  • Clone mac branch and build keygen and patcher:

    $ git clone -b mac https://github.com/DoubleLabyrinth/navicat-keygen.git
    $ cd navicat-keygen
    $ make all
    

    You will see two executable files in bin/ folder:

    $ ls bin/
    navicat-keygen    navicat-patcher
    

2. How to Use

  1. Build keygen and patcher.

  2. Backup your Navicat Premium.app/Contents/MacOS/Navicat Premium and all of your saved database connection configurations (with password).

  3. Remove all connections, if have, that Navicat saved in Keychain.app.

    You can find them by search with keyword navicat.

  4. Use navicat-patcher to replace Navicat Activation Public Key.

    Usage:
        navicat-patcher <navicat executable file> [RSA-2048 PrivateKey(PEM file)]
    
    • <navicat executable file>: The path to Navicat executable file.

      This parameter must be specified.

    • [RSA-2048 PrivateKey(PEM file)]: The path to an RSA-2048 private key file.

      This parameter is optional. If not specified, navicat-patcher will generate a new RSA-2048 private key file RegPrivateKey.pem at current directory.

    Example:

    $ ./navicat-patcher /Applications/Navicat\ Premium.app/Contents/MacOS/Navicat\ Premium
    

    FOR Navicat Premium version < 12.0.24 ONLY:

    navicat-patcher will not modify target file. But you should use openssl to convert RegPrivateKey.pem to rpk file and replace

    /Applications/Navicat Premium.app/Contents/Resources/rpk
    

    by it.

    If you don't know how to use openssl, here's an example:

    $ openssl rsa -in RegPrivateKey.pem -pubout -out rpk
    
  5. Generate a self-signed code-sign certificate and always trust it.

    Then use codesign to re-sign Navicat Premium.app.

    $ codesign -f -s "Your self-signed code-sign certificate name" <path to Navicat Premium.app>
    

    NOTICE:

    "Your self - signed code - sign certificate name" is the name of your certificate, not path.

    Example:

    $ codesign -f -s "foobar" /Applications/Navicat\ Premium.app/
    
  6. Then use navicat-keygen to generate snKey and Activation Code.

    Usage:
       navicat-keygen <RSA-2048 PrivateKey(PEM file)>
    
    • <RSA-2048 PrivateKey(PEM file)>: The path to a RSA-2048 private key file.

      This parameter must be specified.

    Example:

    ./navicat-keygen ./RegPrivateKey.pem
    

    You will be asked to select Navicat language and input major version number. After that an randomly generated snKey will be given.

    Which is your Navicat Premium language?
    0. English
    1. Simplified Chinese
    2. Traditional Chinese
    3. Japanese
    4. Polish
    5. Spanish
    6. French
    7. German
    8. Korean
    9. Russian
    10. Portuguese
    
    (Input index)> 1
    (Input major version number, range: 0 ~ 15, default: 12)> 12
    
    Serial number:
    NAVK-MWQR-LNXV-886V
    
    Your name: 
    

    You can use this snKey to activate your Navicat preliminarily.

    Then you will be asked to input Your name and Your organization. Just set them whatever you want, but not too long.

    Your name: DoubleLabyrinth
    Your organization: DoubleLabyrinth
    Input request code (in Base64), input empty line to end:
    

    After that, you will be asked to input the request code. Now DO NOT CLOSE KEYGEN.

  7. Disconnect your network and open Navicat Premium.

    Find and click Registration. Fill license key by Serial number that the keygen gave and click Activate.

  8. Generally online activation will fail and Navicat will ask you do Manual Activation, just choose it.

  9. Copy your request code and paste it in the keygen. Input empty line to tell the keygen that your input ends.

    Your name: DoubleLabyrinth
    Your organization: DoubleLabyrinth
    
    Input request code (in Base64), input empty line to end:
    q/cv0bkTrG1YDkS+fajFdi85bwNVBD/lc5jBYJPOSS5bfl4DdtnfXo+RRxdMjJtEcYQnvLPi2LF0
    OB464brX9dqU29/O+A3qstSyhBq5//iezxfu2Maqca4y0rVtZgQSpEnZ0lBNlqKXv7CuTUYCS1pm
    tEPgwJysQTMUZf7tu5MR0cQ+hY/AlyQ9iKrQAMhHklqZslaisi8VsnoIqH56vfTyyUwUQXrFNc41
    qG5zZNsXu/NI79JOo7qTvcFHQT/k5cTadbKTxY+9c5eh+nF3JR7zEa2BDDfdQRLNvy4DTSyxdYXd
    sAk/YPU+JdWI+8ELaa0SuAuNzr5fEkD6NDSG2A==
    
    Request Info:
    {"K":"NAVADHCNP2OIDV46", "DI":"Y2eJk9vrvfGudPG7Mbdn", "P":"MAC"}
    
    Response Info:
    {"K":"NAVADHCNP2OIDV46","DI":"Y2eJk9vrvfGudPG7Mbdn","N":"DoubleLabyrinth","O":"DoubleLabyrinth","T":1537630251}
    
    License:
    oyoMYr9cfVGXeT7F1dqBwHsB/vvWj6SUL6aR+Kzb0lm5IyEj1CgovuSq+qMzFfx+
    oHMFaGKFg6viOY2hfJcrO2Vdq0hXZS/B/Ie3jBS2Ov37v8e3ufVajaH+wLkmEpLd
    xppCVLkDQjIHYR2IPz5s/L/RuWqDpEY4TPmGFF6q+xQMnqQA3vXPyG+JYMARXLru
    Y1gCDLN30v3DpyOeqKmFjUqiHK5h8s0NYiH2OpMyaCpi12JsF23miP89ldQp3+SJ
    8moo0cNGy7sFp2gX9ol2zVoo7qxfYlLl03f7CALJ6im0sx4yBsmlzFDdvpQUbXk8
    YZ5rT4LML2Fx6Wgnnklb5g==
    
  10. Finally, you will get Activation Code which looks like a Base64 string. Just copy it and paste it in Navicat Manual Activation window, then click Activate. If nothing wrong, activation should be done successfully.