0%

Ubuntu20 下安装并破解navicat

Ubuntu20 下安装并破解navicat

下载

先去官网下载http://www.navicat.com.cn/download/navicat-for-mysql

1
2
3
wget http://www.navicat.com.cn/download/direct-download?product=navicat15-mysql-cs.AppImage&location=1
sudo chmod +x navicat15-mysql-cs.AppImage
./navicat15-mysql-cs.AppImage

你会得到一个AppImage文件。例如 navicat15-mysql-cs.AppImage

破解

提取文件

首先把文件提取出来

1
2
3
4
5
mkdir ~/Desktop/navicat15-premium-en
sudo mount -o loop ~/Desktop/navicat15-premium-en.AppImage ~/Desktop/navicat15-premium-en
cp -r ~/Desktop/navicat15-premium-en ~/Desktop/navicat15-premium-en-patched
sudo umount ~/Desktop/navicat15-premium-en
rm -rf ~/Desktop/navicat15-premium-en

还有一种办法,右键点击appimage文件,打开方式选择磁盘映像挂载器
然后将里面的所有文件复制到一个文件夹下

编译patcher和keygen

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#install capstone
sudo apt-get install libcapstone-dev

# install keystone
sudo apt-get install cmake
git clone https://github.com/keystone-engine/keystone.git
cd keystone
mkdir build
cd build
../make-share.sh
sudo make install
sudo ldconfig

# install rapidjson
sudo apt-get install rapidjson-dev

# install openssl
sudo apt-get install openssl

如果在sudo ldconfig时报错不是符号连接的问题
在报错的目录下重新会发现两个文件 libcudnn.so.7.8.4libcudnn.so.7
重新链接以下即可

1
ln -sf /usr/local/cuda-8.0/lib64/libcudnn.so.7.8.4 /usr/local/cuda-8.0/lib64/libcudnn.so.7

解决好后重新运行sudo ldconfig 即可

编译

1
2
git clone -b linux --single-branch https://gitee.com/andisolo/navicat-keygen.git
make all

给指定的目录打补丁

1
./bin/navicat-patcher ~/Desktop/navicat15-premium-en-patched

下面是一份输出样例:

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
**********************************************************
* Navicat Patcher (Linux) by @DoubleLabyrinth *
* Version: 1.0 *
**********************************************************

Press ENTER to continue or Ctrl + C to abort.

[+] Try to open libcc.so ... Ok!

[+] PatchSolution0 ...... Ready to apply
RefSegment = 1
MachineCodeRva = 0x00000000008e03b0
PatchMarkOffset = +0x00000000013bac60

[*] Generating new RSA private key, it may take a long time...
[*] Your RSA private key:
-----BEGIN RSA PRIVATE KEY-----
MIIEowIBAAKCAQEArYVbjGH16x5rOQS3fP3bvn+qLPoVyPMEXJfqYcTZI73b5xuc
s9+o0wV1xD+yaB6OFT/+R56rIVfZ5KC3ztnwGa+tl6iKKOt1wElagzC7FKZsV3GR
Jc5tdutF3ZjyeOOo5+VoUaFj/6lDG3Q4RoqHYOaJgw63afyIGk/08HnDVFuWZeZt
MdR8uGTQAhXrKnqJLSOdHICvdaMQohEzn7NOxJaTQAt/RwAvh1dgaPNNz9UFlSoO
j88ia9JXLJspPJry3ORVpHSGqc7ZHUM99zuEg7OxtTBKZ0SYzXp6LqNVjbmfSj/Z
zTlcl5kYQ6R87cZand7QPaTdbdXW5BbnXMNDOwIDAQABAoIBAEUjitu/uJ3ra+u3
LmlWOTWJZsQvDXkZI5bFTTWRmrd8Ed/fB6xAJOOYHFmKy8piylg7PFVLKoLJn19S
joqUGfASKMfx9sLhNvTcBX2acCCFQ0wAS0ZWHxWwHxFxvMNgas+jf9JuzQp0ZfHN
eBLbZZ+9m/MlbP2FCrH5Q+6BhcvZXnLCcoygRrvdrvIfKDl2P1KpK+RL21OPaLTE
sK43lb8Wkux3D3N6WTmDdvTvwN6nxKVcKA/eXtNPBJzlT9b6TiRoFsxlqHgs2VGT
09aSQdzvd90IG3QFiGx72FJI+oxcPDa0W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5xucs9+o0wV1xD+yaB6OFT/+R56rIVfZ5KC3ztnw
Ga+tl6iKKOt1wElagzC7FKZsV3GRJc5tdutF3ZjyeOOo5+VoUaFj/6lDG3Q4RoqH
YOaJgw63afyIGk/08HnDVFuWZeZtMdR8uGTQAhXrKnqJLSOdHICvdaMQohEzn7NO
xJaTQAt/RwAvh1dgaPNNz9UFlSoOj88ia9JXLJspPJry3ORVpHSGqc7ZHUM99zuE
g7OxtTBKZ0SYzXp6LqNVjbmfSj/ZzTlcl5kYQ6R87cZand7QPaTdbdXW5BbnXMND
OwIDAQAB
-----END PUBLIC KEY-----

