https://github.com/appsecco/dvja
Damn Vulnerable Java (EE) Application
https://github.com/appsecco/dvja
docker java vulnerable-app
Last synced: about 1 hour ago
JSON representation
Damn Vulnerable Java (EE) Application
- Host: GitHub
- URL: https://github.com/appsecco/dvja
- Owner: appsecco
- License: mit
- Created: 2018-10-29T07:45:11.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2023-09-26T08:04:25.000Z (almost 3 years ago)
- Last Synced: 2023-11-07T16:25:24.314Z (over 2 years ago)
- Topics: docker, java, vulnerable-app
- Language: CSS
- Size: 1.14 MB
- Stars: 115
- Watchers: 7
- Forks: 438
- Open Issues: 16
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-pentest-tools - Damn Vulnerable Java App (DVJA)
README
# Damn Vulnerable Java Application
## Quick Start
Install Docker and Docker Compose.
```
docker-compose up
```
Navigate to `http://localhost:8080`
To update image
```
docker-compose build
```
## Requirements
* Java 1.7+
* Maven 3.x
* MySQL Server
## Configuration
### Database
Create MySQL database and credentials and configure the same in:
```
./src/main/webapp/WEB-INF/config.properties
```
### Schema Import
Import the schema into MySQL database:
```
$ mysql -u USER -pPASSWORD dvja < ./db/schema.sql
```
## Build
```
$ mvn clean package
```
The deployable `war` file is generated in targets directory.
## Run with Jetty
```
$ mvn jetty:run
```
This will start the `Jetty` server on port 8080.
## Deploy in Tomcat Server
* Build app
* Copy targets/dvja.war to Tomcat webapps directory
* To serve as root application, copy as `ROOT.war` to Tomcat webapps directory.