4 Commits
Author SHA1 Message Date
Double Sine 59ff9a0b24 Merge branch 'windows' of https://github.com/DoubleLabyrinth/navicat-keygen into windows 2018-09-12 18:19:11 +08:00
Double Sine a9d7f1004d Fix bug reported in #135 2018-09-12 18:18:35 +08:00
Double SineandGitHub bee41465cf Merge pull request #133 from garboy/windows
增加Release包的下载页面地址
2018-09-11 14:16:49 +08:00
zhangcheng 0e9a00b77c 增加Release包的下载页面地址 2018-09-10 15:07:55 +08:00
3 changed files with 15 additions and 5 deletions
+1 -1
View File
@@ -252,7 +252,7 @@
5. Input __Activation Code__, then offline activation is done.
## 4. How to use
1. Download the latest release.
1. Download the latest release [from here](https://github.com/DoubleLabyrinth/navicat-keygen/releases).
2. Replace __Navicat Activation Public Key__ in `navicat.exe` or `libcc.dll`.
+1 -1
View File
@@ -250,7 +250,7 @@
5. 在Navicat软件中填入 __激活码__ 即可完成离线激活。
## 4. 如何使用这个Keygen
1. 下载最新的release。
1. [从这里](https://github.com/DoubleLabyrinth/navicat-keygen/releases)下载最新的release。
2. 替换掉`navicat.exe`或`libcc.dll`里的 __Navicat激活公钥__。
+13 -3
View File
@@ -114,10 +114,18 @@ int _tmain(int argc, TCHAR* argv[]) {
goto ON_tmain_ERROR;
}
} else {
_tprintf_s(TEXT("Generating new RSA private key, it may take long time.\n"));
do {
cipher->GenerateKey(2048);
} while (patcher::Solution0::CheckKey(cipher) && patcher::Solution1::CheckKey(cipher));
cipher->ExportKeyToFile<RSACipher::KeyType::PrivateKey, RSACipher::KeyFormat::PEM>("RegPrivateKey.pem");
} while (!patcher::Solution0::CheckKey(cipher) || !patcher::Solution1::CheckKey(cipher)); // re-generate RSA key if one of CheckKey return FALSE
if (!cipher->ExportKeyToFile<RSACipher::KeyType::PrivateKey, RSACipher::KeyFormat::NotSpecified>("RegPrivateKey.pem")) {
_tprintf_s(TEXT("@%s LINE: %u\n"), TEXT(__FUNCTION__), __LINE__);
_tprintf_s(TEXT("ERROR: Failed to save RSA private key.\n"));
goto ON_tmain_ERROR;
}
_tprintf_s(TEXT("New RSA private key has been saved to RegPrivateKey.pem.\n"));
}
@@ -141,7 +149,9 @@ int _tmain(int argc, TCHAR* argv[]) {
if (!patcher::Solution0::Do(cipher))
goto ON_tmain_ERROR;
_tprintf_s(TEXT("RSA public key has been replaced by\n"));
printf_s("%s\n", cipher->ExportKeyString<RSACipher::KeyType::PublicKey, RSACipher::KeyFormat::PEM>().c_str());
_tprintf_s(TEXT("Solution0 has been done successfully.\n"));
_tprintf_s(TEXT("\n"));