Skip to content

Commit

Permalink
Add support of a new token format (#44)
Browse files Browse the repository at this point in the history
* Add support of a new token format
  • Loading branch information
andro2157 authored May 10, 2022
1 parent 5939ac1 commit 25b347a
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion DiscordTokenProtector/Discord.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -548,7 +548,7 @@ secure_string Discord::getMemoryToken(bool verify) {
currentString.clear();
else {
static const std::vector<std::regex> 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})")
};

Expand Down
2 changes: 1 addition & 1 deletion DiscordTokenProtector/Includes.h
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down
3 changes: 3 additions & 0 deletions Update/changelog.txt
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 1 addition & 1 deletion Update/version.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
dev-9
dev-9-fix

0 comments on commit 25b347a

Please sign in to comment.