This script demonstrates how a brute-force attack can be performed against the login page of the Damn Vulnerable Web Application (DVWA), specifically targeting its actual login page and not the brute-force challenge.
python main.py --url [DVWA URL] --usernamelist [USERLIST PATH] --passwordlist [PASSLIST PATH] --output [OUTPUT FILE PATH]
--url / -u
: The base URL of DVWA (e.g.,http://localhost/DVWA/login.php
).--usernamelist / -ul
: Path to the file containing usernames to be tested.--passwordlist / -pl
: Path to the file containing passwords to be tested.--output / -o
(optional): Path to the output file where valid credentials will be saved.
This script is meant for educational and demonstration purposes only. Always use it in an environment where you have permission. Unauthorized access to computer systems is illegal and could result in severe penalties.