Awesome
Damn Wulnerable Application
Installation
Tomcat Installation
-
Download and install Apache Tomcat
-
update content of element
<tomcat-users>
in fileTOMCAT/conf/tomcat-users.xml
with following elements:<role rolename="manager-gui"/> <role rolename="manager-script"/> <user name="admin" password="admin" roles="manager-gui,manager-script" />
-
Test your installation:
- start Tomcat with
TOMCAT/bin/startup.sh
- with your browser open URL http://localhost:8080
- shutdown Tomcat with
TOMCAT/bin/shutdown.sh
- start Tomcat with
Maven Installation
-
Download and install Apache Maven
-
Test the environment with:
mvn --version
Import project to IDE
DWA is Maven Project, so you can use any IDE, which is able to work with Maven. Anyway - the preffered IDE is IntelliJ IDEA.
-
Import project as Maven Project
-
Execute file
Initialization.java
from your IDE or from CLI:
Deploying Project to Tomcat Server
From IntelliJ IDEA
Manualy you can from Maven Projects (View > Tool Windows > Maven Projects
) run Plugins > tomcat7 > tomcat7:redeploy
Or you can create configuration for deployment to running Tomcat Server:
Run > Edit Configurations...
- Press
Alt + Insert
and from Add New Configuration menu select Maven - Name your configuration Maven Redeploy
- In field Command Line type:
clean package tomcat7:redeploy
- Confirm by clicking on Add/Apply button
Or you can create configuration, which runs Tomcat and deploys application:
Run > Edit Configurations...
- Press
Alt + Insert
and from Add New Configuration menu select Tomcat Server > Local - Name your configuration as DWA on Tomcat
- Locate your Tomcat installation with button Configure...
- In Deployment tab click + button and select Artifact
- Select dwa:war
- Back in Server tab select in On Update action option Redeploy
- Select your favorite browser in Open browser part
- Confirm your configuration
From CLI
mvn clean package tomcat7:redeploy