Exploit database

GH-d0960d9a8e498e65bdcc37d82c949cb0

tc4dy/cve-2026-123633-poc-toolkit

GitHubNot listedPoC
Download repository ZIP

Sources for CVE-2026-123633

4 sources

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

Repository files4
tc4dy/cve-2026-123633-poc-toolkitRevision d4cdec7b9eca

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

lib/logger.py

Python · 1,621 bytes
import sys
import logging
import threading
from logging.handlers import RotatingFileHandler
from lib.config import red, green, yellow, cyan, dim, bold, rst

log = logging.getLogger("nginx2root")
log.setLevel(logging.DEBUG)
log.propagate = False

_stream = logging.StreamHandler(sys.stdout)
_stream.setFormatter(logging.Formatter("%(message)s"))
log.addHandler(_stream)

try:
    _file = RotatingFileHandler("nginx2root.log", maxBytes=10 * 1024 * 1024, backupCount=3, encoding="utf-8")
    _file.setFormatter(logging.Formatter("%(asctime)s [%(threadName)s] %(levelname)s %(message)s"))
    log.addHandler(_file)
except (OSError, IOError):
    pass

_lock = threading.Lock()

def ok(msg):
    with _lock:
        sys.stdout.write(f"\r{' ' * 100}\r")
        print(f"{green}[+]{rst} {msg}", flush=True)
    log.info(msg)

def bad(msg):
    with _lock:
        sys.stdout.write(f"\r{' ' * 100}\r")
        print(f"{red}[-]{rst} {msg}", flush=True)
    log.error(msg)

def info(msg):
    with _lock:
        sys.stdout.write(f"\r{' ' * 100}\r")
        print(f"{cyan}[*]{rst} {msg}", flush=True)
    log.info(msg)

def warn(msg):
    with _lock:
        sys.stdout.write(f"\r{' ' * 100}\r")
        print(f"{yellow}[!]{rst} {msg}", flush=True)
    log.warning(msg)

def dbg(msg):
    if getattr(sys, "_verbose", False):
        with _lock:
            print(f"{dim}[d]{rst} {msg}", flush=True)
    log.debug(msg)

def hit(msg):
    with _lock:
        print()
        print(f"{red}{'█' * 60}{rst}")
        print(f"{red}{bold}  [!] {msg}{rst}")
        print(f"{red}{'█' * 60}{rst}")
        print()
    log.critical(msg)