forked from WebGoat/WebGoat
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
78 changed files
with
227 additions
and
1,109 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,12 @@ | ||
<?xml version="1.0"?> | ||
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"> | ||
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"> | ||
|
||
<modelVersion>4.0.0</modelVersion> | ||
<groupId>org.owasp.webgoat</groupId> | ||
<artifactId>webgoat-parent</artifactId> | ||
<packaging>pom</packaging> | ||
<version>v8.0.0.M15</version> | ||
<version>v8.0.0.M16</version> | ||
|
||
<name>WebGoat Parent Pom</name> | ||
<description>Parent Pom for the WebGoat Project. A deliberately insecure Web Application</description> | ||
|
@@ -53,17 +54,17 @@ | |
<developer> | ||
<id>jwayman</id> | ||
<name>Jeff Wayman</name> | ||
<email /> | ||
<email/> | ||
</developer> | ||
<developer> | ||
<id>dcowden</id> | ||
<name>Dave Cowden</name> | ||
<email /> | ||
<email/> | ||
</developer> | ||
<developer> | ||
<id>lawson89</id> | ||
<name>Richard Lawson</name> | ||
<email /> | ||
<email/> | ||
</developer> | ||
<developer> | ||
<id>dougmorato</id> | ||
|
@@ -92,8 +93,8 @@ | |
<url>https://github.com/WebGoat/WebGoat</url> | ||
<connection>scm:git:[email protected]:WebGoat/WebGoat.git</connection> | ||
<developerConnection>scm:git:[email protected]:WebGoat/WebGoat.git</developerConnection> | ||
<tag>HEAD</tag> | ||
</scm> | ||
<tag>HEAD</tag> | ||
</scm> | ||
|
||
<issueManagement> | ||
<system>Github Issues</system> | ||
|
@@ -202,7 +203,7 @@ | |
<profiles> | ||
<profile> | ||
<id>release</id> | ||
<dependencies> | ||
<dependencies> | ||
<dependency> | ||
<groupId>org.owasp.webgoat.lesson</groupId> | ||
<artifactId>dist</artifactId> | ||
|
@@ -214,7 +215,7 @@ | |
</dependencies> | ||
<build> | ||
<plugins> | ||
<plugin> | ||
<plugin> | ||
<groupId>org.apache.maven.plugins</groupId> | ||
<artifactId>maven-dependency-plugin</artifactId> | ||
<executions> | ||
|
@@ -225,7 +226,9 @@ | |
</goals> | ||
<phase>generate-resources</phase> | ||
<configuration> | ||
<outputDirectory>${project.basedir}/webgoat-container/src/main/webapp/plugin_lessons</outputDirectory> | ||
<outputDirectory> | ||
${project.basedir}/webgoat-container/src/main/webapp/plugin_lessons | ||
</outputDirectory> | ||
<includeArtifactIds>dist</includeArtifactIds> | ||
<includes>*.jar</includes> | ||
</configuration> | ||
|
@@ -324,15 +327,15 @@ | |
<artifactId>coveralls-maven-plugin</artifactId> | ||
<version>${coveralls-maven-plugin.version}</version> | ||
<configuration> | ||
<repoToken /> | ||
<repoToken/> | ||
</configuration> | ||
</plugin> | ||
<plugin> | ||
<groupId>org.codehaus.mojo</groupId> | ||
<artifactId>cobertura-maven-plugin</artifactId> | ||
<version>${cobertura-maven-plugin.version}</version> | ||
<configuration> | ||
<check /> | ||
<check/> | ||
<format>xml</format> | ||
<maxmem>256m</maxmem> | ||
<!-- aggregated reports for multi-module projects --> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
#!/usr/bin/env bash | ||
|
||
cd .. | ||
|
||
nc -zv 127.0.0.1 8080 2>/dev/null | ||
SUCCESS=$? | ||
nc -zv 127.0.0.1 9090 2>/dev/null | ||
SUCCESS=${SUCCESS}$? | ||
|
||
if [[ "${SUCCESS}" -eq 00 ]] ; then | ||
echo "WebGoat and or WebWolf are still running, please stop them first otherwise unit tests might fail!" | ||
exit 127 | ||
fi | ||
|
||
|
||
#mvn clean install | ||
#if [[ "$?" -ne 0 ]] ; then | ||
# exit y$? | ||
#fi | ||
|
||
cd - | ||
sh build_docker.sh | ||
|
||
echo "Do you want to run docker-compose?" | ||
while true; do | ||
read -p "Do you want to run docker-compose?" yn | ||
case ${yn} in | ||
[Yy]* ) sh clean-run-docker-compose.sh; break;; | ||
[Nn]* ) exit;; | ||
* ) echo "Please answer yes or no.";; | ||
esac | ||
done |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
#!/bin/bash | ||
|
||
WEBGOAT_HOME=$(pwd)/../ | ||
|
||
cd ${WEBGOAT_HOME}/webgoat-server | ||
docker build -t webgoat/webgoat-8.0 . | ||
|
||
cd ${WEBGOAT_HOME}/webwolf | ||
docker build -t webgoat/webwolf . | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
#!/usr/bin/env bash | ||
|
||
cd .. | ||
docker-compose rm -f | ||
docker-compose up |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
#!/usr/bin/env bash | ||
|
||
cd .. | ||
docker-compose up |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.