4837 Total CVEs
26 Years
GitHub
README.md
README.md not found for CVE-2024-49113. The file may not exist in the repository.
POC / logger.py PY
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)