From 4d37f724eced5d9dc39951383d0883b1b6c5c960 Mon Sep 17 00:00:00 2001 From: Paolo Date: Wed, 8 Aug 2018 04:27:44 +0200 Subject: [PATCH 1/2] Update NavicatKeygen.hpp Added Support for New Navicat MongoDB --- navicat-keygen/NavicatKeygen.hpp | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/navicat-keygen/NavicatKeygen.hpp b/navicat-keygen/NavicatKeygen.hpp index 2e7bcb4..42ccc5b 100644 --- a/navicat-keygen/NavicatKeygen.hpp +++ b/navicat-keygen/NavicatKeygen.hpp @@ -28,7 +28,8 @@ public: Oracle, SQLServer, SQLite, - MariaDB + MariaDB, + MongoDB }; private: std::random_device rand_dev; @@ -113,6 +114,9 @@ private: case Product::MariaDB: data[7] = 0x7C; break; + case Product::MongoDB: + data[7] = 0x80; + break; default: break; } @@ -190,4 +194,4 @@ public: return Key; } -}; \ No newline at end of file +}; From 294395fc754f92752449c3fd1a27f45544817c84 Mon Sep 17 00:00:00 2001 From: Paolo Date: Wed, 8 Aug 2018 04:32:55 +0200 Subject: [PATCH 2/2] MongoDB Support 2# Added Support for MongoDB --- navicat-keygen/_tmain.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/navicat-keygen/_tmain.cpp b/navicat-keygen/_tmain.cpp index 23bd780..2773642 100644 --- a/navicat-keygen/_tmain.cpp +++ b/navicat-keygen/_tmain.cpp @@ -158,6 +158,7 @@ bool GatherInformation(NavicatKeygen::Product& product, << "5. SQLServer" << std::endl << "6. SQLite" << std::endl << "7. MariaDB" << std::endl + << "8. MongoDB" << std::endl << std::endl; while (true) { @@ -193,6 +194,9 @@ bool GatherInformation(NavicatKeygen::Product& product, case 7: product = NavicatKeygen::Product::MariaDB; break; + case 8: + product = NavicatKeygen::Product::MongoDB; + break; default: throw std::invalid_argument("Invalid index"); } @@ -449,4 +453,4 @@ ON_tmain_ERROR: if (cipher) delete cipher; return 0; -} \ No newline at end of file +}