Exploit database

GH-cb1c427de8cb22f680283b78db4bc272

alphatin123/cve-2024-49113

GitHubNot listedPoC
Download repository ZIP

Sources for CVE-2024-49113

6 sources

Preferred order: Exploit-DB, Metasploit, then GitHub repositories by stars. Open preferred source

Repository files6
alphatin123/cve-2024-49113Revision cc05b4f0706b

Files from this repository share one source choice. Supporting files may cover other vulnerabilities.

logger.py

Python · 482 bytes
import logging


# Define a custom format with a prefix
custom_format = '[LDAP Nightmare:%(levelname)s] - %(message)s'

# Create a logger
logger = logging.getLogger('my_logger')
logger.setLevel(logging.INFO)

# Create a handler (console/file)
console_handler = logging.StreamHandler()

# Set the formatter with the custom prefix
formatter = logging.Formatter(custom_format)
console_handler.setFormatter(formatter)

# Add the handler to the logger
logger.addHandler(console_handler)