Exploit database

GH-de157504ad86b1ebe870e07514176ec8

abdelaaziz0/kdsextract

GitHubNot listedPoC
Download repository ZIP

Sources for CVE-2026-58222

1 source

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

Repository files10
abdelaaziz0/kdsextractRevision 80a08cc41a24

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

kdsextract/inject.py

Python · 372 bytes

from __future__ import annotations

GE_SUFFIX = ">"

def escape_ldap_filter_bytes(value: bytes) -> bytes:
    return b"".join(b"\\%02x" % b for b in value)

def inject_ge(attribute: str) -> str:
    return attribute + GE_SUFFIX

def compare_ge(attribute: str, candidate: bytes) -> "tuple[str, bytes]":
    return inject_ge(attribute), escape_ldap_filter_bytes(candidate)