*******************************************************
* PatchSolution0 *
*******************************************************
[*] Previous:
+0x0000000000000070 01 00 00 00 05 00 00 00 ........
+0x0000000000000080 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
+0x0000000000000090 00 00 00 00 00 00 00 00 60 ac 3b 01 00 00 00 00 ........`.;.....
+0x00000000000000a0 60 ac 3b 01 00 00 00 00 00 10 00 00 00 00 00 00 `.;.............
[*] After:
+0x0000000000000070 01 00 00 00 05 00 00 00 ........
+0x0000000000000080 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
+0x0000000000000090 00 00 00 00 00 00 00 00 f0 ad 3b 01 00 00 00 00 ..........;.....
+0x00000000000000a0 f0 ad 3b 01 00 00 00 00 00 10 00 00 00 00 00 00 ..;.............

[*] Previous:
+0x00000000013bac60 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
+0x00000000013bac70 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
+0x00000000013bac80 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
+0x00000000013bac90 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
+0x00000000013baca0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
+0x00000000013bacb0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
+0x00000000013bacc0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
+0x00000000013bacd0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
+0x00000000013bace0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
+0x00000000013bacf0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
+0x00000000013bad00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
+0x00000000013bad10 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
+0x00000000013bad20 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
+0x00000000013bad30 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
+0x00000000013bad40 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
+0x00000000013bad50 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
+0x00000000013bad60 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
+0x00000000013bad70 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
+0x00000000013bad80 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
+0x00000000013bad90 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
+0x00000000013bada0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
+0x00000000013badb0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
+0x00000000013badc0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
+0x00000000013badd0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
+0x00000000013bade0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
[*] After:
+0x00000000013bac60 ef be ad de 4d 49 49 42 49 6a 41 4e 42 67 6b 71 ....MIIBIjANBgkq
+0x00000000013bac70 68 6b 69 47 39 77 30 42 41 51 45 46 41 41 4f 43 hkiG9w0BAQEFAAOC
+0x00000000013bac80 41 51 38 41 4d 49 49 42 43 67 4b 43 41 51 45 41 AQ8AMIIBCgKCAQEA
+0x00000000013bac90 72 59 56 62 6a 47 48 31 36 78 35 72 4f 51 53 33 rYVbjGH16x5rOQS3
+0x00000000013baca0 66 50 33 62 76 6e 2b 71 4c 50 6f 56 79 50 4d 45 fP3bvn+qLPoVyPME
+0x00000000013bacb0 58 4a 66 71 59 63 54 5a 49 37 33 62 35 78 75 63 XJfqYcTZI73b5xuc
+0x00000000013bacc0 73 39 2b 6f 30 77 56 31 78 44 2b 79 61 42 36 4f s9+o0wV1xD+yaB6O
+0x00000000013bacd0 46 54 2f 2b 52 35 36 72 49 56 66 5a 35 4b 43 33 FT/+R56rIVfZ5KC3
+0x00000000013bace0 7a 74 6e 77 47 61 2b 74 6c 36 69 4b 4b 4f 74 31 ztnwGa+tl6iKKOt1
+0x00000000013bacf0 77 45 6c 61 67 7a 43 37 46 4b 5a 73 56 33 47 52 wElagzC7FKZsV3GR
+0x00000000013bad00 4a 63 35 74 64 75 74 46 33 5a 6a 79 65 4f 4f 6f Jc5tdutF3ZjyeOOo
+0x00000000013bad10 35 2b 56 6f 55 61 46 6a 2f 36 6c 44 47 33 51 34 5+VoUaFj/6lDG3Q4
+0x00000000013bad20 52 6f 71 48 59 4f 61 4a 67 77 36 33 61 66 79 49 RoqHYOaJgw63afyI
+0x00000000013bad30 47 6b 2f 30 38 48 6e 44 56 46 75 57 5a 65 5a 74 Gk/08HnDVFuWZeZt
+0x00000000013bad40 4d 64 52 38 75 47 54 51 41 68 58 72 4b 6e 71 4a MdR8uGTQAhXrKnqJ
+0x00000000013bad50 4c 53 4f 64 48 49 43 76 64 61 4d 51 6f 68 45 7a LSOdHICvdaMQohEz
+0x00000000013bad60 6e 37 4e 4f 78 4a 61 54 51 41 74 2f 52 77 41 76 n7NOxJaTQAt/RwAv
+0x00000000013bad70 68 31 64 67 61 50 4e 4e 7a 39 55 46 6c 53 6f 4f h1dgaPNNz9UFlSoO
+0x00000000013bad80 6a 38 38 69 61 39 4a 58 4c 4a 73 70 50 4a 72 79 j88ia9JXLJspPJry
+0x00000000013bad90 33 4f 52 56 70 48 53 47 71 63 37 5a 48 55 4d 39 3ORVpHSGqc7ZHUM9
+0x00000000013bada0 39 7a 75 45 67 37 4f 78 74 54 42 4b 5a 30 53 59 9zuEg7OxtTBKZ0SY
+0x00000000013badb0 7a 58 70 36 4c 71 4e 56 6a 62 6d 66 53 6a 2f 5a zXp6LqNVjbmfSj/Z
+0x00000000013badc0 7a 54 6c 63 6c 35 6b 59 51 36 52 38 37 63 5a 61 zTlcl5kYQ6R87cZa
+0x00000000013badd0 6e 64 37 51 50 61 54 64 62 64 58 57 35 42 62 6e nd7QPaTdbdXW5Bbn
+0x00000000013bade0 58 4d 4e 44 4f 77 49 44 41 51 41 42 ad de ef be XMNDOwIDAQAB....

