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.
Merge remote-tracking branch 'upstream/develop' into develop
- Loading branch information
Showing
129 changed files
with
4,402 additions
and
221 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
<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>webgoat-commons</artifactId> | ||
<packaging>jar</packaging> | ||
<parent> | ||
<groupId>org.owasp.webgoat</groupId> | ||
<artifactId>webgoat-parent</artifactId> | ||
<version>8.0-SNAPSHOT</version> | ||
</parent> | ||
|
||
<dependencies> | ||
|
||
<dependency> | ||
<groupId>org.projectlombok</groupId> | ||
<artifactId>lombok</artifactId> | ||
</dependency> | ||
|
||
</dependencies> | ||
|
||
<build> | ||
<plugins> | ||
<plugin> | ||
<groupId>org.apache.maven.plugins</groupId> | ||
<artifactId>maven-compiler-plugin</artifactId> | ||
<version>${maven-compiler-plugin.version}</version> | ||
<configuration> | ||
<source>1.8</source> | ||
<target>1.8</target> | ||
<encoding>ISO-8859-1</encoding> | ||
</configuration> | ||
</plugin> | ||
</plugins> | ||
</build> | ||
|
||
|
||
</project> |
15 changes: 15 additions & 0 deletions
15
webgoat-commons/src/main/java/org/owasp/webgoat/login/LoginEvent.java
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,15 @@ | ||
package org.owasp.webgoat.login; | ||
|
||
import lombok.AllArgsConstructor; | ||
import lombok.Data; | ||
|
||
/** | ||
* @author nbaars | ||
* @since 8/20/17. | ||
*/ | ||
@Data | ||
@AllArgsConstructor | ||
public class LoginEvent { | ||
private String user; | ||
private String cookie; | ||
} |
14 changes: 14 additions & 0 deletions
14
webgoat-commons/src/main/java/org/owasp/webgoat/login/LogoutEvent.java
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,14 @@ | ||
package org.owasp.webgoat.login; | ||
|
||
import lombok.AllArgsConstructor; | ||
import lombok.Data; | ||
|
||
/** | ||
* @author nbaars | ||
* @since 8/20/17. | ||
*/ | ||
@AllArgsConstructor | ||
@Data | ||
public class LogoutEvent { | ||
private String user; | ||
} |
21 changes: 21 additions & 0 deletions
21
webgoat-commons/src/main/java/org/owasp/webgoat/mail/IncomingMailEvent.java
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,21 @@ | ||
package org.owasp.webgoat.mail; | ||
|
||
import lombok.Builder; | ||
import lombok.Data; | ||
|
||
import java.time.LocalDateTime; | ||
|
||
/** | ||
* @author nbaars | ||
* @since 8/20/17. | ||
*/ | ||
@Builder | ||
@Data | ||
public class IncomingMailEvent { | ||
|
||
private LocalDateTime time; | ||
private String contents; | ||
private String sender; | ||
private String title; | ||
private String recipient; | ||
} |
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
35 changes: 35 additions & 0 deletions
35
webgoat-container/src/main/java/org/owasp/webgoat/JmsConfig.java
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,35 @@ | ||
package org.owasp.webgoat; | ||
|
||
import com.fasterxml.jackson.databind.ObjectMapper; | ||
import org.apache.activemq.broker.BrokerService; | ||
import org.springframework.context.annotation.Bean; | ||
import org.springframework.context.annotation.Configuration; | ||
import org.springframework.jms.support.converter.MappingJackson2MessageConverter; | ||
import org.springframework.jms.support.converter.MessageConverter; | ||
import org.springframework.jms.support.converter.MessageType; | ||
|
||
/** | ||
* @author nbaars | ||
* @since 8/20/17. | ||
*/ | ||
@Configuration | ||
public class JmsConfig { | ||
|
||
@Bean(initMethod = "start", destroyMethod = "stop") | ||
public BrokerService broker() throws Exception { | ||
final BrokerService broker = new BrokerService(); | ||
broker.addConnector("tcp://localhost:61616"); | ||
broker.addConnector("vm://localhost"); | ||
broker.setPersistent(false); | ||
return broker; | ||
} | ||
|
||
@Bean | ||
public MessageConverter jacksonJmsMessageConverter(ObjectMapper objectMapper) { | ||
MappingJackson2MessageConverter converter = new MappingJackson2MessageConverter(); | ||
converter.setTargetType(MessageType.TEXT); | ||
converter.setObjectMapper(objectMapper); | ||
converter.setTypeIdPropertyName("_type"); | ||
return converter; | ||
} | ||
} |
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.