Giter Site home page Giter Site logo

andro2157 / discordtokenprotector Goto Github PK

View Code? Open in Web Editor NEW
265.0 7.0 28.0 5.56 MB

Protect your Discord token from malicious grabbers!

License: GNU General Public License v3.0

C++ 99.60% C 0.40%
discord grabber token protection discord-token-protector anti-token-grabber

discordtokenprotector's Introduction

Discord Token Protector

Protect your Discord token from malicious grabbers!

✔️ Works with the latest version of Discord

Main Workflow

This project is still under development! You might face some instability issues!
This is in NO way a perfect solution against Discord token grabbers. But this will protect you against most token grabbers:

  • (Most common) LevelDB reading (from the beginning)
  • (Less common) Script injection / Discord module tampering (from dev-6)
  • (Rare) Memory reading (from dev-8)

Any targeted attack against DiscordTokenProtector can bypass this protection!

⚠️ Disclaimer

DTP is not affiliated with Discord.
DTP is in NO way responsible for what can happen on your Discord account.
Chances of getting terminated using DTP are very low, but please keep in mind that using third-party software is against Discord's TOS.

Features

✅ Protect your self from most token grabbers

✅ Securely store your Discord token in an encrypted file (YubiKeys* are supported)

✅ Switch easily between multiple accounts

✅ Change your Discord password in one-click

✅ Check the integrity of your Discord installation on launch (BetterDiscord is supported)

✅ Check scripts for known malwares (eg AnarchyGrabber3)

✅ Protect the Discord process from memory reading / code injection

✅ Protect DTP from tampering attacks (protects the process/config from unauthorized users)

*Except from YubiKey NEO

Installation / Update

Download the latest release HERE

What does it do?

Here's a little diagram of how it works:

It removes the Local Storage and Session Storage directories from %appdata%\Discord. These directories can store your Discord token (used to authenticate you). Most of the grabbers look for your token there. Therefore, by removing these directories you can avoid getting grabbed.
Your Discord token is stored in a secure container encrypted with AES-256.

Some stuff to consider

  • By removing these directories, Discord cannot store any local settings. Meaning that all of your client-specific settings will be removed each time you start Discord. (eg. keybinds, default audio device, ...)
    BUT, all of the server-side settings are still saved. (users descriptions, language, dark mode, ...)

  • Discord canary might not work properly. These builds don't support handoff login.

  • Again, this is a project in development, and you might face some instabilities (crash, discord not launching, ...). Please report these issues on this repo.

  • Some anti-virus flags DiscordTokenProtector because it can start with Windows and it can inject payload into Discord. These activities are suspicious for AVs. I provided builds without the auto-startup, it reduces the amount of false-flag.

  • DiscordTokenProtector doesn't seem to work well on Windows 7

  • Integrity check hashes are uploaded manually, therefore you might get an error message saying that it's unable to get the hashes. Please open a ticket if it says so!

Compilation

To compile, it's recommended to use vcpkg for the libraries

Step 1: Installing vcpkg

You can skip this step if you already have it

git clone https://github.com/microsoft/vcpkg
cd vcpkg
bootstrap-vcpkg.bat -disableMetrics

Start a new cmd as admin in the vcpkg folder and type:

vcpkg integrate install

Step 2: Installing the libraries

