This project allows you to deploy and remove multiple instances of DVWA (Damn Vulnerable Web Application) on the same machine using Docker Compose.
Before using this script, make sure you have:
- Docker and Docker Compose installed on your machine.
- A Unix/Linux system or Windows with WSL.
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.shRun 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.
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.
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 lsIf 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.
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 10Feel free to propose improvements via Pull Requests or report issues through Issues.
π Author: 0xR4ndom