Damn Vulnerable Java (EE) Application
Install Docker and Docker Compose.
docker-compose up
Navigate to http://localhost:8080
To update image
docker-compose build
Create MySQL database and credentials and configure the same in:
./src/main/webapp/WEB-INF/config.properties
Import the schema into MySQL database:
$ mysql -u USER -pPASSWORD dvja < ./db/schema.sql
$ mvn clean package
The deployable war
file is generated in targets directory.
$ mvn jetty:run
This will start the Jetty
server on port 8080.
ROOT.war
to Tomcat webapps directory.