Skip to content
KitploitKITPLOIT
ToolsExploitsBlog
Log in
Submit
ToolsExploitsBlog
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.

FeedsContactPrivacy© 2026 Kitploit

Tool Directory

Categories

View all categories
Loading categories
CVE-2024-49112 — Exploit for CVE-2024-49112, a critical Windows LDAP RCE vulnerability, triggering a crash via crafted Netlogon and LDAP interactions. | Kitploit
Tools/GitHubGitHub/ccievoice2009/cve-2024-49112
Exploit FrameworksVulnerability AnalysisExploitationPenetration TestingRed TeamingPayload Development
GitHubccievoice2009/cve-2024-49112

CVE-2024-49112

Exploit for CVE-2024-49112, a critical Windows LDAP RCE vulnerability, triggering a crash via crafted Netlogon and LDAP interactions.

View Repository
3371 year agoNot yet reviewed
Share

LDAP Nightmare

An exploit for CVE-2024-49112 reported by Yuki Chen (@guhe120). A vulnerability in Windows Lightweight Directory Access Protocol (LDAP).

Created by SafeBreach Labs (published on January 1st 2025). For the full technical analysis of the vulnerability and how we managed to exploit it check out the blog post here

Overview

CVE-2024-49112 is a critical vulnerability in Windows LDAP client that according to Microsoft allows remote code execution. This exploit leverages the vulnerability to crash target Windows Server systems by interacting with their Netlogon Remote Protocol (NRPC), and LDAP client.

Demo

https://github.com/user-attachments/assets/1cbda4a9-943a-4e07-a95a-b20e45863ec3

Setup

  1. Install Dependencies:

    Ensure that all required Python packages are installed. You can install them using pip and the provided requirements.txt file:

    pip install -r requirements.txt
    
  2. Configure the Exploit:

    • target_ip: IP address of the target machine.
    • port: TCP port for RPC communication (default: 49664).
    • listen_port: UDP port for the exploit server to listen on (default: 389). If not changed, the tool is required to be run with admin or root privileges
    • domain_name: A domain name on the internet that the attacker owns. This domain must have two DNS SRV records under it. (SRV records map a domain to a port and another domain):
      • _ldap._tcp.dc._msdcs.domain_name -> listen_port attacker's machine hostname
      • _ldap._tcp.default-first-site-name._sites.dc._msdcs.domain_name -> listen_port attacker's machine hostname
      • Note - attacker's machine hostname will work assuming the victim server can find the attacker machine by its hostname using NBNS. Instead of the attacker's hostname, this value can be replaced with a domain name on the internet that point towards the IP of a malicious LDAP server exploiting the vulnerability.
    • account: Account name parameter (default: Administrator).
    • site_name: Site name parameter (default: empty string).

Usage

python LdapNightmare.py <target_ip> --domain-name <domain_name> [options]

Example:

python LdapNightmare.py 192.168.1.100 --domain-name example.com

How It Works

  1. Starts the Exploit Server:

    The script initiates an asynchronous LDAP server that listens for incoming connections on the specified UDP port.

  2. Invokes DsrGetDcNameEx2:

    The script calls the DsrGetDcNameEx2 function via the Netlogon Remote Protocol to trigger the victim server to send an LDAP query to the attacker.

  3. Triggers the Vulnerability:

    By sending specially crafted response, the exploit triggers the CVE-2024-49112 vulnerability, causing the victim server to crash

References

  • CVE-2024-49112 Details
  • Microsoft Security Advisory

Authors - Or Yair & Shahak Morag

Or YairShahak Morag
LinkedInOr YairShahak Morag
Twitter@oryair1999@shahakmo
Download Tool

Most Popular

View all →

Discover the most used tools by our community.

  • 1

    OsintHunter

    letox4/osinthunter

    🎯 The ultimate OSINT toolkit: investigation graph, confidence scoring, alias families, map, timeline and reports. 49 modules, 400+ sites, no API keys required.

    837
  • 2

    ghostlock-app

    yukonga/ghostlock-app

    GhostLock One-Tap Execution App (CVE-2026-43499)

    536
  • 3

    ARTEX

    baarai/artex

    LLM multi-agent autonomous penetration testing platform with planner/worker agents, asset and exploration graphs, MITM traffic recording, and vulnerability retesting.

    424
  • 4

    redforge

    cybersecurity91/redforge

    Browser-side red team toolkit with 102 offline tools for recon, payload generation, credential attacks, crypto, encoding and engagement reporting.

    355
  • 5

    looking-glass

    anonghosty/looking-glass

    CSIRT platform that ingests Shadowserver reports into MongoDB and replays them as interactive maps, analysis, findings, advisories and executive dashboards.

    294
  • 6

    CyberStrikeAI

    ed1s0nz/cyberstrikeai

    The system of action for AI-native cybersecurity—where intent becomes governed execution, evidence becomes operational memory, and every operation improves the next.

    276

Explore all tools

Browse our collection of tools

View all tools →