A Python script for performing dictionary-based brute force attacks on DVWA (Damn Vulnerable Web Application) login.
- Sends HTTP POST requests to DVWA login form
- Uses user-supplied password list
- Detects successful login by checking response content
- Gracefully handles request errors and missing files
- Python 3 installed on your system
requestslibrary
Install requests if not already installed:
pip install requests- Make sure DVWA is running and accessible (e.g., via XAMPP or Docker).
- Run the script:
python dvwa_bruteforce.py- Enter the path to your password list file when prompted.
Enter password list location: passwords.txt
Tried: 12345
Tried: admin123
Password found => password
This script is for educational purposes only. Do not use it on systems without proper authorization.