- Batchfile 100%
| .gitignore | ||
| DeadMoon_Unified_Spotify_Provisioner.cmd | ||
| LICENSE | ||
| README.md | ||
🌕 DeadMoon-Unified-Spotify-Provisioner 🌙
Automated Windows Polyglot Provisioner for Spotify Premium Web Cookies (sp_dc) & Android Widevine L3 CDMs (device.wvd) with 3-Layer Frida Trigger & Standalone Emulator Bootstrapper
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 // S P O T I F Y P R O V I S I O N E R 🌙
Automated Spotify Premium Cookie & Widevine L3 Provisioner • Part of the DeadMoon Tool Suite by @Deadplayerdmr
════════════════════════════════════════════════════════════════════════════
🌙 Overview
DeadMoon-Unified-Spotify-Provisioner is a self-contained Windows Batch / PowerShell / Python 3.13 polyglot provisioning utility designed for the DeadMoon-Download-Bot audio acquisition engine. It automates the extraction and cryptographic verification of:
- 🍪
spotify_cookies.txt: Netscape-formatted.spotify.comweb session cookies (sp_dc,sp_key,sp_t) extracted from desktop Gecko browsers (Firefox, Floorp, Waterfox, LibreWolf, Zen) or rooted Android browsers over ADB. - 🔐
device.wvd: Verified Android Widevine L3 Content Decryption Modules (ANDROID, Security Level3, 2048-bit RSA) extracted via live Frida instrumentation from either a connected rooted Android device or an auto-bootstrapped local Android API 30x86_64emulator.
✨ Key Features & Architecture (Version 1)
- 🌕 Animated DeadMoon Boot Splash & Progress UI: Features a 12-frame ANSI-colored ASCII animation of the DeadMoon headphone crest with floating music notes, radiating headphone soundwaves, twinkling stars, and an in-place single-line
25% -> 50% -> 75% -> 100%progress bar. - 🧪 Isolated Virtualenv (
.dm_tools\kd_venv): Automatically builds an isolated Python 3.13 environment pinningkeydive==3.0.6,construct==2.10.70,protobuf>=5.29.5,<6.0.0,frida,requests, andcryptographyso KeyDive'sprotobuf<6.0.0requirement never conflicts withDeadMoon-Download-Bot's runtimepywidevine==1.9.0(protobuf==6.33.6). - ⚡ 3-Layer Widevine L3 Trigger Engine:
- Launches a live DRM test stream (
bitmovin.com/shaka-player-demo) in the target's browser without hooking the browser process. - Injects a Java
android.media.MediaDrmL3 session insidecom.android.settings/com.android.systemui(carrying a valid AndroidAttributionSourceon Android 12–16 / API 37 to bypass NDK-10003errors). - Falls back to native NDK
AMediaDrm(libmediandk.so) with automatic Google Widevine L3 certificate provisioning (certificateprovisioning/v1/devicecertificates/create) if the target CDM is unprovisioned (-20001).
- Launches a live DRM test stream (
- 🧹 Guaranteed Widevine HAL Cleanup: Automatically terminates
frida-server, restarts the Widevine DRM HAL (android.hardware.drm-service.widevine/mediadrmserver), and restores SELinux enforcing mode (setenforce 1) in afinally:block so the phone's browser never crashes after dumping. - 📱 Phone-Free Standalone Emulator Mode (Mode
[2]): If you don't have a rooted physical Android phone on hand, Mode[2]automatically downloads portable OpenJDK 17 (Adoptium) and Google Androidcommandlinetools-win, installssystem-images;android-30;google_apis;x86_64, bootsDeadMoon_API30_L3, provisions L3 with Google, extractsdevice.wvd, and shuts down the emulator. - 🔒 Deep Cryptographic Verification & NTFS ACL Locking: Parses and verifies the generated
.wvdv2 structure,ClientIdentificationprotobuf, and>=2048-bitRSA private key before syncingspotify_cookies.txtanddevice.wvdintolocal_resources/and locking Windows NTFS permissions to the current user viaicacls.exe.
🚀 Quick Start (Windows 10 / 11)
- Ensure Python 3.13 is installed on Windows.
- Download
DeadMoon_Unified_Spotify_Provisioner.cmdand place it in your project root (or alongsideDeadMoon-Download-Bot). - Double-click
DeadMoon_Unified_Spotify_Provisioner.cmdto launch:- Step 1/2 (
spotify_cookies.txt): Auto-detects active.spotify.comsessions from connected Android Firefox/Fennec/Iceraven or desktop Firefox/Floorp/Waterfox/LibreWolf/Zen profiles, or accepts a pastedsp_dccookie string. - Step 2/2 (
device.wvd): Choose[1]Rooted USB Android Device,[2]Auto-Bootstrapped Local Android Emulator, or[3]Compile from existingclient_id.bin+private_key.pem.
- Step 1/2 (
🔗 Integration with DeadMoon-Download-Bot
Once provisioned, copy or sync spotify_cookies.txt and device.wvd into DeadMoon-Download-Bot/local_resources/ (chmod 600 on Linux VPS). For optimal direct Spotify acquisition with dotify-cli==3.0.6 and Android Widevine L3 CDMs without triggering Widevine HTTP 403 → 429 license rate-limits, ensure token.env contains:
SPOTIFY_ENABLED=1
SPOTIFY_AUDIO_QUALITY=aac-high,aac-medium
SPOTIFY_BULK_WAIT_SECONDS=4
(Note: Raw client_id.bin and private_key.pem blobs remain on the provisioning host only and are never deployed to the production container.)
📚 Credits, Citations & Upstream Attributions
This provisioning toolkit builds upon and orchestrates the following open-source projects:
- hyugogirubato/KeyDive (
keydive==3.0.6) — Created by hyugogirubato for Widevine L3 CDM extraction and.wvdstructure parsing. - Frida (
frida/frida-server) — Dynamic instrumentation toolkit used for hooking the Android Widevine HAL and executing the Java/NDKMediaDrmL3 trigger. - devine-dl/pywidevine (
pywidevine) — Created by rlaphoenix for the.wvdv2 container specification used by downstream acquisition engines. - dotify-cli — Downstream Spotify web session and Widevine L3 audio acquisition engine used in
DeadMoon-Download-Bot. - Eclipse Adoptium (Temurin OpenJDK 17) & Google Android SDK Command-Line Tools — Used for automated local
x86_64AVD emulator bootstrapping.
📄 License
Distributed under the MIT License. All upstream packages and binaries downloaded at runtime (keydive, frida-server, OpenJDK, and Android SDK tools) remain under their respective authors' licenses.
🌌 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-Unified-Spotify-Provisioner 🌙 — Crafted by @Deadplayerdmr