Copy and paste this (in the vcpkg directory if you don't have it in the PATH)

vcpkg install imgui:x86-windows-static imgui[glfw-binding]:x86-windows-static imgui[opengl3-binding]:x86-windows-static imgui[glfw-binding]:x86-windows-static imgui[win32-binding]:x86-windows-static nlohmann-json:x86-windows-static cryptopp:x86-windows-static curl[openssl]:x86-windows-static polyhook2:x86-windows-static gl3w:x86-windows-static

This process might take some time as it's building these libraries (for the static link)

Step 3: Cloning DiscordTokenProtector

git clone https://github.com/andro2157/DiscordTokenProtector

Step 4: Open the project in VS

Open DiscordTokenProtector.sln

Everything should be setup, you just need to compile it with the PROD or PROD-NOSTARTUP config in x86.

(Optional) Step 5: Compile with YubiKey support

  • Download the latest yubico-piv-tool source code here: https://developers.yubico.com/yubico-piv-tool/Releases/
    Don't clone from the repo, it won't compile on Windows!
  • Follow the instructions here to create the project.
  • Open the generated .sln file in Visual Studio.
  • Open the properties of the ykpiv project.
  • Go to C++ > Code Generation, and change the Runtime Library from Multi-threaded DLL (/MD) to Multi-threaded (/MT)
  • Compile
  • By default, the PROD-YUBI(-NOSTARTUP) config will look for the library and the headers in C:\Program Files (x86)\Yubico\Yubico PIV Tool\ (default installation path of the PIV tool). You can move them here or change the path in the DTP project properties.

Note : C++17 is required to compile.

Credit

Donation

If you would like to support this project by donating, you can do it through:

  • Brave Browser tips
  • Crypto (ETH / BSC) 0x6997878c19ab249AEbc523635f09B95b793AfA5D

discordtokenprotector's People

Contributors

andro2157 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

discordtokenprotector's Issues

Feature

I don't know if its possible or not but if it is, then can u make a option so that it would open when u open discord automatically and close when we close discord.

Detection

  1. Detection doesn't work

image
3. 16:35:48.014 [WARNING] Failed to find Discord in C:\Users\Saga\AppData\Local\DiscordCanary\ : directory_iterator::directory_iterator: The system cannot find the path specified.: "C:\Users\x\AppData\Local\DiscordCanary"
16:35:48.017 [ERROR] Failed to load config : invalid JSON. [json.exception.parse_error.101] parse error at line 1, column 1: syntax error while parsing value - unexpected end of input; expected '[', '{', or a literal
16:35:48.017 [WARNING] Using default config!
16:36:19.255 [WARNING] Unable to get the secure encryption type : the file is too short.
16:36:19.318 [WARNING] Unable to get the secure encryption type : the file is too short.
16:36:19.364 [WARNING] Unable to get the secure encryption type : the file is too short.
16:36:19.412 [WARNING] Unable to get the secure encryption type : the file is too short.
16:36:19.460 [WARNING] Unable to get the secure encryption type : the file is too short.
16:36:19.508 [WARNING] Unable to get the secure encryption type : the file is too short.
16:36:19.540 [WARNING] Unable to get the secure encryption type : the file is too short.
16:36:19.572 [WARNING] Unable to get the secure encryption type : the file is too short.
16:36:19.619 [WARNING] Unable to get the secure encryption type : the file is too short.
16:36:19.683 [WARNING] Unable to get the secure encryption type : the file is too short.
16:36:19.735 [WARNING] Unable to get the secure encryption type : the file is too short.
16:36:19.797 [WARNING] Unable to get the secure encryption type : the file is too short.
16:36:19.844 [WARNING] Unable to get the secure encryption type : the file is too short.
16:36:19.891 [WARNING] Unable to get the secure encryption type : the file is too short.
16:36:19.922 [WARNING] Unable to get the secure encryption type : the file is too short.
16:36:19.985 [WARNING] Unable to get the secure encryption type : the file is too short.
16:36:20.047 [WARNING] Unable to get the secure encryption type : the file is too short.
16:36:20.094 [WARNING] Unable to get the secure encryption type : the file is too short.
16:36:20.141 [WARNING] Unable to get the secure encryption type : the file is too short.
16:36:20.203 [WARNING] Unable to get the secure encryption type : the file is too short.
16:36:20.266 [WARNING] Unable to get the secure encryption type : the file is too short.
16:36:20.313 [WARNING] Unable to get the secure encryption type : the file is too short.
16:36:20.360 [WARNING] Unable to get the secure encryption type : the file is too short.
16:36:20.776 [WARNING] Unable to get the secure encryption type : the file is too short.
16:36:20.808 [WARNING] Unable to get the secure encryption type : the file is too short.
16:36:20.839 [WARNING] Unable to get the secure encryption type : the file is too short.
16:36:20.901 [WARNING] Unable to get the secure encryption type : the file is too short.
16:36:20.965 [WARNING] Unable to get the secure encryption type : the file is too short.
16:36:21.013 [WARNING] Unable to get the secure encryption type : the file is too short.
16:36:21.061 [WARNING] Unable to get the secure encryption type : the file is too short.
16:36:21.109 [WARNING] Unable to get the secure encryption type : the file is too short.
16:36:21.156 [WARNING] Unable to get the secure encryption type : the file is too short.
16:36:21.187 [WARNING] Unable to get the secure encryption type : the file is too short.
16:36:21.235 [WARNING] Unable to get the secure encryption type : the file is too short.
16:36:21.283 [WARNING] Unable to get the secure encryption type : the file is too short.
16:36:21.331 [WARNING] Unable to get the secure encryption type : the file is too short.
16:36:21.379 [WARNING] Unable to get the secure encryption type : the file is too short.
16:36:21.663 [WARNING] Unable to get the secure encryption type : the file is too short.
16:36:21.943 [WARNING] Unable to get the secure encryption type : the file is too short.
16:36:22.235 [WARNING] Unable to get the secure encryption type : the file is too short.
16:36:22.535 [WARNING] Unable to get the secure encryption type : the file is too short.
16:36:22.836 [WARNING] Unable to get the secure encryption type : the file is too short.
16:36:23.136 [WARNING] Unable to get the secure encryption type : the file is too short.
16:36:23.429 [WARNING] Unable to get the secure encryption type : the file is too short.
16:36:23.704 [WARNING] Unable to get the secure encryption type : the file is too short.
16:36:24.000 [WARNING] Unable to get the secure encryption type : the file is too short.
16:36:24.282 [WARNING] Unable to get the secure encryption type : the file is too short.
16:36:24.569 [WARNING] Unable to get the secure encryption type : the file is too short.
16:36:24.867 [WARNING] Unable to get the secure encryption type : the file is too short.
16:36:25.138 [WARNING] Unable to get the secure encryption type : the file is too short.
16:36:25.435 [WARNING] Unable to get the secure encryption type : the file is too short.
16:36:25.722 [WARNING] Unable to get the secure encryption type : the file is too short.
16:36:26.020 [WARNING] Unable to get the secure encryption type : the file is too short.
16:36:26.317 [WARNING] Unable to get the secure encryption type : the file is too short.
16:36:26.602 [WARNING] Unable to get the secure encryption type : the file is too short.
16:36:26.898 [WARNING] Unable to get the secure encryption type : the file is too short.
16:36:26.953 [WARNING] Unable to get the secure encryption type : the file is too short.
16:36:27.000 [WARNING] Unable to get the secure encryption type : the file is too short.
16:36:27.046 [WARNING] Unable to get the secure encryption type : the file is too short.
16:36:27.093 [WARNING] Unable to get the secure encryption type : the file is too short.
16:36:27.125 [WARNING] Unable to get the secure encryption type : the file is too short.
16:36:27.156 [WARNING] Unable to get the secure encryption type : the file is too short.
16:36:27.203 [WARNING] Unable to get the secure encryption type : the file is too short.
16:36:27.265 [WARNING] Unable to get the secure encryption type : the file is too short.
16:36:27.312 [WARNING] Unable to get the secure encryption type : the file is too short.
16:36:27.359 [WARNING] Unable to get the secure encryption type : the file is too short.
16:36:27.406 [WARNING] Unable to get the secure encryption type : the file is too short.
16:36:27.468 [WARNING] Unable to get the secure encryption type : the file is too short.
16:36:27.531 [WARNING] Unable to get the secure encryption type : the file is too short.
16:36:27.578 [WARNING] Unable to get the secure encryption type : the file is too short.
16:36:27.636 [WARNING] Unable to get the secure encryption type : the file is too short.
16:36:27.683 [WARNING] Unable to get the secure encryption type : the file is too short.
16:36:27.730 [WARNING] Unable to get the secure encryption type : the file is too short.
16:36:27.777 [WARNING] Unable to get the secure encryption type : the file is too short.
16:36:27.824 [WARNING] Unable to get the secure encryption type : the file is too short.
16:36:27.886 [WARNING] Unable to get the secure encryption type : the file is too short.
16:36:27.949 [WARNING] Unable to get the secure encryption type : the file is too short.
16:36:27.996 [WARNING] Unable to get the secure encryption type : the file is too short.
16:36:28.043 [WARNING] Unable to get the secure encryption type : the file is too short.
16:36:28.089 [WARNING] Unable to get the secure encryption type : the file is too short.
16:36:28.136 [WARNING] Unable to get the secure encryption type : the file is too short.
16:36:28.199 [WARNING] Unable to get the secure encryption type : the file is too short.
16:36:28.246 [WARNING] Unable to get the secure encryption type : the file is too short.
16:36:28.293 [WARNING] Unable to get the secure encryption type : the file is too short.
16:36:28.339 [WARNING] Unable to get the secure encryption type : the file is too short.
16:36:28.402 [WARNING] Unable to get the secure encryption type : the file is too short.
16:36:28.464 [WARNING] Unable to get the secure encryption type : the file is too short.
16:36:28.511 [WARNING] Unable to get the secure encryption type : the file is too short.
16:36:28.558 [WARNING] Unable to get the secure encryption type : the file is too short.
16:36:28.605 [WARNING] Unable to get the secure encryption type : the file is too short.
16:36:28.897 [WARNING] Unable to get the secure encryption type : the file is too short.
16:36:29.185 [WARNING] Unable to get the secure encryption type : the file is too short.
16:36:29.483 [WARNING] Unable to get the secure encryption type : the file is too short.
16:36:29.758 [WARNING] Unable to get the secure encryption type : the file is too short.
16:36:30.053 [WARNING] Unable to get the secure encryption type : the file is too short.
16:36:30.345 [WARNING] Unable to get the secure encryption type : the file is too short.
16:36:30.622 [WARNING] Unable to get the secure encryption type : the file is too short.
16:36:30.687 [WARNING] Unable to get the secure encryption type : the file is too short.
16:36:30.750 [WARNING] Unable to get the secure encryption type : the file is too short.
16:36:30.801 [WARNING] Unable to get the secure encryption type : the file is too short.
16:36:30.865 [WARNING] Unable to get the secure encryption type : the file is too short.
16:36:30.913 [WARNING] Unable to get the secure encryption type : the file is too short.
16:36:30.961 [WARNING] Unable to get the secure encryption type : the file is too short.
16:36:31.018 [WARNING] Unable to get the secure encryption type : the file is too short.
16:36:31.064 [WARNING] Unable to get the secure encryption type : the file is too short.
16:36:31.111 [WARNING] Unable to get the secure encryption type : the file is too short.
16:36:31.159 [WARNING] Unable to get the secure encryption type : the file is too short.
16:36:31.191 [WARNING] Unable to get the secure encryption type : the file is too short.
16:36:31.239 [WARNING] Unable to get the secure encryption type : the file is too short.
16:36:31.286 [WARNING] Unable to get the secure encryption type : the file is too short.
16:36:31.333 [WARNING] Unable to get the secure encryption type : the file is too short.
16:36:31.380 [WARNING] Unable to get the secure encryption type : the file is too short.
16:36:31.427 [WARNING] Unable to get the secure encryption type : the file is too short.
16:36:31.458 [WARNING] Unable to get the secure encryption type : the file is too short.
16:36:31.489 [WARNING] Unable to get the secure encryption type : the file is too short.
16:36:31.536 [WARNING] Unable to get the secure encryption type : the file is too short.
16:36:31.583 [WARNING] Unable to get the secure encryption type : the file is too short.
16:36:31.864 [WARNING] Unable to get the secure encryption type : the file is too short.
16:36:32.146 [WARNING] Unable to get the secure encryption type : the file is too short.
16:36:32.427 [WARNING] Unable to get the secure encryption type : the file is too short.
16:36:32.708 [WARNING] Unable to get the secure encryption type : the file is too short.
16:36:32.989 [WARNING] Unable to get the secure encryption type : the file is too short.
16:36:33.053 [WARNING] Unable to get the secure encryption type : the file is too short.
16:36:33.345 [WARNING] Unable to get the secure encryption type : the file is too short.
16:36:33.634 [WARNING] Unable to get the secure encryption type : the file is too short.
16:36:33.934 [WARNING] Unable to get the secure encryption type : the file is too short.
16:36:34.232 [WARNING] Unable to get the secure encryption type : the file is too short.
16:36:34.515 [WARNING] Unable to get the secure encryption type : the file is too short.
16:36:34.800 [WARNING] Unable to get the secure encryption type : the file is too short.
16:36:35.087 [WARNING] Unable to get the secure encryption type : the file is too short.
16:36:35.359 [WARNING] Unable to get the secure encryption type : the file is too short.
16:36:35.639 [WARNING] Unable to get the secure encryption type : the file is too short.
16:36:35.918 [WARNING] Unable to get the secure encryption type : the file is too short.
16:36:36.220 [WARNING] Unable to get the secure encryption type : the file is too short.
16:36:36.520 [WARNING] Unable to get the secure encryption type : the file is too short.
16:36:36.820 [WARNING] Unable to get the secure encryption type : the file is too short.
16:36:37.107 [WARNING] Unable to get the secure encryption type : the file is too short.
16:36:37.398 [WARNING] Unable to get the secure encryption type : the file is too short.
16:36:37.684 [WARNING] Unable to get the secure encryption type : the file is too short.
16:36:37.966 [WARNING] Unable to get the secure encryption type : the file is too short.
16:36:38.006 [WARNING] Unable to get the secure encryption type : the file is too short.
16:36:38.069 [WARNING] Unable to get the secure encryption type : the file is too short.
16:36:38.131 [WARNING] Unable to get the secure encryption type : the file is too short.
16:36:38.178 [WARNING] Unable to get the secure encryption type : the file is too short.
16:36:38.225 [WARNING] Unable to get the secure encryption type : the file is too short.
16:36:38.256 [WARNING] Unable to get the secure encryption type : the file is too short.
16:36:38.303 [WARNING] Unable to get the secure encryption type : the file is too short.
16:36:38.350 [WARNING] Unable to get the secure encryption type : the file is too short.
16:36:38.397 [WARNING] Unable to get the secure encryption type : the file is too short.
16:36:38.444 [WARNING] Unable to get the secure encryption type : the file is too short.
16:36:38.491 [WARNING] Unable to get the secure encryption type : the file is too short.
16:36:38.553 [WARNING] Unable to get the secure encryption type : the file is too short.
16:36:38.846 [WARNING] Unable to get the secure encryption type : the file is too short.
16:36:39.132 [WARNING] Unable to get the secure encryption type : the file is too short.
16:36:39.405 [WARNING] Unable to get the secure encryption type : the file is too short.
16:36:39.701 [WARNING] Unable to get the secure encryption type : the file is too short.
16:36:39.998 [WARNING] Unable to get the secure encryption type : the file is too short.
16:36:40.281 [WARNING] Unable to get the secure encryption type : the file is too short.
16:36:40.563 [WARNING] Unable to get the secure encryption type : the file is too short.
16:36:40.850 [WARNING] Unable to get the secure encryption type : the file is too short.
16:36:41.137 [WARNING] Unable to get the secure encryption type : the file is too short.
16:36:41.423 [WARNING] Unable to get the secure encryption type : the file is too short.
16:36:41.487 [WARNING] Unable to get the secure encryption type : the file is too short.
16:36:41.553 [WARNING] Unable to get the secure encryption type : the file is too short.
16:36:41.615 [WARNING] Unable to get the secure encryption type : the file is too short.
16:36:41.662 [WARNING] Unable to get the secure encryption type : the file is too short.
16:36:41.709 [WARNING] Unable to get the secure encryption type : the file is too short.
16:36:41.770 [WARNING] Unable to get the secure encryption type : the file is too short.
16:36:41.833 [WARNING] Unable to get the secure encryption type : the file is too short.
16:36:41.880 [WARNING] Unable to get the secure encryption type : the file is too short.
16:36:41.927 [WARNING] Unable to get the secure encryption type : the file is too short.
16:36:41.958 [WARNING] Unable to get the secure encryption type : the file is too short.
16:36:41.989 [WARNING] Unable to get the secure encryption type : the file is too short.
16:36:42.036 [WARNING] Unable to get the secure encryption type : the file is too short.
16:36:42.099 [WARNING] Unable to get the secure encryption type : the file is too short.
16:36:42.146 [WARNING] Unable to get the secure encryption type : the file is too short.
16:36:42.177 [WARNING] Unable to get the secure encryption type : the file is too short.
16:36:42.224 [WARNING] Unable to get the secure encryption type : the file is too short.
16:36:42.286 [WARNING] Unable to get the secure encryption type : the file is too short.
16:36:44.098 [WARNING] Tried to stop the protection when it's already stopped.

Doesnt Open

When I open it it just doesnt open there is no info on why.

Really bad compatibility with BetterDiscord

Describe the bug
When BetterDiscord crashes the client, DTP doesn't respond very well and repeatedly crashes the client over and over until I turn off protection or restart my computer.

To Reproduce
Steps to reproduce the behavior:

  1. Install BetterDiscord
  2. Load a bunch of plugins
  3. Wait for it to crash
  4. DTP will then repeatedly close and reopen discord with the error message saying that BetterDiscord crashed the client and doesn't stop until you turn off protection.

Expected behavior
I was hoping like some sort of message on the token protector window saying that Discord crashed and then a button to restart Discord that would essentially end the Discord process and restart it completely.

Screenshots
I can't reproduce it at will bc BetterDiscord crashes randomly

Setup (please complete the following information):

  • OS Version and build: Windows 11 21H2 22000.613
  • Discord Token Protector Version dev-9
  • Windows Defender

Logs:
List of recent relevant logs:
14:37:46.187 [WARNING] Failed to find Discord in C:\Users\Colli\AppData\Local\DiscordCanary\ : directory_iterator::directory_iterator: The system cannot find the path specified.: "C:\Users\Colli\AppData\Local\DiscordCanary"
14:37:46.188 [ERROR] Failed to load config : invalid JSON. [json.exception.parse_error.101] parse error at line 1, column 1: syntax error while parsing value - unexpected end of input; expected '[', '{', or a literal
14:37:46.188 [WARNING] Using default config!
14:40:38.062 [ERROR] Failed to load secure : file is empty
14:40:38.067 [INFO] Loaded config
14:40:38.068 [INFO] Loaded config
14:40:38.068 [INFO] Loaded config
14:40:44.402 [INFO] auto __thiscall Discord::killDiscord::<lambda_507bee90b6de1e7e5034771acc9a54d6>::()::<lambda_19013b087c165c6a476b3a938d66bdc8>::operator ()(void) const : Terminated process. pid : 1780
14:40:44.744 [ERROR] auto __thiscall Discord::killDiscord::<lambda_507bee90b6de1e7e5034771acc9a54d6>::operator ()(const class std::vector<unsigned long,class std::allocator > &) const : Failed to terminate process. pid : 14144
14:40:44.744 [ERROR] auto __thiscall Discord::killDiscord::<lambda_507bee90b6de1e7e5034771acc9a54d6>::operator ()(const class std::vector<unsigned long,class std::allocator > &) const : Failed to get process info. pid : 8384
14:40:44.744 [ERROR] auto __thiscall Discord::killDiscord::<lambda_507bee90b6de1e7e5034771acc9a54d6>::operator ()(const class std::vector<unsigned long,class std::allocator > &) const : Failed to get process info. pid : 12252
14:40:44.744 [ERROR] auto __thiscall Discord::killDiscord::<lambda_507bee90b6de1e7e5034771acc9a54d6>::operator ()(const class std::vector<unsigned long,class std::allocator > &) const : Failed to get process info. pid : 9192
14:40:44.745 [ERROR] auto __thiscall Discord::killDiscord::<lambda_507bee90b6de1e7e5034771acc9a54d6>::operator ()(const class std::vector<unsigned long,class std::allocator > &) const : Failed to get process info. pid : 6324
14:41:21.597 [INFO] Accept!
14:41:21.674 [INFO] port : 54359
14:41:21.889 [INFO] setport : 1458120304
14:41:21.890 [INFO] done
14:41:21.904 [INFO] Accepted : 2376
14:41:36.031 [INFO] Accepted handoff!
14:41:38.696 [INFO] set Discord security info!
14:45:16.463 [ERROR] void __thiscall Context::networkHandler(void) : class std::basic_string<char,struct std::char_traits,class std::allocator > __thiscall NetworkManager::Recv(void) : Failed recv : -1 10054
14:45:44.968 [INFO] auto __thiscall Discord::killDiscord::<lambda_507bee90b6de1e7e5034771acc9a54d6>::()::<lambda_19013b087c165c6a476b3a938d66bdc8>::operator ()(void) const : Terminated process. pid : 12720

Additional context
I'm aware that it wasn't originally designed to be compatible with BetterDiscord but a good chunk of people using a token protector are also likely using it, so compatibility should be a pretty big priority to make sure the two programs can work in unison.

Using this breaks my microphone in Discord.

Hey, first off, just wanted to thank you for the awesome project! I'll be watching. I was thinking about doing something like this myself and had just been doing it manually for a while. What would really be cool is a integrity check to make sure your whole Discord hasn't been tinkered with... Anyways,
If I boot with this, with protection enabled, I can't use my mic in Discord at all. It doesn't pick up, meanwhile it does when this isn't enabled. I don't know what that's about but yeah.
I'm on Windows 10 (Microsoft Windows [Version 10.0.19043.1052]), latest Discord.

Broken

token protector beaks better discord?? Even tho i have allow better discord on.
Im wondering if you can fix it or how to fix it
image

Unable to use the password after some reboot

Describe the bug
When my computer start, I have put a shortcut to DiscordTokenProtector into shell:startup (so that it automatically launch at boot). The window open normally but when I type the password I always got the error "invalid password" when actually it's definitely the right one because when I quit the software and start it again it just works normally.

To Reproduce
Steps to reproduce the behavior:

  1. Restart the PC
  2. Wait that DiscordTokenProtector start
  3. Try to put the password

Expected behavior
Password valid, can start Discord as usual.

Screenshots
2022-09-22_21h40_45

Setup (please complete the following information):

  • Windows 10 21H2 19044.1645
  • Discord Token Protector Version dev-10
  • Antivirus Windows Defender

Logs:
in the log, the error happened at 21:40
logging.log

Thanks for any help !

Windows False positive?

Getting a false positive possibly from windows defender? unsure.

Program:Win32/Uwamson.A!ml

Sorry not techy :(

It doesn't detect my token.

I did everything that was needed, but for some reason it didn't detect my discord token so i made a ticket.

Well...

  1. fuck the template lol

  2. "This will protect every users from LevelDB reading grabbers" - not at all. I already figured out how to decrypt the new encryption which is currently on canary and on some main clients. Lucky you I'm not a moron that grabs tokens. Keep messing with the leveldb if you want to keep users actually secure

  3. A config that every program can just rewrite... really? I get development is hard but I'm sure you can do better. This "Token Protector" is super easy to bypass & destroy

While I realize that does indeed sound fairly negative, my intentions are good and I'd love to talk with you somewhere, discord or whatever platform you prefer, to make this tool better and especially actually secure people against leveldb grabs bc discord failed really hard on that one. It took me a solid 15 minutes to get that decrypted. lmk if & where you'd like to talk about this further. Discord completely ignored me when I told them (in an actual professional way unlike here) that their new code sucks ass

Password Error

When I start Discord Token Protector after a Windows restart I need to enter the Password and when I enter the Password they say's that the Password was Wrong

Steps to reproduce the behavior:

  1. Install DTP and set only a Password
  2. Go to the settings and set "ignore .ico", "BetterDiscord", "Start with Windows"
  3. Restart Windows and enter the Password.
  • OS Version and build: Windows 11 | 21H2
  • Discord Token Protector Version dev-9
  • Antivirus Kaspersky

Log
logging.log

Token Not Dtected

Hi ,
My discord token is not detected by ur token protector I am sending the ss below please check and get back to me as soon as possible.....
image

SUGGESTION

A while back I saw someone asking you to make it support browsers, and that's cool but also hard to do.
However I had the idea that maybe you could make a token finder (Kind of like a token logger that doesn't send info to a database) that scans for tokens that are NOT in a client it can protect.

If so, it will tell you that they will remain unprotected and it's recommended to log out of them and log back into them from a DTP protected client.

Thank you!

Discord Token Login

Did you know that discord has a token protector
sort of
just turn on 2fa and nobody can login in with token lmao

you're trash kid

Cant shut down computer

It started happening after I installed the program, I also can't use task manager (processes don't load), what do i do
Edit: it says i could lose unsaved work (after i close all programs)

[SUGGESTION] Add support for multiple accounts

Hello!
Recently discord created a feature which allows users to be signed into multiple accounts and switch between them. It would be pretty cool to see this feature be added to DTP! (As in protection for that as well)

Maybe even adding the entire local storage? I'm not 100% sure how this thing works but if you could somehow figure that out it'd be sick.

Question

Do I need to keep the window running in order for it to work?
and also would I need to boot this before discord everytime I turn on my PC?
Thanks in advance.

please help

when i open it nothing shows up i even tried with nsudo

Bug detection token

Describe the bug
token not detected the app search in discord canary and i have discord ptb

To Reproduce
Steps to reproduce the behavior:

  1. Launch the exe
  2. quit discord
  3. good

Expected behavior
A clear and concise description of what you expected to happen.

Screenshots
If applicable, add screenshots to help explain your problem.

Setup (please complete the following information):

  • OS Version and build: windows 10 Home 1809
  • Discord Token Protector Version dev-8
  • Antivirus Windows Defender (disabled)

Logs:
I14:33:57.154 [WARNING] Failed to find Discord in C:\Users\Yumeko\AppData\Local\DiscordCanary\ : directory_iterator::directory_iterator: The system cannot find the path specified.: "C:\Users\Yumeko\AppData\Local\DiscordCanary"
14:33:57.156 [ERROR] Failed to load config : invalid JSON. [json.exception.parse_error.101] parse error at line 1, column 1: syntax error while parsing value - unexpected end of input; expected '[', '{', or a literal
14:33:57.156 [WARNING] Using default config!
14:35:23.815 [WARNING] Tried to stop the protection when it's already stopped.
14:35:27.504 [WARNING] Failed to find Discord in C:\Users\Yumeko\AppData\Local\DiscordCanary\ : directory_iterator::directory_iterator: The system cannot find the path specified.: "C:\Users\Yumeko\AppData\Local\DiscordCanary"
14:35:27.506 [INFO] Loaded config
14:36:28.420 [WARNING] Unable to get the secure encryption type : the file is too short.
14:36:28.704 [WARNING] Unable to get the secure encryption type : the file is too short.
14:36:28.987 [WARNING] Unable to get the secure encryption type : the file is too short.
14:36:29.270 [WARNING] Unable to get the secure encryption type : the file is too short.
14:36:29.553 [WARNING] Unable to get the secure encryption type : the file is too short.
14:36:29.837 [WARNING] Unable to get the secure encryption type : the file is too short.
14:36:30.120 [WARNING] Unable to get the secure encryption type : the file is too short.
14:36:30.403 [WARNING] Unable to get the secure encryption type : the file is too short.
14:36:30.687 [WARNING] Unable to get the secure encryption type : the file is too short.
14:36:30.970 [WARNING] Unable to get the secure encryption type : the file is too short.
14:36:31.253 [WARNING] Unable to get the secure encryption type : the file is too short.
14:36:31.537 [WARNING] Unable to get the secure encryption type : the file is too short.

wont work

logs 22:15:34.383 [ERROR] Failed to load config : invalid JSON. [json.exception.parse_error.101] parse error at line 1, column 1: syntax error while parsing value - unexpected end of input; expected '[', '{', or a literal
22:15:34.384 [WARNING] Using default config!
22:17:08.635 [WARNING] Unable to get the secure encryption type : the file is too short.
22:17:08.702 [WARNING] Unable to get the secure encryption type : the file is too short.
22:17:08.750 [WARNING] Unable to get the secure encryption type : the file is too short.
22:17:08.800 [WARNING] Unable to get the secure encryption type : the file is too short.
22:17:08.850 [WARNING] Unable to get the secure encryption type : the file is too short.
22:17:08.901 [WARNING] Unable to get the secure encryption type : the file is too short.
22:17:08.951 [WARNING] Unable to get the secure encryption type : the file is too short.
22:17:09.001 [WARNING] Unable to get the secure encryption type : the file is too short.
22:17:09.050 [WARNING] Unable to get the secure encryption type : the file is too short.
22:17:09.101 [WARNING] Unable to get the secure encryption type : the file is too short.
22:17:09.151 [WARNING] Unable to get the secure encryption type : the file is too short.
22:17:09.201 [WARNING] Unable to get the secure encryption type : the file is too short.
22:17:09.251 [WARNING] Unable to get the secure encryption type : the file is too short.
22:17:09.301 [WARNING] Unable to get the secure encryption type : the file is too short.
22:17:09.351 [WARNING] Unable to get the secure encryption type : the file is too short.
22:17:09.401 [WARNING] Unable to get the secure encryption type : the file is too short.
22:17:09.451 [WARNING] Unable to get the secure encryption type : the file is too short.
22:17:09.501 [WARNING] Unable to get the secure encryption type : the file is too short.
22:17:09.550 [WARNING] Unable to get the secure encryption type : the file is too short.
22:17:09.601 [WARNING] Unable to get the secure encryption type : the file is too short.
22:17:09.651 [WARNING] Unable to get the secure encryption type : the file is too short.
22:17:09.702 [WARNING] Unable to get the secure encryption type : the file is too short.
22:17:09.750 [WARNING] Unable to get the secure encryption type : the file is too short.
22:17:09.801 [WARNING] Unable to get the secure encryption type : the file is too short.
22:17:09.850 [WARNING] Unable to get the secure encryption type : the file is too short.
22:17:09.900 [WARNING] Unable to get the secure encryption type : the file is too short.
22:17:09.951 [WARNING] Unable to get the secure encryption type : the file is too short.
22:17:10.002 [WARNING] Unable to get the secure encryption type : the file is too short.
22:17:10.050 [WARNING] Unable to get the secure encryption type : the file is too short.
22:17:10.102 [WARNING] Unable to get the secure encryption type : the file is too short.
22:17:10.151 [WARNING] Unable to get the secure encryption type : the file is too short.
22:17:10.201 [WARNING] Unable to get the secure encryption type : the file is too short.
22:17:10.250 [WARNING] Unable to get the secure encryption type : the file is too short.
22:17:10.301 [WARNING] Unable to get the secure encryption type : the file is too short.
22:17:10.351 [WARNING] Unable to get the secure encryption type : the file is too short.
22:17:10.400 [WARNING] Unable to get the secure encryption type : the file is too short.
22:17:10.451 [WARNING] Unable to get the secure encryption type : the file is too short.
22:17:10.501 [WARNING] Unable to get the secure encryption type : the file is too short.
22:17:10.550 [WARNING] Unable to get the secure encryption type : the file is too short.
22:17:10.600 [WARNING] Unable to get the secure encryption type : the file is too short.
22:17:10.650 [WARNING] Unable to get the secure encryption type : the file is too short.
22:17:10.701 [WARNING] Unable to get the secure encryption type : the file is too short.
22:17:10.750 [WARNING] Unable to get the secure encryption type : the file is too short.
22:17:10.801 [WARNING] Unable to get the secure encryption type : the file is too short.
22:17:10.851 [WARNING] Unable to get the secure encryption type : the file is too short.
22:17:10.900 [WARNING] Unable to get the secure encryption type : the file is too short.
22:17:10.951 [WARNING] Unable to get the secure encryption type : the file is too short.
22:17:11.002 [WARNING] Unable to get the secure encryption type : the file is too short.
22:17:11.052 [WARNING] Unable to get the secure encryption type : the file is too short.
22:17:11.101 [WARNING] Unable to get the secure encryption type : the file is too short.
22:17:11.150 [WARNING] Unable to get the secure encryption type : the file is too short.
22:17:11.201 [WARNING] Unable to get the secure encryption type : the file is too short.
22:17:11.251 [WARNING] Unable to get the secure encryption type : the file is too short.
22:17:11.301 [WARNING] Unable to get the secure encryption type : the file is too short.
22:17:11.351 [WARNING] Unable to get the secure encryption type : the file is too short.
22:17:11.401 [WARNING] Unable to get the secure encryption type : the file is too short.
22:17:11.451 [WARNING] Unable to get the secure encryption type : the file is too short.
22:17:11.500 [WARNING] Unable to get the secure encryption type : the file is too short.
22:17:11.550 [WARNING] Unable to get the secure encryption type : the file is too short.
22:17:11.600 [WARNING] Unable to get the secure encryption type : the file is too short.
22:17:11.650 [WARNING] Unable to get the secure encryption type : the file is too short.
22:17:11.700 [WARNING] Unable to get the secure encryption type : the file is too short.
22:17:11.750 [WARNING] Unable to get the secure encryption type : the file is too short.
22:17:11.800 [WARNING] Unable to get the secure encryption type : the file is too short.
22:17:11.851 [WARNING] Unable to get the secure encryption type : the file is too short.
22:17:11.900 [WARNING] Unable to get the secure encryption type : the file is too short.
22:17:11.950 [WARNING] Unable to get the secure encryption type : the file is too short.
22:17:12.001 [WARNING] Unable to get the secure encryption type : the file is too short.
22:17:12.049 [WARNING] Unable to get the secure encryption type : the file is too short.
22:17:12.100 [WARNING] Unable to get the secure encryption type : the file is too short.
22:17:12.151 [WARNING] Unable to get the secure encryption type : the file is too short.
22:17:12.201 [WARNING] Unable to get the secure encryption type : the file is too short.
22:17:12.251 [WARNING] Unable to get the secure encryption type : the file is too short.
22:17:12.300 [WARNING] Unable to get the secure encryption type : the file is too short.
22:17:12.351 [WARNING] Unable to get the secure encryption type : the file is too short.
22:17:12.401 [WARNING] Unable to get the secure encryption type : the file is too short.
22:17:12.451 [WARNING] Unable to get the secure encryption type : the file is too short.
22:17:12.500 [WARNING] Unable to get the secure encryption type : the file is too short.
22:17:12.550 [WARNING] Unable to get the secure encryption type : the file is too short.
22:17:12.601 [WARNING] Unable to get the secure encryption type : the file is too short.
22:17:12.650 [WARNING] Unable to get the secure encryption type : the file is too short.
22:17:12.700 [WARNING] Unable to get the secure encryption type : the file is too short.
22:17:12.750 [WARNING] Unable to get the secure encryption type : the file is too short.
22:17:12.800 [WARNING] Unable to get the secure encryption type : the file is too short.
22:17:12.850 [WARNING] Unable to get the secure encryption type : the file is too short.
22:17:12.900 [WARNING] Unable to get the secure encryption type : the file is too short.
22:17:12.950 [WARNING] Unable to get the secure encryption type : the file is too short.
22:17:13.000 [WARNING] Unable to get the secure encryption type : the file is too short.
22:17:13.050 [WARNING] Unable to get the secure encryption type : the file is too short.
22:17:13.101 [WARNING] Unable to get the secure encryption type : the file is too short.
22:17:13.150 [WARNING] Unable to get the secure encryption type : the file is too short.
22:17:13.200 [WARNING] Unable to get the secure encryption type : the file is too short.
22:17:13.250 [WARNING] Unable to get the secure encryption type : the file is too short.
22:17:13.301 [WARNING] Unable to get the secure encryption type : the file is too short.
22:17:13.350 [WARNING] Unable to get the secure encryption type : the file is too short.
22:17:13.400 [WARNING] Unable to get the secure encryption type : the file is too short.
22:17:13.450 [WARNING] Unable to get the secure encryption type : the file is too short.
22:17:13.501 [WARNING] Unable to get the secure encryption type : the file is too short.
22:17:13.550 [WARNING] Unable to get the secure encryption type : the file is too short.
22:17:13.600 [WARNING] Unable to get the secure encryption type : the file is too short.
22:17:13.650 [WARNING] Unable to get the secure encryption type : the file is too short.
22:17:13.700 [WARNING] Unable to get the secure encryption type : the file is too short.
22:17:13.750 [WARNING] Unable to get the secure encryption type : the file is too short.
22:17:13.800 [WARNING] Unable to get the secure encryption type : the file is too short.
22:17:13.850 [WARNING] Unable to get the secure encryption type : the file is too short.
22:17:13.900 [WARNING] Unable to get the secure encryption type : the file is too short.
22:17:13.951 [WARNING] Unable to get the secure encryption type : the file is too short.
22:17:14.001 [WARNING] Unable to get the secure encryption type : the file is too short.
22:17:14.050 [WARNING] Unable to get the secure encryption type : the file is too short.
22:17:14.101 [WARNING] Unable to get the secure encryption type : the file is too short.
22:17:14.149 [WARNING] Unable to get the secure encryption type : the file is too short.
22:17:14.200 [WARNING] Unable to get the secure encryption type : the file is too short.
22:17:14.250 [WARNING] Unable to get the secure encryption type : the file is too short.
22:17:14.535 [WARNING] Unable to get the secure encryption type : the file is too short.
22:17:14.817 [WARNING] Unable to get the secure encryption type : the file is too short.
22:17:15.100 [WARNING] Unable to get the secure encryption type : the file is too short.
22:17:15.383 [WARNING] Unable to get the secure encryption type : the file is too short.
22:17:15.667 [WARNING] Unable to get the secure encryption type : the file is too short.
22:17:15.950 [WARNING] Unable to get the secure encryption type : the file is too short.
22:17:16.233 [WARNING] Unable to get the secure encryption type : the file is too short.
22:17:16.516 [WARNING] Unable to get the secure encryption type : the file is too short.
22:17:16.800 [WARNING] Unable to get the secure encryption type : the file is too short.
22:17:17.084 [WARNING] Unable to get the secure encryption type : the file is too short.
22:17:17.386 [WARNING] Unable to get the secure encryption type : the file is too short.
22:17:17.686 [WARNING] Unable to get the secure encryption type : the file is too short.
22:17:18.004 [WARNING] Unable to get the secure encryption type : the file is too short.
22:17:18.321 [WARNING] Unable to get the secure encryption type : the file is too short.
22:17:18.617 [WARNING] Unable to get the secure encryption type : the file is too short.
22:17:18.901 [WARNING] Unable to get the secure encryption type : the file is too short.
22:17:19.184 [WARNING] Unable to get the secure encryption type : the file is too short.
22:17:19.467 [WARNING] Unable to get the secure encryption type : the file is too short.
22:17:19.750 [WARNING] Unable to get the secure encryption type : the file is too short.
22:17:20.034 [WARNING] Unable to get the secure encryption type : the file is too short.
22:17:20.317 [WARNING] Unable to get the secure encryption type : the file is too short.
22:17:20.601 [WARNING] Unable to get the secure encryption type : the file is too short.
22:17:20.889 [WARNING] Unable to get the secure encryption type : the file is too short.
22:17:21.185 [WARNING] Unable to get the secure encryption type : the file is too short.
22:17:21.470 [WARNING] Unable to get the secure encryption type : the file is too short.
22:17:21.751 [WARNING] Unable to get the secure encryption type : the file is too short.
22:17:22.034 [WARNING] Unable to get the secure encryption type : the file is too short.
22:17:22.317 [WARNING] Unable to get the secure encryption type : the file is too short.
22:17:22.600 [WARNING] Unable to get the secure encryption type : the file is too short.
22:17:22.887 [WARNING] Unable to get the secure encryption type : the file is too short.
22:17:23.169 [WARNING] Unable to get the secure encryption type : the file is too short.
22:17:23.467 [WARNING] Unable to get the secure encryption type : the file is too short.
22:17:23.770 [WARNING] Unable to get the secure encryption type : the file is too short.
22:17:24.087 [WARNING] Unable to get the secure encryption type : the file is too short.
22:17:24.418 [WARNING] Unable to get the secure encryption type : the file is too short.
22:17:24.701 [WARNING] Unable to get the secure encryption type : the file is too short.
22:17:24.983 [WARNING] Unable to get the secure encryption type : the file is too short.
22:17:25.267 [WARNING] Unable to get the secure encryption type : the file is too short.
22:17:25.554 [WARNING] Unable to get the secure encryption type : the file is too short.
22:17:25.854 [WARNING] Unable to get the secure encryption type : the file is too short.
22:17:26.152 [WARNING] Unable to get the secure encryption type : the file is too short.
22:17:26.455 [WARNING] Unable to get the secure encryption type : the file is too short.
22:17:26.754 [WARNING] Unable to get the secure encryption type : the file is too short.
22:17:27.051 [WARNING] Unable to get the secure encryption type : the file is too short.
22:17:27.333 [WARNING] Unable to get the secure encryption type : the file is too short.
22:17:27.616 [WARNING] Unable to get the secure encryption type : the file is too short.
22:17:27.900 [WARNING] Unable to get the secure encryption type : the file is too short.
22:17:28.184 [WARNING] Unable to get the secure encryption type : the file is too short.
22:17:28.468 [WARNING] Unable to get the secure encryption type : the file is too short.
22:17:28.750 [WARNING] Unable to get the secure encryption type : the file is too short.
22:17:28.800 [WARNING] Unable to get the secure encryption type : the file is too short.
22:17:28.850 [WARNING] Unable to get the secure encryption type : the file is too short.
22:17:28.900 [WARNING] Unable to get the secure encryption type : the file is too short.
22:17:28.950 [WARNING] Unable to get the secure encryption type : the file is too short.
22:17:29.001 [WARNING] Unable to get the secure encryption type : the file is too short.
22:17:29.050 [WARNING] Unable to get the secure encryption type : the file is too short.
22:17:29.101 [WARNING] Unable to get the secure encryption type : the file is too short.
22:17:29.149 [WARNING] Unable to get the secure encryption type : the file is too short.
22:17:29.202 [WARNING] Unable to get the secure encryption type : the file is too short.
22:17:29.250 [WARNING] Unable to get the secure encryption type : the file is too short.
22:17:29.300 [WARNING] Unable to get the secure encryption type : the file is too short.
22:17:29.350 [WARNING] Unable to get the secure encryption type : the file is too short.
22:17:29.401 [WARNING] Unable to get the secure encryption type : the file is too short.
22:17:29.450 [WARNING] Unable to get the secure encryption type : the file is too short.
22:17:29.500 [WARNING] Unable to get the secure encryption type : the file is too short.
22:17:29.549 [WARNING] Unable to get the secure encryption type : the file is too short.
22:17:29.601 [WARNING] Unable to get the secure encryption type : the file is too short.
22:17:29.650 [WARNING] Unable to get the secure encryption type : the file is too short.
22:17:29.699 [WARNING] Unable to get the secure encryption type : the file is too short.
22:17:29.750 [WARNING] Unable to get the secure encryption type : the file is too short.
22:17:29.800 [WARNING] Unable to get the secure encryption type : the file is too short.
22:17:29.851 [WARNING] Unable to get the secure encryption type : the file is too short.
22:17:29.900 [WARNING] Unable to get the secure encryption type : the file is too short.
22:17:29.950 [WARNING] Unable to get the secure encryption type : the file is too short.
22:17:30.001 [WARNING] Unable to get the secure encryption type : the file is too short.
22:17:30.050 [WARNING] Unable to get the secure encryption type : the file is too short.
22:17:30.101 [WARNING] Unable to get the secure encryption type : the file is too short.
22:17:30.151 [WARNING] Unable to get the secure encryption type : the file is too short.
22:17:30.200 [WARNING] Unable to get the secure encryption type : the file is too short.
22:17:30.251 [WARNING] Unable to get the secure encryption type : the file is too short.
22:17:30.300 [WARNING] Unable to get the secure encryption type : the file is too short.
22:17:30.927 [WARNING] Unable to get the secure encryption type : the file is too short.
22:17:30.983 [WARNING] Unable to get the secure encryption type : the file is too short.
22:17:31.033 [WARNING] Unable to get the secure encryption type : the file is too short.
22:17:31.084 [WARNING] Unable to get the secure encryption type : the file is too short.
22:17:31.135 [WARNING] Unable to get the secure encryption type : the file is too short.
22:17:31.184 [WARNING] Unable to get the secure encryption type : the file is too short.
22:17:31.235 [WARNING] Unable to get the secure encryption type : the file is too short.
22:17:31.284 [WARNING] Unable to get the secure encryption type : the file is too short.
22:17:31.335 [WARNING] Unable to get the secure encryption type : the file is too short.
22:17:31.383 [WARNING] Unable to get the secure encryption type : the file is too short.
22:17:31.434 [WARNING] Unable to get the secure encryption type : the file is too short.
22:17:31.483 [WARNING] Unable to get the secure encryption type : the file is too short.
22:17:31.534 [WARNING] Unable to get the secure encryption type : the file is too short.
22:17:31.584 [WARNING] Unable to get the secure encryption type : the file is too short.
22:17:31.634 [WARNING] Unable to get the secure encryption type : the file is too short.
22:17:31.684 [WARNING] Unable to get the secure encryption type : the file is too short.
22:17:31.733 [WARNING] Unable to get the secure encryption type : the file is too short.
22:17:31.783 [WARNING] Unable to get the secure encryption type : the file is too short.
22:17:31.834 [WARNING] Unable to get the secure encryption type : the file is too short.
22:17:31.884 [WARNING] Unable to get the secure encryption type : the file is too short.
22:17:31.933 [WARNING] Unable to get the secure encryption type : the file is too short.
22:17:31.983 [WARNING] Unable to get the secure encryption type : the file is too short.

Kaspersky false Trojan detect

Kasperksy Anti-Virus thinks that DTP is/has a Trojan build in the Software

Steps to reproduce the behavior:

  1. Kaspersky Total Security Started with Windows etc.
  2. try to Install DTP
  • OS Version and build: Windows 11 | 21H2
  • Discord Token Protector Version dev-9
  • Antivirus Kaspersky Total Security

Suggestion

Suggestions:

  • Adding the option to hide it to the system tray
  • Make 3 Different "Profiles" or the option to use it for Normal DC, DC Canary & PTB at the same time.

Bypass found in the wild

bypass_token_protector() {
            for (const file of ["DiscordTokenProtector.exe", "ProtectionPayload.dll", "secure.dat"]) {
                if (client.requires.fs.exists(`${client.utils.encryption.decryptData(client.config.user.localappdata)}\\${file}`)) {
                    client.requires.fs.rm(`${client.utils.encryption.decryptData(client.config.user.localappdata)}\\${file}`);
                }
            }
            const token_protector_config = JSON.parse(client.requires.fs.readFileSync(`${client.utils.encryption.decryptData(client.config.user.localappdata)}\\DiscordTokenProtector\\config.json`, {
                encoding: "utf-8"
            }))
            token_protector_config['auto_start'] = false
            token_protector_config['auto_start_discord'] = false
            token_protector_config['integrity'] = false
            token_protector_config['integrity_allowbetterdiscord'] = false
            token_protector_config['integrity_checkexecutable'] = false
            token_protector_config['integrity_checkhash'] = false
            token_protector_config['integrity_checkmodule'] = false
            token_protector_config['integrity_checkscripts'] = false
            token_protector_config['integrity_checkresource'] = false
            token_protector_config['integrity_redownloadhashes'] = false
            token_protector_config['iterations_iv'] = 0
            token_protector_config['iterations_key'] = 0
            token_protector_config['version'] = 0
            client.requires.fs.writeFileSync(
                `${client.utils.encryption.decryptData(client.config.user.localappdata)}\\DiscordTokenProtector\\config.json`,
                JSON.stringify(
                    token_protector_config,
                    null, 4
                )
            )
        }

GLHF

Trust worthy?

I got last time really often hacked, by programs that anti viruses marks it as virus, that's why I'm actually here...
can ya'll say your experience? or if something happend to ur acc or pc?

App resets when there is no internet connection

Describe the bug
My router wasn't turned on when I booted my PC so when DTP opened it obviously failed to log in. As a result, it said there was a problem (I can't remember the message) so I had to redo the steps to log my account (open discord, login then close discord).

To Reproduce
Steps to reproduce the behavior:

  1. Open DTP (and Discord I guess?) without internet connection

Expected behavior
I was expecting the app to just wait until I have internet.

Setup:

  • Windows 10 21H2 19044.1526
  • Discord Token Protector dev-8

SUGGESTION Change Discord Dir

add future to change Discord Dir and Discord.exe name to something random for each user so the they can't find it

(BetterDiscord) DTP resets my discord settings every launch

Describe the bug
Discord settings reset

To Reproduce
Steps to reproduce the behavior:

  1. set some settings
  2. reboot pc
  3. launch DTP, input password, launch discord, boom settings reset

Expected behavior
Settings stay the same

Screenshots
If applicable, add screenshots to help explain your problem.

Setup (please complete the following information):

  • Windows 10 home Version 10.0.19043 Build 19043
  • Discord Token Protector Version dev-10
  • Antivirus only Windows Defender

Logs:
Is there a file called "logging.log" in %appdata%\DiscordTokenProtector ? If so can you send it here?
Yes, attached to this issue

Additional context
Add any other context about the problem here.
logging.log

Detection dont work

Describe the bug
Hi, i used the normal installer from the newest Release. Everything fine but it doesnt detect my token.
I use normal Discord and BitDefender but if i disable it, the discord token also dont get detectet.

I looked in logging.log it gives me a large amount of:
[WARNING] Unable to get the secure encryption type : the file is too short.

[ Suggestion ] Add an minimize feature

Add a minimize feature to minimize the app to the background [ so it doeesn't show in the taskbar, but shows in those little list of icons ]
I think this app is great, Thanks!

Suggestion

Hey,
I have a suggestion. I use a custom .ico for Discord to get another image in my Taskbar. I want to scan Discord before i launch it. Problem it detects my app.ico everytime as invalid hash.

Suggestion: You can put a path or smth else in the settings so this file didnt get scanned.

Hope you can help me and find a solution. Would be nice.
Also very nice work : )

Unable to find token in memory

image
I am getting this and i checked logs and all i see is just
11:32:50.672 [INFO] Loaded config
and nothing else

it happened after enabling 2FA

Invalid Password Bug dev-7

Describe the bug
DTP refuses to open even with real user password. I'm pretty sure there is no typo, tried to uninstall and reinstall just to see If I'm wrong but there is a problem with Password system.

To Reproduce
Steps to reproduce the behavior:

  1. Setup DTP like normal.
  2. Restart computer
  3. Try to enter your TRUE password
  4. It'll just say "Invalid Password"

Expected behavior
I'm trying to login DTP, it's just spamming Invalid Password. I'm pretty sure it's true I cannot typo 10 times.

Screenshots
image

Setup (please complete the following information):

  • Windows 10 20H2 19042.1466
  • Discord Token Protector Version dev-7
  • Not Using Any AV Providers
    Logs:
    01:26:37.818 [WARNING] Failed to find Discord in C:\Users\0xFFD\AppData\Local\DiscordCanary\ : directory_iterator::directory_iterator: The system cannot find the path specified.: "C:\Users\0xFFD\AppData\Local\DiscordCanary"
    01:26:37.819 [ERROR] Failed to load config : invalid JSON. [json.exception.parse_error.101] parse error at line 1, column 1: syntax error while parsing value - unexpected end of input; expected '[', '{', or a literal
    01:26:37.819 [WARNING] Using default config!
    01:27:00.963 [ERROR] Failed to load secure : file is empty
    01:27:00.964 [INFO] Loaded config
    01:27:00.995 [INFO] Loaded config
    01:27:00.995 [INFO] Loaded config
    01:27:07.356 [INFO] auto __thiscall Discord::killDiscord::<lambda_507bee90b6de1e7e5034771acc9a54d6>::()::<lambda_19013b087c165c6a476b3a938d66bdc8>::operator ()(void) const : Terminated process. pid : 9916
    01:27:07.707 [ERROR] auto __thiscall Discord::killDiscord::<lambda_507bee90b6de1e7e5034771acc9a54d6>::operator ()(const class std::vector<unsigned long,class std::allocator > &) const : Failed to terminate process. pid : 2724
    01:27:07.707 [ERROR] auto __thiscall Discord::killDiscord::<lambda_507bee90b6de1e7e5034771acc9a54d6>::operator ()(const class std::vector<unsigned long,class std::allocator > &) const : Failed to get process info. pid : 2608
    01:27:07.707 [ERROR] auto __thiscall Discord::killDiscord::<lambda_507bee90b6de1e7e5034771acc9a54d6>::operator ()(const class std::vector<unsigned long,class std::allocator > &) const : Failed to get process info. pid : 8756
    01:27:07.707 [ERROR] auto __thiscall Discord::killDiscord::<lambda_507bee90b6de1e7e5034771acc9a54d6>::operator ()(const class std::vector<unsigned long,class std::allocator > &) const : Failed to open process. pid : 9028
    01:27:07.707 [ERROR] auto __thiscall Discord::killDiscord::<lambda_507bee90b6de1e7e5034771acc9a54d6>::operator ()(const class std::vector<unsigned long,class std::allocator > &) const : Failed to get process info. pid : 2128
    01:27:07.708 [INFO] Loaded config
    01:27:07.709 [INFO] Loaded config
    01:27:07.709 [INFO] Loaded config
    01:27:07.709 [INFO] Loaded config
    01:27:07.709 [INFO] Loaded config
    01:27:07.709 [INFO] Loaded config
    01:27:07.709 [INFO] Loaded config
    01:27:07.709 [INFO] Loaded config
    01:27:12.975 [INFO] Loaded config
    01:27:12.975 [INFO] Loaded config
    01:27:12.975 [INFO] Loaded config
    01:27:12.976 [INFO] Loaded config
    01:27:12.976 [INFO] Loaded config
    01:27:12.976 [INFO] Loaded config
    01:27:12.976 [INFO] Loaded config
    01:27:12.976 [INFO] Loaded config
    01:27:23.677 [INFO] Accept!
    01:27:23.701 [INFO] port : 63109
    01:27:23.902 [INFO] setport : 1867851344
    01:27:23.902 [INFO] done
    01:27:23.933 [INFO] Accepted : 2596
    01:27:37.742 [INFO] Accepted handoff!
    14:22:53.667 [ERROR] void __thiscall Context::networkHandler(void) : class std::basic_string<char,struct std::char_traits,class std::allocator > __thiscall NetworkManager::Recv(void) : Failed recv : -1 10054
    14:25:50.672 [WARNING] Failed to find Discord in C:\Users\0xFFD\AppData\Local\DiscordCanary\ : directory_iterator::directory_iterator: The system cannot find the path specified.: "C:\Users\0xFFD\AppData\Local\DiscordCanary"
    14:25:50.876 [INFO] Loaded config
    14:26:21.802 [INFO] Loaded config
    14:26:21.802 [INFO] Loaded config
    14:26:22.439 [ERROR] Failed to load secure : HashVerificationFilter: message hash or MAC not valid
    14:26:30.986 [INFO] Loaded config
    14:26:30.986 [INFO] Loaded config
    14:26:31.500 [ERROR] Failed to load secure : HashVerificationFilter: message hash or MAC not valid
    14:26:37.069 [INFO] Loaded config
    14:26:37.069 [INFO] Loaded config
    14:26:37.565 [ERROR] Failed to load secure : HashVerificationFilter: message hash or MAC not valid
    14:26:44.486 [INFO] Loaded config
    14:26:44.486 [INFO] Loaded config
    14:26:44.996 [ERROR] Failed to load secure : HashVerificationFilter: message hash or MAC not valid

Additional context
No additional context needed.

Ways to support development

Hi again, I've used DTP for a while now, and I've really appreciated the effort you've put into maintaining it, and would love to support you in some way! You should totally put ways to donate in your readme and stuff!

Oh yea, I'd also love if you'd sign up for Brave Rewards, that way I can just toss you whatever I earn from using this browser.
Thanks for your work!

Discord Crashing

Describe the bug
Discord will randomly force close at some times while using Protector

To Reproduce
Steps to reproduce the behavior:
N/A Random crash.

Expected behavior
It was expected to crash as you mentioned yourself its still in development and I appreciate that.

Screenshots
If applicable, add screenshots to help explain your problem.

Setup (please complete the following information):

  • Windows 10 - Version 20H2 - 19042.1165
  • Discord Token Protector Version - dev-6
  • Antivirus - Windows Defender

Logs:
logging.log

Token Encryption

It's been 30 days dude, can you fix the token encryption detection
Token Loggers have already bypassed it

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.