[*] Previous:
+0x00000000008e03b0 44 0f b6 24 18 48 8b 44 24 28 8b 50 f8 85 d2 79 D..$.H.D$(.P...y
+0x00000000008e03c0 6f o
[*] After:
+0x00000000008e03b0 45 31 e4 48 8d 05 aa a8 ad 00 90 90 90 90 90 90 E1.H............
+0x00000000008e03c0 90 .

[*] New RSA-2048 private key has been saved to
/media/lovemefan/f8eebbbc-0053-453b-b136-8a41e2b00c62/lovemefan/下载/keystone/build/navicat-keygen/bin/RegPrivateKey.pem

*******************************************************
* PATCH HAS BEEN DONE SUCCESSFULLY! *
* HAVE FUN AND ENJOY~ *
*******************************************************

生成序列号和激活码

1
./bin/navicat-keygen --text ./RegPrivateKey.pem

运行上述命令会生成一段序列码

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
./navicat-keygen --text ./RegPrivateKey.pem
**********************************************************
* Navicat Keygen (Linux) by @DoubleLabyrinth *
* Version: 1.0 *
**********************************************************

[*] Select Navicat product:
0. DataModeler
1. Premium
2. MySQL
3. PostgreSQL
4. Oracle
5. SQLServer
6. SQLite
7. MariaDB
8. MongoDB
9. ReportViewer

(Input index)> 2

[*] Select product 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)> 15

[*] Serial number:
NAVN-TFFN-NL3I-HJZO

[*] Your name: lovemefan
[*] Your organization: nchu

[*] Input request code in Base64: (Double press ENTER to end)

打开软件,断开网络,点击注册,将请求码输入刚刚的命令行中,最终会得到一个激活码,将激活码复制到软件中激活即可