
Research
Malicious npm Packages Impersonate Flashbots SDKs, Targeting Ethereum Wallet Credentials
Four npm packages disguised as cryptographic tools steal developer credentials and send them to attacker-controlled Telegram infrastructure.
discord-token-decrypt
Advanced tools
A utility for retrieving and decrypting Discord token on macOS.
A Node.js package for retrieving and decrypting Discord token on macOS. This utility allows you to programmatically access your Discord token for automation, testing, or API integration purposes.
discord-token-decrypt
provides a simple API to access the encrypted Discord token from the local Discord installation on macOS. It handles all the complexity of:
npm i discord-token-decrypt
npm i https://github.com/lacherogwu/discord-token-decrypt
import { getDiscordToken } from 'discord-token-decrypt';
// Get the Discord token
const token = await getDiscordToken();
console.log(token);
// You can now use this token for Discord API calls
getDiscordToken(): Promise<string>
Retrieves and decrypts your Discord authentication token.
getDiscorBasedRequestHeaders(): Object
Provides HTTP headers that mimic an official Discord client request.
// Example: Making an authenticated request to Discord API
import { getDiscordToken, getDiscorBasedRequestHeaders } from 'discord-token-decrypt';
const headers = getDiscorBasedRequestHeaders();
headers.Authorization = await getDiscordToken();
const response = await fetch('https://discord.com/api/v9/users/@me', { headers });
const userData = await response.json();
makeDiscordKey(key: string): string
Creates a properly formatted key for the Discord LevelDB database.
key
: The base key string to formatwithDiscordLocalStorage<T>(callback: (db: Level) => Promise<T>): Promise<T>
Provides safe access to the Discord LevelDB database by creating a temporary copy.
callback
: A function that receives the Level database instance and returns a promise// Example: Reading custom data from Discord's local storage
import { withDiscordLocalStorage, makeDiscordKey } from 'discord-token-decrypt';
const customData = await withDiscordLocalStorage(async db => {
const key = makeDiscordKey('custom_data_key');
return await db.get(key).catch(() => null);
});
This package works by:
Your Discord token grants full access to your Discord account. Never share your token with others or include it in any public code repositories. This tool is intended for personal automation use only.
MIT
FAQs
A utility for retrieving and decrypting Discord token on macOS.
The npm package discord-token-decrypt receives a total of 9 weekly downloads. As such, discord-token-decrypt popularity was classified as not popular.
We found that discord-token-decrypt demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
Four npm packages disguised as cryptographic tools steal developer credentials and send them to attacker-controlled Telegram infrastructure.
Security News
Ruby maintainers from Bundler and rbenv teams are building rv to bring Python uv's speed and unified tooling approach to Ruby development.
Security News
Following last week’s supply chain attack, Nx published findings on the GitHub Actions exploit and moved npm publishing to Trusted Publishers.