Skip to content

Latest commit

 

History

86 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 

Repository files navigation

DVWA Installer 🚀

DVWA Logo

CI Bash License: MIT PRs Welcome

Automated, modern, and zero-touch installer for DVWA (Damn Vulnerable Web Application) on Debian and Ubuntu-based Linux distributions.


🌟 Features / Características / Fonctionnalités

  • Zero-Touch Setup: Automatically installs all dependencies, configures Apache & MariaDB, fixes PHP directives, and initializes the DVWA database tables via setup.php without requiring manual browser interaction.
  • 🛡️ PHP & PCRE JIT Compatibility: Automatically tunes PHP directives (allow_url_include, allow_url_fopen, display_errors) and applies the pcre.jit = 0 fix for modern PHP environments.
  • 🐳 Universal Service Fallback: Supports systemd, service, and /etc/init.d/ — fully compatible with standard Linux servers, Docker containers, WSL 1/2, and minimal environments.
  • 🎨 Cyberpunk / Neon UI: 5-stage progress indicators ([1/5] to [5/5]), clear status badges ([➜], [✓], [!], [?]), and an access summary card.
  • 🤖 Batch / Headless Mode: Supports automated, non-interactive execution via environment variables.
  • 🌐 Multi-Language Support: Full automatic detection for English, Español, and Français (LC_ALL / LC_MESSAGES / LANG).

🛠️ Quick Installation / Instalación Rápida

Run the one-liner command in your terminal as root / sudo:

sudo bash -c "$(curl --fail --show-error --silent --location https://raw.githubusercontent.com/IamCarron/DVWA-Script/main/Install-DVWA.sh)"

Note / Nota / Remarque: If you intend to use the root user with an empty MySQL password, ensure you run the script directly as the root user.


🤖 Non-Interactive / Batch Mode

For CI/CD pipelines, Dockerfiles, or automated setups, you can pass parameters as environment variables:

sudo batch_mode=1 sql_user="root" sql_password="" force_download="y" bash -c "$(curl -fsSL https://raw.githubusercontent.com/IamCarron/DVWA-Script/main/Install-DVWA.sh)"

🔐 Credentials / Credenciales / Identifiants

Once the installation finishes, open your browser and navigate to http://localhost/DVWA:

Field / Campo Value / Valor
URL http://localhost/DVWA
Username / Usuario admin
Password / Contraseña password

🌐 Language Support / Idiomas

The script automatically detects your system locale:

  • 🇬🇧 English (en)
  • 🇪🇸 Español (es)
  • 🇫🇷 Français (fr)

🤝 Contributing & License

Contributions, issues, and feature requests are welcome! Feel free to check the issues page.

Distributed under the MIT License. See LICENSE for more information.

Made with ♥ by IamCarron

About

Automate the setup of Damn Vulnerable Web Application (DVWA) with this Bash script. It ensures a smooth installation, adapting to the system's language and handling dependencies effortlessly. The script simplifies the process of cloning DVWA from GitHub, configuring MySQL, adjusting PHP settings, and restarting Apache.

Resources

Stars

15 stars

Watchers

2 watching

Forks

Releases

Packages

Contributors

Languages