{"repo":"MatiasZapf/win-mediakey-lolbin","free":true,"listed":false,"github":"https://github.com/MatiasZapf/win-mediakey-lolbin","clone":"git clone https://github.com/MatiasZapf/win-mediakey-lolbin.git","description":"Ultra-lightweight (~4KB) CLI tool to control Windows media playback. Built natively using csc.exe (Living Off the Land / LOLBin) without external dependencies.","language":"Batchfile","stars":15,"topics":["automation","c-sharp","cli","csc","lightweight","lolbins","media-control","mitre-attack","no-dependencies","windows"],"license":null,"category":"cli-tools","readme_excerpt":"win-mediakey-lolbin An ultra-lightweight Windows native utility ( 4KB) to control media playback (Play/Pause, Next, Prev) from the command line. --- Context: LOLBin and MITRE ATT&CK This project is also an educational proof of concept about LOLBins (Living Off the Land Binaries). It is documented in MITRE ATT&CK as T1027.004 \"Compile After Delivery\", an evasion technique where code is delivered as plain text and compiled in-situ with csc.exe (the .NET Framework compiler pre-installed on Windows). In this case, the usage is completely legitimate: a 4KB utility to control the music player. --- Why this exists - No installation required - Tiny executable ( 4KB) - No background process or tray icon - Perfect for binding to mouse gestures, stream deck, or shortcuts - Pure Windows native (no third-party dependencies) --- What it does Compiles a single executable: MediaKey.exe Supports these commands: - MediaKey.exe playpause → Play/Pause - MediaKey.exe next → Next track - MediaKey.exe prev → Previous track Works on players that respect media keys (Spotify, YouTube in browser, VLC, etc.). --- Requirements - Windows 10/11 - .NET Framework 4.x (to have csc.exe available) - Typical path (x64): - C:\\Windows\\Microsoft.NET\\Framework64\\v4.0.30319\\csc.exe - Typical path (x86): - C:\\Windows\\Microsoft.NET\\Framework\\v4.0.30319\\csc.exe --- Compile 1) Clone/download the repo. 2) Run: The script: detects csc.exe (Framework64 → Framework → PATH), creates .\\bin\\ , compiles as winexe (without consol","default_branch":null,"files":null,"tree":[],"storefront":"/r/MatiasZapf","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/MatiasZapf/win-mediakey-lolbin/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}