项目作者: lanarthur

项目描述 :
fork自https://github.com/DoubleLabyrinth/navicat-keygen, 修改兼容低版本的c++
高级语言: C++
项目地址: git://github.com/lanarthur/np-keygen.git
创建时间: 2019-05-21T07:33:45Z
项目社区:https://github.com/lanarthur/np-keygen

开源协议:GNU General Public License v3.0

下载


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 following libs:

    1. openssl
    2. capstone
    3. keystone
    4. rapidjson

    You can install them by

    1. $ brew install openssl
    2. $ brew install capstone
    3. $ brew install keystone
    4. $ brew install rapidjson
  • Clone mac branch and build keygen and patcher:

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

    You will see two executable files in bin/ folder:

    1. $ ls bin/
    2. 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 in Keychain.app.

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

    1. Usage:
    2. 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:

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

    It has been tested on Navicat Premium 12.1.15 For Mac Simplified Chinese version. The following is an example of output:

    1. ***************************************************
    2. * Navicat Patcher by @DoubleLabyrinth *
    3. * Version: 3.0 *
    4. ***************************************************
    5. Press Enter to continue or Ctrl + C to abort.
    6. PatchSolution0 ...... Ready to apply.
    7. Info: Keyword offset = +0x02d3c48c
    8. PatchSolution1 ...... Omitted.
    9. PatchSolution2 ...... Ready to apply.
    10. Info: Target function offset = +0x00f650a2
    11. Info: Keyword offset = +0x02ed1bc8
    12. Info: std::string::append(const char*) offset = +02613e44
    13. MESSAGE: Generating new RSA private key, it may take a long time.
    14. MESSAGE: New RSA private key has been saved to RegPrivateKey.pem.
    15. Your RSA public key:
    16. -----BEGIN PUBLIC KEY-----
    17. MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAt1haNfmdWMA2V11CqGIB
    18. +vce/v0mulh5SNcpto6yaklyup6UO4ryVea9L2X8Tw2rh1xwcqJjD29a8MNaMB7B
    19. 6FbLAdLleNjcWBUSfWeomOIrWHtGIfUUyMLrFAhAx0Vj5EjTZVv3F7r1HaCUEyq9
    20. wT3rC1XQs4YKzE9dL+sGXB+BuCg2l0eQPFojc+k48IbuMIUPqR63g9IfXtjqS6vt
    21. 6rbeWk3nB0QEzOVPVrrRP6sZAZzovY21ZQ/5cw6WE3x03SGtjbsS65KaHfUljHGH
    22. IjQF0OhH7teS3AYGv7ydRUTRJ/nvT9JnWM7MQfJ8uq1Hc6JLW7sKhBNf/Ia6Tkvz
    23. gwIDAQAB
    24. -----END PUBLIC KEY-----
    25. ****************************
    26. * Begin PatchSolution0 *
    27. ****************************
    28. @+0x02d3c48c
    29. Previous:
    30. +0x0000000002d3c480 73 0a 25 73 0a 25 73 0a 25 73 0a 00 2d 2d 2d 2d s.%s.%s.%s..----
    31. +0x0000000002d3c490 2d 42 45 47 49 4e 20 50 55 42 4c 49 43 20 4b 45 -BEGIN PUBLIC KE
    32. +0x0000000002d3c4a0 59 2d 2d 2d 2d 2d 00 4d 49 49 42 49 6a 41 4e 42 Y-----.MIIBIjANB
    33. +0x0000000002d3c4b0 67 6b 71 68 6b 69 47 39 77 30 42 41 51 45 46 41 gkqhkiG9w0BAQEFA
    34. ...
    35. ...
    36. ...
    37. After:
    38. +0x0000000002d3c480 73 0a 25 73 0a 25 73 0a 25 73 0a 00 2d 2d 2d 2d s.%s.%s.%s..----
    39. +0x0000000002d3c490 2d 42 45 47 49 4e 20 50 55 42 4c 49 43 20 4b 45 -BEGIN PUBLIC KE
    40. +0x0000000002d3c4a0 59 2d 2d 2d 2d 2d 00 4d 49 49 42 49 6a 41 4e 42 Y-----.MIIBIjANB
    41. +0x0000000002d3c4b0 67 6b 71 68 6b 69 47 39 77 30 42 41 51 45 46 41 gkqhkiG9w0BAQEFA
    42. ...
    43. ...
    44. ...
    45. ****************************
    46. * Begin PatchSolution2 *
    47. ****************************
    48. @+0x02ed1bc8
    49. Previous:
    50. +0x0000000002ed1bc0 ee 00 00 00 17 00 00 00 42 49 6a 57 79 6f 65 52 ........BIjWyoeR
    51. +0x0000000002ed1bd0 52 30 4e 42 67 6b 71 6e 44 5a 57 78 43 67 4b 43 R0NBgkqnDZWxCgKC
    52. +0x0000000002ed1be0 45 41 77 31 64 71 46 33 44 54 76 4f 42 39 31 5a EAw1dqF3DTvOB91Z
    53. ...
    54. ...
    55. ...
    56. After:
    57. +0x0000000002ed1bc0 ee 00 00 00 17 00 00 00 4d 49 49 42 49 6a 41 4e ........MIIBIjAN
    58. +0x0000000002ed1bd0 42 67 6b 71 68 6b 69 47 39 77 30 42 41 51 45 46 BgkqhkiG9w0BAQEF
    59. +0x0000000002ed1be0 41 41 4f 43 41 51 38 41 4d 49 49 42 43 67 4b 43 AAOCAQ8AMIIBCgKC
    60. ...
    61. ...
    62. ...
    63. @+0x00f650a2
    64. Previous:
    65. +0x0000000000f650a0 0f 0b 55 48 89 e5 41 57 41 56 53 48 83 ec 48 c6 ..UH..AWAVSH..H.
    66. +0x0000000000f650b0 45 e5 01 31 c0 88 45 e6 48 89 fb 88 45 e7 0f 57 E..1..E.H...E..W
    67. +0x0000000000f650c0 c0 48 8d 7d a0 0f 29 07 48 c7 47 10 00 00 00 00 .H.}..).H.G.....
    68. +0x0000000000f650d0 48 8d 35 ef 74 e0 01 e8 68 ed 6a 01 e8 19 e8 00 H.5.t...h.j.....
    69. +0x0000000000f650e0 00 88 45 e5 e8 77 e8 00 00 88 45 e6 e8 d5 e8 00 ..E..w....E.....
    70. +0x0000000000f650f0 00 88 45 e7 f6 45 e7 01 0f 85 35 0c 00 00 f6 45 ..E..E....5....E
    71. After:
    72. +0x0000000000f650a0 0f 0b 55 48 89 e5 41 57 41 56 53 48 83 ec 48 48 ..UH..AWAVSH..HH
    73. +0x0000000000f650b0 89 fb 48 31 c0 48 89 04 24 48 89 44 24 08 48 89 ..H1.H..$H.D$.H.
    74. +0x0000000000f650c0 44 24 10 48 8d 3c 24 48 8d 35 fa ca f6 01 e8 71 D$.H.<$H.5.....q
    75. +0x0000000000f650d0 ed 6a 01 48 8b 04 24 48 89 03 48 8b 44 24 08 48 .j.H..$H..H.D$.H
    76. +0x0000000000f650e0 89 43 08 48 8b 44 24 10 48 89 43 10 48 89 d8 48 .C.H.D$.H.C.H..H
    77. +0x0000000000f650f0 83 c4 48 5b 41 5e 41 5f 5d c3 35 0c 00 00 f6 45 ..H[A^A_].5....E
    78. MESSAGE: PatchSolution0 has been applied.
    79. MESSAGE: PatchSolution2 has been applied.
    80. MESSAGE: Patch has been done successfully. Have fun and enjoy~

    FOR Navicat Premium version < 12.0.24 ONLY:

    navicat-patcher will abort and won’t modify target file.

    You should use openssl to generate RegPrivateKey.pem and rpk file.

    1. $ openssl genrsa -out RegPrivateKey.pem 2048
    2. $ openssl rsa -in RegPrivateKey.pem -pubout -out rpk

    Then replace

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

    by rpk you just generated.

  5. Generate a self-signed code-sign certificate and always trust it.

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

    1. $ 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:

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

    1. Usage:
    2. 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:

    1. ./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.

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

    1. Your name: DoubleLabyrinth
    2. Your organization: DoubleLabyrinth
    3. 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.

    1. Your name: DoubleLabyrinth
    2. Your organization: DoubleLabyrinth
    3. Input request code (in Base64), input empty line to end:
    4. q/cv0bkTrG1YDkS+fajFdi85bwNVBD/lc5jBYJPOSS5bfl4DdtnfXo+RRxdMjJtEcYQnvLPi2LF0
    5. OB464brX9dqU29/O+A3qstSyhBq5//iezxfu2Maqca4y0rVtZgQSpEnZ0lBNlqKXv7CuTUYCS1pm
    6. tEPgwJysQTMUZf7tu5MR0cQ+hY/AlyQ9iKrQAMhHklqZslaisi8VsnoIqH56vfTyyUwUQXrFNc41
    7. qG5zZNsXu/NI79JOo7qTvcFHQT/k5cTadbKTxY+9c5eh+nF3JR7zEa2BDDfdQRLNvy4DTSyxdYXd
    8. sAk/YPU+JdWI+8ELaa0SuAuNzr5fEkD6NDSG2A==
    9. Request Info:
    10. {"K":"NAVADHCNP2OIDV46", "DI":"Y2eJk9vrvfGudPG7Mbdn", "P":"MAC"}
    11. Response Info:
    12. {"K":"NAVADHCNP2OIDV46","DI":"Y2eJk9vrvfGudPG7Mbdn","N":"DoubleLabyrinth","O":"DoubleLabyrinth","T":1537630251}
    13. License:
    14. oyoMYr9cfVGXeT7F1dqBwHsB/vvWj6SUL6aR+Kzb0lm5IyEj1CgovuSq+qMzFfx+
    15. oHMFaGKFg6viOY2hfJcrO2Vdq0hXZS/B/Ie3jBS2Ov37v8e3ufVajaH+wLkmEpLd
    16. xppCVLkDQjIHYR2IPz5s/L/RuWqDpEY4TPmGFF6q+xQMnqQA3vXPyG+JYMARXLru
    17. Y1gCDLN30v3DpyOeqKmFjUqiHK5h8s0NYiH2OpMyaCpi12JsF23miP89ldQp3+SJ
    18. 8moo0cNGy7sFp2gX9ol2zVoo7qxfYlLl03f7CALJ6im0sx4yBsmlzFDdvpQUbXk8
    19. 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.