Lucene search
+L

PostgreSQL BIND Session

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

PostgreSQL BIND payload for direct psycopg2 sessions.

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": "PostgreSQL BIND Session",
        "description": "BIND payload for listeners/database/postgresql (direct psycopg2 session)",
        "category": PayloadCategory.CMD,
        "platform": Platform.MULTI,
        "listener": "listeners/database/postgresql",
        "handler": Handler.BIND,
        "session_type": SessionType.POSTGRESQL,
    }

    rhost = OptString("127.0.0.1", "PostgreSQL host", True)
    rport = OptPort(5432, "PostgreSQL port", True)
    username = OptString("postgres", "PostgreSQL username", True)
    password = OptString("", "PostgreSQL password", False)
    database = OptString("postgres", "Database name", False)

    def generate(self):
        return build_bind_session_hint(
            "PostgreSQL", str(self.rhost), int(self.rport or 5432),
            username=str(self.username or "postgres"),
            extra=f"database={self.database or 'postgres'}",
            probe="SELECT version();",
        )

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
2