Installing DVWA using Docker

Install the Damn Vulnerable Web Application (via a Docker container) quite easily, as it will take care of all the dependencies required (e.g. mySQL).

  1. Open a terminal within your Ubuntu instance.
  2. Install DVWA with the following command: sudo docker run —restart always -p 80:80 vulnerables/web-dvwa
  3. DVWA should now be installed and running. To access it, open up Firefox and browse to your localhost address. In other words, in the URL toolbar (where you type in URLs), type in localhost and press the ENTER key.
  4. Login to DVWA with username admin and password password
  5. Once logged in, select the ‘Create/Reset Database’ link.
  6. Return Ubuntu back to an Internal network (so that Ubuntu and Kali and communicate with each other; refer to the ‘Connect Ubuntu and Kali’ screencast for a reminder if needed).
  7. Ensure that they are connected by pinging each other.