- JavaScript 100%
| deadmoon-harvesterV2.js | ||
| README.md | ||
🌕 DeadMoon-Credential-Harvester 🌙
Local, Zero-Telemetry Tampermonkey Credential, OAuth Token, Netscape Cookie & Widevine .wvd Harvester (deadmoon-harvesterV2.js) with Dual Bot V3 & Standalone Extractor Modes
Part of the DeadMoon Tool Suite by @Deadplayerdmr
🖥️ Terminal Preview
* d~~b . .================. . d~~b *
. d b .===' .------------. '===. d b .
* / .-' . o '-. \ *
/ .' o . . '. \ .
* [===] . / \ . [===] . *
(( .--[===] \____/ \____/ [===]--. )) d~b
(( [===] o .----. O [===] )) d b
. '--- [===] . / \ . [===] ---'
* \ '. . o .' / *
. '. '-. o . . .-' .' .
* '===='--------------'====' .
════════════════════════════════════════════════════════════════════════════
🌕 D E A D M O O N // C R E D E N T I A L H A R V E S T E R 🌙
Local Browser Token, Cookie & Widevine Harvester • Part of the DeadMoon Tool Suite by @Deadplayerdmr
════════════════════════════════════════════════════════════════════════════
🌙 Overview
DeadMoon-Credential-Harvester (deadmoon-harvesterV2.js) is a local, zero-telemetry Tampermonkey userscript that passively and actively harvests streaming audio credentials, OAuth tokens, Netscape cookies, and Widevine .wvd bundles directly inside your browser.
Designed as the official companion to DeadMoon-Download-Bot, it features a live 🌕 DeadMoon_Downloader Compatibility Mode toggle that switches the HUD between full Bot V3 configuration generation (68-key token.env + local_resources/*) and a ⚡ Standalone Universal Token Extractor for third-party CLI tools (streamrip, gamdl, dotify-cli, yt-dlp, and custom scripts).
✨ Key Features in 2.3v
🔀 Dual Operating Modes (DeadMoon_Downloader Toggle)
- 🌕
DeadMoon_Downloader: ON(Default)- Generates the exact 68-key
token.envmatchingtoken.env.example(FORMAT=audiodefault, all 8<PLATFORM>_ENABLED=1flags, all 8<PLATFORM>_ARTIST_DOWNLOAD_ENABLED=0flags, and/usr/src/app/local_resources/*container path bindings). - Includes one-click delivery presets in the Master
token.envtab to switch cleanly between Direct Telegram Native Audio (FORMAT=audio,COPY_FILES_PATHblank) and Hosted Server.zipLinks (FORMAT=zip,COPY_FILES_PATH=/files). - Exports offloaded
tidal_config.toml,qobuz_config.toml,apple_cookies.txt,spotify_cookies.txt,spotify_credentials.json,cookies.txt, anddevice.wvdfiles matchingdl_utils/credential_migrator.pybyte-for-byte. - Provides one-click
/authenticate<service>Telegram admin command copy buttons (/authenticatedeezer,/authenticatetidal,/authenticateqobuz,/authenticateapple,/authenticatesoundcloud).
- Generates the exact 68-key
- ⚡
Standalone Extractor: ON- Disables all
DeadMoon-Download-Botcontainer paths and.envscaffolding. - Exposes raw ARLs, Bearer/Refresh tokens,
sp_dccookies, Qobuz bundle secrets, and a universaldeadmoon-tokens.json+ per-site Netscapecookies.txtexporter.
- Disables all
🟣 Multi-Stage Deezer ARL Harvester (Auto + F12 Network / cURL Parser)
- 6-Stage Automatic Capture: Queries
window.__DZR_APP_STATE__,document.cookie, ChromiumcookieStore, TampermonkeyGM_cookie(HttpOnlycookie store across.deezer.com/www.deezer.com),gw-light.php?method=deezer.getUserData, andclient.getArl/deezer.getArl. - Instant F12 Network / cURL Smart-Extractor: If your browser blocks
GM_cookiefrom readingHttpOnlycookies, right-click any request in the F12 Network tab → Copy as cURL (or copy theCookie:request header) and click 📋 Extract ARL from Clipboard (or paste into the ARL input field). The script automatically regex-parses out the exact 192-character hexarl.
⚫ Built-In Tidal 24-Bit / 192 kHz Hi-Res TV Device Login
- Uses the
DeadMoon-Download-Botprimary Tidal TV/Device OAuth client (fX2JxdmntZWK0ixTwithzU4XHVVkc2tDPo4tand7m7Ap0JC9j1cOM3nfallbacks) and tolerantsub_status=1002polling vialink.tidal.com. - Automatically prioritizes JWT claims (
uid→user_id,exp→token_expiry,cc→country_code) so regional catalog lookups andstreamripmanifest downloads never fail on stale country codes. - Protects captured 24-Bit TV device tokens from being overwritten by lower-tier Web Player tokens (
cid=3235/cid=8049).
🔵 Automatic Qobuz bundle.js Secret Unpacker
- Scans active
play.qobuz.combundle scripts, decodes timezone-seededsecretsandapp_id, MD5-hashes plaintext passwords automatically when exportingqobuz_config.toml, and builds/authenticateqobuzcommands.
🔐 In-Browser Widevine .wvd Validator & Packer
- Drag-and-drop an existing
device.wvdor rawclient_id.bin+private_key.pempair into the HUD to validate and pack apywidevinev2.wvdbinary locally using WebCrypto (RSASSA-PKCS1-v1_5).
🎧 Supported Platforms & Artifacts
| Platform | Harvested Credentials | DeadMoon_Downloader V3 Output |
Standalone Extractor Output |
|---|---|---|---|
| Deezer | 192-char arl cookie (GM_cookie + gw-light.php + F12 cURL/Header parser), email |
DEEZER_TOKEN in token.env + /authenticatedeezer <arl> |
Raw arl string + JSON |
| Tidal | 24-Bit TV Device access_token, refresh_token, JWT-synced user_id, token_expiry, country_code |
local_resources/tidal_config.toml + /authenticatetidal <json> |
Bearer JWT, Refresh Token, OAuth JSON |
| Qobuz | user_id, user_auth_token, app_id, unpacked bundle.js secrets, MD5 password |
local_resources/qobuz_config.toml + /authenticateqobuz ... |
Raw user_auth_token, app_id, secrets |
| Spotify | .spotify.com sp_dc, sp_key, sp_t cookies + device.wvd |
spotify_cookies.txt, spotify_credentials.json, device.wvd |
Raw sp_dc + Netscape spotify_cookies.txt |
| Apple Music | media-user-token header/cookie + storefront |
local_resources/apple_cookies.txt (.apple.com, music.apple.com, .music.apple.com) + /authenticateapple |
Raw media-user-token + apple_cookies.txt |
| Amazon Music | x-amzn-authentication, deviceId, marketplaceId, csrf + device.wvd |
AMAZON_DEVICE_TOKEN in token.env + device.wvd |
Device token JSON + device.wvd |
| YouTube | Authenticated session cookies | local_resources/cookies.txt |
youtube_cookies.txt |
| SoundCloud | OAuth header token + session cookies |
SOUNDCLOUD_OAUTH_TOKEN + cookies.txt + /authenticatesoundcloud |
Raw oauth_token + soundcloud_cookies.txt |
| Telegram Web | @BotFather bot token + numeric ADMIN_ID |
TELEGRAM_TOKEN & ADMIN_ID in token.env |
Bot token & numeric user ID |
🚀 Installation
- Install the Tampermonkey browser extension (Chrome, Brave, Edge, or Firefox).
- Open Tampermonkey Dashboard → Utilities → Import from file (or click the + icon to create a new script) and paste the contents of
deadmoon-harvesterV2.js. - Save (
Ctrl + S/Cmd + S). - Enable
HttpOnlyCookie Access (Recommended for Deezerarl& Spotifysp_dc):- In Tampermonkey Dashboard → Settings, set Config Mode to Advanced.
- Scroll to Experimental / Security and ensure
GM_cookieaccess is enabled.
- Visit any supported platform (
deezer.com,tidal.com,play.qobuz.com,open.spotify.com,music.apple.com,music.amazon.*,soundcloud.com,youtube.com, orweb.telegram.org). The draggable 🌕 DeadMoon Harvester 2.3v HUD will appear in the bottom-right corner.
🎛️ Operating Guide
Click the mode pill in the top header bar of the HUD to switch between modes at any time:
1. 🌕 DeadMoon_Downloader: ON (Bot V3 Mode)
- Master
token.envTab: Builds the complete 68-keytoken.envfile forDeadMoon-Download-Bot. - Delivery Mode Presets: Because
DeadMoon-Download-Botsends uncompressed native Telegram audio only whenFORMAT!=zipandCOPY_FILES_PATHis blank, use 🎵 Preset: Telegram Native Audio to clearCOPY_FILES_PATH, or 📦 Preset: Hosted Server .zip (/files) when serving hosted archives. - Offloaded Credentials: Multi-field secrets for Tidal, Qobuz, and Apple Music are kept out of
token.envby default (matchingdl_utils/credential_migrator.py) and linked viaTIDAL_CONFIG_PATH,QOBUZ_CONFIG_PATH, andAPPLE_COOKIES_PATH. - 📦 Export
local_resources/*Button: Downloads all captured V3 resource files (tidal_config.toml,qobuz_config.toml,spotify_cookies.txt,apple_cookies.txt,cookies.txt, anddevice.wvd) in one click. - 💬 Copy
/authenticate*Buttons: Copies the exact admin command (/authenticatedeezer,/authenticatetidal,/authenticateqobuz,/authenticateapple,/authenticatesoundcloud) to paste straight into your Telegram bot chat.
2. ⚡ Standalone Extractor: ON (Universal Mode)
- Strips away all bot-specific settings, container paths, and
token.envtemplates. - Unlocks the 🔑 Universal Token Vault (JSON) tab and direct one-click copy buttons for raw ARLs, OAuth Bearer/Refresh tokens,
sp_dccookies, and per-site Netscapecookies.txtfiles.
🔒 Privacy & Security
All credentials are stored strictly inside your local browser's isolated Tampermonkey storage (GM_setValue). The script makes zero external telemetry requests and only communicates with deezer.com, auth.tidal.com, or qobuz.com when you explicitly trigger an active credential harvest. Click the 🗑️ Clear button in the HUD at any time to wipe all stored credentials from your browser.
🌌 The DeadMoon Tool Suite
| Repository | Role in the Ecosystem |
|---|---|
| 🌕 DeadMoon-Download-Bot | Whitelisted 8-platform Telegram audio acquisition bot with direct lossless engines, lock-free scheduler & 477 offline tests |
| 📻 DeadMoon-Radio-Telegram-Synchronizer | Dockerized Telegram radio bot & dynamic 1280×720 RTMPS audio-visual livestream engine with 3-tier metadata auto-probe |
| 🤝 DeadMoon-Trade-Bot | Dockerized Telegram music & dubplate escrow bot with native-SR SoX spectrograms, FTS5 catalog indexer & group trade board |
| 📡 DeadMoon-Telegram-Scraper | Single-file Windows polyglot Telegram channel/group exporter with 4-layer URL intelligence, granular media harvesting & QR login |
| 🤖 DeadMoon-OpenHands-Launcher | Zero-friction Windows launcher & installer for OpenHands with kinetic ASCII UI & automatic winnat port recovery |
| 📚 DeadMoon-RaveBSD-Launcher | Zero-friction Windows installer & launcher for RaveBSD 2.0 with kinetic ASCII UI, auto-Docker setup & Downloads mapping |
| 🎓 DeadMoon-Scholarly-Harvester | Single-file Windows polyglot scholarly PDF harvester with 7-API Recursive Omni-Resolver, 25-source Quality Judge & Command Deck WebUI |
| 🌾 DeadMoon-Credential-Harvester | Local Tampermonkey userscript (2.3v) for harvesting streaming ARLs, OAuth tokens, Netscape cookies & Widevine .wvd bundles |
| 🔐 DeadMoon-Unified-Spotify-Provisioner | Automated Windows polyglot provisioner for Spotify Premium sp_dc cookies & Android Widevine L3 device.wvd CDMs |
| 🎶 DeadMoon-Playlist-Transfer-Tool | Single-file Windows polyglot tool for migrating Deezer Favorites (Artists, Albums & Playlists) via CSV |
| 🔍 DeadMoon-Universal-API-Verify-Script | Self-contained Windows LLM statistical fingerprint verifier (lmfpd) with Smart Auto-Heal & catalog scanner |
🌕 DeadMoon-Credential-Harvester 🌙 — Crafted by @Deadplayerdmr