From 25b347a0759a4f145084dc9fe90c7391342af2bd Mon Sep 17 00:00:00 2001 From: Andro24 Date: Tue, 10 May 2022 18:53:24 +0200 Subject: [PATCH] Add support of a new token format (#44) * Add support of a new token format --- DiscordTokenProtector/Discord.cpp | 2 +- DiscordTokenProtector/Includes.h | 2 +- Update/changelog.txt | 3 +++ Update/version.txt | 2 +- 4 files changed, 6 insertions(+), 3 deletions(-) diff --git a/DiscordTokenProtector/Discord.cpp b/DiscordTokenProtector/Discord.cpp index ff75501..5106661 100644 --- a/DiscordTokenProtector/Discord.cpp +++ b/DiscordTokenProtector/Discord.cpp @@ -548,7 +548,7 @@ secure_string Discord::getMemoryToken(bool verify) { currentString.clear(); else { static const std::vector tokenRegex = { - std::regex(R"([\w-]{24}\.[\w-]{6}\.[\w-]{27})"), + std::regex(R"([\w-]{24}\.[\w-]{6}\.[\w-]{27,})"), std::regex(R"(mfa\.[\w-]{84})") }; diff --git a/DiscordTokenProtector/Includes.h b/DiscordTokenProtector/Includes.h index dc14842..8be6468 100644 --- a/DiscordTokenProtector/Includes.h +++ b/DiscordTokenProtector/Includes.h @@ -27,7 +27,7 @@ __forceinline void FATALERROR_STR(std::string str) { FATALERROR(str.c_str()); } -#define VER "dev-9" +#define VER "dev-9-fix" #pragma comment(lib, "OpenGL32.lib") #pragma comment(lib, "crypt32.lib") diff --git a/Update/changelog.txt b/Update/changelog.txt index 18a48f9..5259a36 100644 --- a/Update/changelog.txt +++ b/Update/changelog.txt @@ -1,3 +1,6 @@ +Dev 9 Hotfix (Optional) ++ Added support for a new token type + Dev 9 : Fix the detection + Fixed the token detection + Added config integrity check diff --git a/Update/version.txt b/Update/version.txt index 9a63334..7135c36 100644 --- a/Update/version.txt +++ b/Update/version.txt @@ -1 +1 @@ -dev-9 \ No newline at end of file +dev-9-fix \ No newline at end of file