Skip to content

Commit

Permalink
Adding challenge
Browse files Browse the repository at this point in the history
  • Loading branch information
nbaars committed Mar 21, 2017
1 parent ad3e943 commit 9b86aab
Show file tree
Hide file tree
Showing 6 changed files with 66 additions and 0 deletions.
12 changes: 12 additions & 0 deletions webgoat-lessons/challenge/pom.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
<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>
<artifactId>challenge</artifactId>
<packaging>jar</packaging>
<parent>
<groupId>org.owasp.webgoat.lesson</groupId>
<artifactId>webgoat-lessons-parent</artifactId>
<version>8.0-SNAPSHOT</version>
</parent>

</project>
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
package org.owasp.webgoat.plugin;

import com.google.common.collect.Lists;
import org.owasp.webgoat.lessons.Category;
import org.owasp.webgoat.lessons.NewLesson;

import java.util.List;

/**
* @author nbaars
* @since 3/21/17.
*/
public class Challenge extends NewLesson {

@Override
public Category getDefaultCategory() {
return Category.CHALLENGE;
}

@Override
public List<String> getHints() {
return Lists.newArrayList();
}

@Override
public Integer getDefaultRanking() {
return 10;
}

@Override
public String getTitle() {
return "challenge.title";
}

@Override
public String getId() {
return "Challenge";
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
<!DOCTYPE html>

<html xmlns:th="http://www.thymeleaf.org">

<div class="lesson-page-wrapper">
<!-- reuse this lesson-page-wrapper block for each 'page' of content in your lesson -->
<!-- include content here, or can be placed in another location. Content will be presented via asciidocs files,
which you put in src/main/resources/plugin/lessonplans/{lang}/{fileName}.adoc -->
<div class="adoc-content" th:replace="doc:Challenge_content1.adoc"></div>
</div>

</html>
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
This is the challenge
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
challenge.title=WebGoat Challenge
1 change: 1 addition & 0 deletions webgoat-lessons/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
</parent>

<modules>
<module>challenge</module>
<module>client-side-filtering</module>
<module>cross-site-scripting</module>
<module>http-basics</module>
Expand Down

0 comments on commit 9b86aab

Please sign in to comment.