Automated Windows polyglot provisioner for Spotify Premium sp_dc cookies and Android Widevine L3 device.wvd CDMs with 3-layer Frida trigger and standalone emulator bootstrapper.
  • Batchfile 100%
Find a file
2026-12-02 16:42:42 -05:00
.gitignore chore: rename .giticcore to .gitignore and update README 2026-12-02 16:42:42 -05:00
DeadMoon_Unified_Spotify_Provisioner.cmd Create DeadMoon_Unified_Spotify_Provisioner.cmd 2026-11-06 22:26:14 -05:00
LICENSE Initial commit 2026-11-06 22:25:02 -05:00
README.md chore: rename .giticcore to .gitignore and update README 2026-12-02 16:42:42 -05:00

🌕 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

DeadMoon Suite Platform Python 3.13 KeyDive Frida License

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:

  1. 🍪 spotify_cookies.txt: Netscape-formatted .spotify.com web session cookies (sp_dc, sp_key, sp_t) extracted from desktop Gecko browsers (Firefox, Floorp, Waterfox, LibreWolf, Zen) or rooted Android browsers over ADB.
  2. 🔐 device.wvd: Verified Android Widevine L3 Content Decryption Modules (ANDROID, Security Level 3, 2048-bit RSA) extracted via live Frida instrumentation from either a connected rooted Android device or an auto-bootstrapped local Android API 30 x86_64 emulator.

✨ 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 pinning keydive==3.0.6, construct==2.10.70, protobuf>=5.29.5,<6.0.0, frida, requests, and cryptography so KeyDive's protobuf<6.0.0 requirement never conflicts with DeadMoon-Download-Bot's runtime pywidevine==1.9.0 (protobuf==6.33.6).
  • ⚡ 3-Layer Widevine L3 Trigger Engine:
    1. Launches a live DRM test stream (bitmovin.com / shaka-player-demo) in the target's browser without hooking the browser process.
    2. Injects a Java android.media.MediaDrm L3 session inside com.android.settings / com.android.systemui (carrying a valid Android AttributionSource on Android 12–16 / API 37 to bypass NDK -10003 errors).
    3. 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).
  • 🧹 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 a finally: 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 Android commandlinetools-win, installs system-images;android-30;google_apis;x86_64, boots DeadMoon_API30_L3, provisions L3 with Google, extracts device.wvd, and shuts down the emulator.
  • 🔒 Deep Cryptographic Verification & NTFS ACL Locking: Parses and verifies the generated .wvd v2 structure, ClientIdentification protobuf, and >=2048-bit RSA private key before syncing spotify_cookies.txt and device.wvd into local_resources/ and locking Windows NTFS permissions to the current user via icacls.exe.

🚀 Quick Start (Windows 10 / 11)

  1. Ensure Python 3.13 is installed on Windows.
  2. Download DeadMoon_Unified_Spotify_Provisioner.cmd and place it in your project root (or alongside DeadMoon-Download-Bot).
  3. Double-click DeadMoon_Unified_Spotify_Provisioner.cmd to launch:
    • Step 1/2 (spotify_cookies.txt): Auto-detects active .spotify.com sessions from connected Android Firefox/Fennec/Iceraven or desktop Firefox/Floorp/Waterfox/LibreWolf/Zen profiles, or accepts a pasted sp_dc cookie string.
    • Step 2/2 (device.wvd): Choose [1] Rooted USB Android Device, [2] Auto-Bootstrapped Local Android Emulator, or [3] Compile from existing client_id.bin + private_key.pem.

🔗 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:


📄 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