Skip to content

0xR4ndom/ManageDVWA

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

7 Commits
Β 
Β 
Β 
Β 

Repository files navigation

Managing Multiple DVWA Instances with Docker Compose

This project allows you to deploy and remove multiple instances of DVWA (Damn Vulnerable Web Application) on the same machine using Docker Compose.

πŸ› οΈ Prerequisites

Before using this script, make sure you have:

  • Docker and Docker Compose installed on your machine.
  • A Unix/Linux system or Windows with WSL.

πŸ”„ Installation

Clone this repository or copy the manage_dvwa.sh file to your machine.

git clone https://github.com/0xR4ndom/dvwa-manager.git
cd dvwa-manager
chmod +x manage_dvwa.sh

⚑ Usage

1. Start 10 DVWA Instances

Run the following command to deploy 10 DVWA instances on your machine with different ports:

./manage_dvwa.sh start

βœ… Expected Result:

  • Each DVWA instance will be available on a different port (e.g., http://localhost:4280, http://localhost:4281, etc.).
  • Each instance will have its own database and network to avoid conflicts.

2. Stop and Remove All Instances

If you want to stop and remove all DVWA instances, execute:

./manage_dvwa.sh cleanup

βœ… Expected Result:

  • All DVWA containers and databases are stopped and deleted.
  • All associated volumes and networks are removed.

πŸ” Checking Running Instances

To see the running containers:

docker ps --format "table {{.ID}}	{{.Names}}	{{.Ports}}"

To list the associated Docker volumes and networks:

docker volume ls
docker network ls

❌ Full Cleanup (Optional)

If you want to remove everything from your machine (including other Docker containers), execute:

docker system prune -a --volumes

πŸ’‘ Warning: This command deletes all Docker containers, images, and volumes on your machine.

πŸ”§ Customization

If you want to change the number of instances to deploy, modify the NUM_INSTANCES variable in manage_dvwa.sh:

NUM_INSTANCES=5  # To start 5 instances instead of 10

✨ Contributions

Feel free to propose improvements via Pull Requests or report issues through Issues.


πŸ“š Author: 0xR4ndom

About

No description or website provided.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages