This Docker image is specifically created for the bWAPP application version 2.2, which serves as a learning and demonstration platform for various web application vulnerabilities.
Installing and configuring PHP-based web apps can be quite time-consuming as you need to install various packages like PHP, Apache, MySQL, etc... This Docker image eliminates(automates;) this tedious process and provides you with a click-and-run solution that will provide you with a bWAPP instance in a few seconds.
Other Dockers already exist for bWAPP, but they contain netcat-openbsd instead of netcat-traditional for a reverse shell. I just swapped the two packages.
Feel free to clone the repository and modify the bWAPP app as required.
To build the Docker image, run the following command in the root of the repository.
docker build . -t nechry/bwapp-docker:latest
This repo provides you with a prebuilt Docker image that you can pull and run in seconds.
docker pull nechry/bwapp-docker:latest
docker run -d -p 80:80 --hostname bwapp --name bwapp nechry/bwapp-docker:latest
After running the bWAPP container, navigate to http://127.0.0.1/install.php to complete the bWAPP setup process.
You can also manually initialize the bWAPP database by running the following commands, but usually, this is not required.
Connection to the bWAPP container
docker exec -ti bwapp bash
Connect to MySQL server
mysql -uroot -p
Paste the content of the SQL bwapp_schema.sql script.