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

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

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

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

工具目录

分类

查看所有分类
Loading categories
cve-2026-5147-exp — Exploit script for CVE-2026-5147, performing boolean and time-based blind SQL injection against MySQL interfaces to extract version, database, schema, and data. Includes calibration, dump subcommands, and configurable payloads. | Kitploit
工具/GitHubGitHub/lan1oc/cve-2026-5147-exp
Vulnerability AnalysisExploitationWeb Application ExploitationPenetration Testing
GitHublan1oc/cve-2026-5147-exp

cve-2026-5147-exp

Exploit script for CVE-2026-5147, performing boolean and time-based blind SQL injection against MySQL interfaces to extract version, database, schema, and data. Includes calibration, dump subcommands, and configurable payloads.

查看仓库
4个月前尚未审核

最受欢迎

查看全部 →

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

探索所有工具

浏览我们的工具集合

查看所有工具 →
分享

cve-2026-5147 利用脚本

面向 已获授权 的漏洞验证与靶场练习:对存在 SQL 注入的接口进行 MySQL 布尔盲注(EXP / INSTR 或 ASCII)与 时间盲注(if + ascii + sleep),并可选拉取版本、库名、表结构及数据(行为类似 sqlmap 的 --dump)。

请勿在未授权系统上使用。

依赖

root@kitploit:~
pip install requests

默认行为

  1. 先做布尔校准:向注入点发送两发 CURRENT_USER + 探针,用响应 JSON 中业务字段(默认 )区分「真 / 假」分支。
INSTR
code
  • 校准成功:全程使用布尔盲注(-p instr 或 ascii)。
  • 校准失败(侧信道与预期不符):自动切换到时间盲注,并再做一轮快慢请求校准。
  • --skip-calibrate:跳过上述校准;仍按布尔 + JSON 字段猜解,不会自动切时间(适合本地调试)。
  • 判「真」的 JSON 字段名与取值可通过 --json-code-field、--json-code-true 调整(需与目标 API 一致)。

    快速开始

    root@kitploit:~
    # 仅域名:按默认路径拼接(见脚本内 DEFAULT_API_PATH)
    python cve-2026-5147.py -u target.example.com
    
    # 指定 HTTPS、自定义路径与注入参数名
    python cve-2026-5147.py -u target.example.com --https --path /api/foo --param id
    
    # 全库 dump(请求量极大,慎用)
    python cve-2026-5147.py -u target.example.com dump
    
    # 只拉表名串,不导数据
    python cve-2026-5147.py -u target.example.com dump --schema-only
    

    进度与诊断信息在 stderr,最终汇总在 stdout。

    常用参数

    参数说明
    -u / --url目标(域名、host:port 或完整 URL),必填
    --path未带路径时拼在主机后的路径(默认租户类接口路径)
    --https无 scheme 时使用 https(默认补 http://)
    --param注入参数名(默认 website)
    -p / --payload布尔片段:instr 或 ascii(时间盲注固定 if+ascii+sleep)
    --timeoutHTTP 超时(秒);进入时间盲注时会自动不低于 sleep+5
    --sleep时间盲注 sleep() 秒数
    --time-floor判真:总耗时 ≥ 该值(秒);默认约 sleep - 1
    --json-code-field / --json-code-true布尔侧信道所读 JSON 字段及「真」值
    --skip-calibrate跳过探针校准
    --onlyversion / database / both:只拉版本、只拉库名或两者
    -H / -P附加请求头、额外查询参数,可重复

    dump 子命令下还有 --schema-only、--dump-out、--dump-row-limit、--dump-select 等,见 python cve-2026-5147.py -h。

    子命令

    子命令含义
    info(默认)拉 VERSION()、当前库名 DATABASE()(受 --only 影响)
    dump再拉当前库表名、逐表列名与行数据(或仅 schema,见 --schema-only)

    审查说明(代码层面)

    • 主流程:main() 中先 calibrate_sqli_oracle,失败则 effective_detect = "time" 并 bind_time_payload;时间模式再 calibrate_time_oracle。
    • 布尔进度日志中的 JSON 字段展示已与 --json-code-field 对齐(不再写死 code)。
    • command 的 argparse 帮助已修正为默认子命令是 info,不是 dump。

    许可证与责任

    脚本仅供安全研究与授权测试。使用者需自行确保符合当地法律与目标环境授权范围。

    下载工具