Lucene search
+L

LDAP BIND Session

🗓️ 08 Aug 2026 21:48:30Reported by KittySploitType 
kittysploit
 kittysploit
🔗 kittysploit.com

LDAP BIND Session payload for the listeners/database/ldap listener.

Refs
Code
#!/usr/bin/env python3
# -*- coding: utf-8 -*-

from kittysploit import *
from lib.c2.database_bind import build_bind_session_hint


class Module(Payload):
    __info__ = {
        "name": "LDAP BIND Session",
        "description": "BIND payload for listeners/database/ldap",
        "category": PayloadCategory.CMD,
        "platform": Platform.MULTI,
        "listener": "listeners/database/ldap",
        "handler": Handler.BIND,
        "session_type": SessionType.LDAP,
    }

    rhost = OptString("127.0.0.1", "LDAP host", True)
    rport = OptPort(389, "LDAP port", True)
    username = OptString("", "Bind DN", False)
    password = OptString("", "Bind password", False)
    use_ssl = OptBool(False, "Use LDAPS", False)
    base_dn = OptString("", "Search base DN", False)

    def generate(self):
        scheme = "ldaps" if bool(self.use_ssl) else "ldap"
        return build_bind_session_hint(
            "LDAP", str(self.rhost), int(self.rport or 389),
            username=str(self.username or "(anonymous)"),
            extra=f"base_dn={self.base_dn or ''}",
            probe=f"# {scheme}://{self.rhost}:{int(self.rport or 389)}",
        )

Data

Build on a solid foundation with Vulners data

We provide the essential building blocks for cybersecurity solutions with comprehensive, structured, and constantly updated vulnerability and exploits data

Api

Power your application with Vulners API

The Vulners REST API offers reliable, high-performance access to vulnerability intelligence, with 99.9% SLA uptime and CDN-backed data delivery for seamless global access

App

Assess and manage vulnerabilities with Vulners tools

Built on top of Vulners' database and SDK, end-user solutions give security professionals and developers lightweight and powerful tools for vulnerability remediation

08 Aug 2026 21:48Current
5.8Medium risk
Vulners AI Score5.8
0